Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002138/0.002138, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001922/0.001922, allocations: 193.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.214/0.214, allocations: 9.104 MB / 299.5 MB, free: 1.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.89 kB / 362 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1186, allocations: 51.43 MB / 413.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01083/0.1295, allocations: 8.799 MB / 422.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2172/0.3467, allocations: 2.663 MB / 424.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.3484, allocations: 39.28 kB / 425 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.3497, allocations: 387.1 kB / 425.4 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003875/0.3536, allocations: 1.414 MB / 426.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.3542, allocations: 176.5 kB / 426.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002539/0.3567, allocations: 2.613 MB / 429.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001019/0.3577, allocations: 0.9879 MB / 430.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008818/0.3586, allocations: 0.9331 MB / 431.5 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.3598, allocations: 1.338 MB / 432.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003108/0.3601, allocations: 242.6 kB / 433 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001228/0.3613, allocations: 0.8436 MB / 433.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007189/0.3621, allocations: 1.233 MB / 435.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009574/0.363, allocations: 1.594 MB / 436.7 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003388/0.3664, allocations: 4.834 MB / 441.6 MB, free: 31.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3664, allocations: 0 / 441.6 MB, free: 31.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3665, allocations: 0 / 441.6 MB, free: 31.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.704e-05/0.3665, allocations: 0 / 441.6 MB, free: 31.17 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.007424/0.3739, allocations: 3.943 MB / 445.5 MB, free: 29.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.374, allocations: 13.81 kB / 445.5 MB, free: 29.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00053/0.3745, allocations: 0.5414 MB / 446.1 MB, free: 28.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006087/0.3806, allocations: 1.775 MB / 447.8 MB, free: 28.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002056/0.3827, allocations: 1.406 MB / 449.2 MB, free: 27.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.626e-05/0.3828, allocations: 154.7 kB / 449.4 MB, free: 27.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003276/0.3831, allocations: 204 kB / 449.6 MB, free: 27.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00944/0.3926, allocations: 8.001 MB / 457.6 MB, free: 24.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.386e-05/0.3927, allocations: 24.78 kB / 457.6 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002612/0.393, allocations: 98.14 kB / 457.7 MB, free: 24.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002984/0.396, allocations: 1.843 MB / 459.5 MB, free: 23.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01456/0.4105, allocations: 7.178 MB / 466.7 MB, free: 21.37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03357/0.4441, allocations: 24.43 MB / 491.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004605/0.4488, allocations: 2.392 MB / 493.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.4499, allocations: 0.8206 MB / 494.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0083/0.4582, allocations: 4.654 MB / 499 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/0.4583, allocations: 43.56 kB / 499.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=131): time 5.721e-06/0.4583, allocations: 0 / 499.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01543/0.4738, allocations: 6.92 MB / 0.4941 GB, free: 5.234 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/0.4739, allocations: 64.72 kB / 0.4942 GB, free: 5.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004351/0.4783, allocations: 2.679 MB / 0.4968 GB, free: 2.453 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001126/0.4784, allocations: 51.97 kB / 0.4969 GB, free: 2.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.4799, allocations: 2.106 MB / 0.4989 GB, free: 296 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005778/0.4805, allocations: 0.5691 MB / 0.4995 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/0.4816, allocations: 0.7803 MB / 0.5002 GB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4817, allocations: 313 kB / 0.5005 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.4838, allocations: 1.296 MB / 0.5018 GB, free: 13.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003611/0.4874, allocations: 3.432 MB / 0.5051 GB, free: 8.828 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006329/0.4938, allocations: 5.074 MB / 0.5101 GB, free: 2.707 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.236e-05/0.4938, allocations: 20 kB / 0.5101 GB, free: 2.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008402/0.5022, allocations: 4.907 MB / 0.5149 GB, free: 13.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.166e-05/0.5023, allocations: 36 kB / 0.5149 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.827e-05/0.5024, allocations: 76 kB / 0.515 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/0.5033, allocations: 333.4 kB / 0.5153 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/0.5057, allocations: 0.8694 MB / 0.5162 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004764/0.5105, allocations: 3.65 MB / 0.5198 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/0.5138, allocations: 210.9 kB / 0.52 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005155/0.5143, allocations: 228 kB / 0.5202 GB, free: 8.258 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (472): * Single equations (assignments): 467 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0029/0.5172, allocations: 1.569 MB / 0.5217 GB, free: 6.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005647/0.5178, allocations: 225.1 kB / 0.5219 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003848/0.5216, allocations: 2.02 MB / 0.5239 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/0.5217, allocations: 31.92 kB / 0.5239 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.5218, allocations: 0 / 0.5239 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.5218, allocations: 11.91 kB / 0.5239 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01217/0.534, allocations: 5.731 MB / 0.5295 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.468e-05/0.534, allocations: 4 kB / 0.5295 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008712/0.5349, allocations: 195.8 kB / 0.5297 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007343/0.5357, allocations: 236.7 kB / 0.5299 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.5358, allocations: 27.98 kB / 0.53 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003738/0.5395, allocations: 2.95 MB / 0.5329 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.5396, allocations: 4 kB / 0.5329 GB, free: 11.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005053/0.5446, allocations: 3.105 MB / 0.5359 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.5459, allocations: 454.1 kB / 0.5363 GB, free: 7.391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006184/0.5465, allocations: 26.81 kB / 0.5363 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.5477, allocations: 67.92 kB / 0.5364 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.5479, allocations: 84.83 kB / 0.5365 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.5481, allocations: 48.05 kB / 0.5365 GB, free: 7.168 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003815/0.5519, allocations: 1.724 MB / 0.5382 GB, free: 5.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5519, allocations: 0 / 0.5382 GB, free: 5.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004023/0.5559, allocations: 0.6902 MB / 0.5389 GB, free: 4.742 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005553/0.5615, allocations: 3.753 MB / 0.5426 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00822/0.5697, allocations: 4.435 MB / 0.5469 GB, free: 12.51 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/0.5698, allocations: 4 kB / 0.5469 GB, free: 12.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.5714, allocations: 1.04 MB / 0.5479 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/0.5745, allocations: 407.3 kB / 0.5483 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04893/0.6234, allocations: 30.45 MB / 0.578 GB, free: 8.523 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003104/0.6266, allocations: 2.595 MB / 0.5806 GB, free: 5.898 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003116/0.6297, allocations: 1.188 MB / 0.5817 GB, free: 4.703 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00179/0.6315, allocations: 1.335 MB / 0.583 GB, free: 3.367 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6315, allocations: 0 / 0.583 GB, free: 3.367 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3024/0.9339, allocations: 49.02 MB / 0.6309 GB, free: 131.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.19, allocations: 11.88 kB / 0.6309 GB, free: 131.2 MB / 462.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)