Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.PowerDistanceDemo,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo",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.001349/0.001349, 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.001499/0.001499, allocations: 194.9 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.469/1.469, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1993/0.1993, allocations: 9.095 MB / 299.5 MB, free: 1.742 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 63.91 kB / 362.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1478, allocations: 51.42 MB / 413.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2458/0.3936, allocations: 10.68 MB / 424.2 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006418/0.4001, allocations: 2.964 MB / 427.1 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.4021, allocations: 47.12 kB / 427.2 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.4033, allocations: 438.1 kB / 427.6 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005121/0.4084, allocations: 1.666 MB / 429.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007917/0.4093, allocations: 166.8 kB / 429.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0047/0.414, allocations: 3.105 MB / 432.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001961/0.416, allocations: 1.137 MB / 433.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002241/0.4182, allocations: 1.128 MB / 434.8 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/0.4209, allocations: 1.624 MB / 436.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008868/0.4218, allocations: 290.3 kB / 436.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002418/0.4242, allocations: 0.8821 MB / 437.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.4259, allocations: 1.509 MB / 439.1 MB, free: 32.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002637/0.4286, allocations: 1.96 MB / 441.1 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007065/0.4357, allocations: 5.773 MB / 446.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4357, allocations: 4 kB / 446.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4357, allocations: 3.156 kB / 446.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002345/0.436, allocations: 0 / 446.8 MB, free: 29.26 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01472/0.4507, allocations: 4.576 MB / 451.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/0.4508, allocations: 9.781 kB / 451.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001881/0.4527, allocations: 0.6685 MB / 452.1 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008181/0.4609, allocations: 1.91 MB / 454 MB, free: 26.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.4652, allocations: 1.582 MB / 455.6 MB, free: 25.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.4654, allocations: 195.3 kB / 455.8 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0013/0.4667, allocations: 256.5 kB / 456 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02056/0.4873, allocations: 9.784 MB / 465.8 MB, free: 20.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.4875, allocations: 27.11 kB / 465.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000543/0.488, allocations: 121.3 kB / 466 MB, free: 20.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005033/0.4931, allocations: 2.295 MB / 468.2 MB, free: 20.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02332/0.5164, allocations: 8.485 MB / 476.7 MB, free: 17.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05198/0.5685, allocations: 30.7 MB / 0.4955 GB, free: 5.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007595/0.5761, allocations: 2.802 MB / 0.4983 GB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002155/0.5783, allocations: 1.045 MB / 0.4993 GB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01092/0.5893, allocations: 5.839 MB / 0.505 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.5894, allocations: 43.88 kB / 0.505 GB, free: 10.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 6.802e-06/0.5894, allocations: 4 kB / 0.505 GB, free: 10.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.02007/0.6095, allocations: 8.27 MB / 0.5131 GB, free: 2.461 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.6096, allocations: 68.72 kB / 0.5132 GB, free: 2.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005443/0.615, allocations: 3.198 MB / 0.5163 GB, free: 15.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003757/0.6155, allocations: 49.7 kB / 0.5164 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/0.6176, allocations: 2.605 MB / 0.5189 GB, free: 12.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.6187, allocations: 0.6721 MB / 0.5196 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001553/0.6202, allocations: 0.9746 MB / 0.5205 GB, free: 10.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.6203, allocations: 317 kB / 0.5208 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002937/0.6233, allocations: 1.559 MB / 0.5223 GB, free: 8.977 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005242/0.6286, allocations: 4.361 MB / 0.5266 GB, free: 3.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00912/0.6377, allocations: 6.378 MB / 0.5328 GB, free: 11.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/0.6379, allocations: 28 kB / 0.5328 GB, free: 11.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01471/0.6526, allocations: 6.028 MB / 0.5387 GB, free: 5.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002174/0.6529, allocations: 48 kB / 0.5388 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002296/0.6531, allocations: 96 kB / 0.5389 GB, free: 5.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.6543, allocations: 383 kB / 0.5392 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00404/0.6583, allocations: 1.1 MB / 0.5403 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0051/0.6635, allocations: 3.705 MB / 0.5439 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004409/0.6679, allocations: 239.8 kB / 0.5442 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/0.6689, allocations: 296 kB / 0.5444 GB, free: 15.44 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],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 (597): * Single equations (assignments): 591 * Array equations: 5 * 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.00463/0.6736, allocations: 1.892 MB / 0.5463 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007665/0.6744, allocations: 272.4 kB / 0.5465 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005345/0.6797, allocations: 2.424 MB / 0.5489 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002048/0.68, allocations: 47.95 kB / 0.549 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/0.68, allocations: 0 / 0.549 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/0.68, allocations: 7.969 kB / 0.549 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01534/0.6954, allocations: 6.89 MB / 0.5557 GB, free: 3.793 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.6954, allocations: 4 kB / 0.5557 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.6965, allocations: 268 kB / 0.556 GB, free: 3.527 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007124/0.6972, allocations: 244.6 kB / 0.5562 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/0.6974, allocations: 37.95 kB / 0.5562 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.7008, allocations: 2.956 MB / 0.5591 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.635e-06/0.7008, allocations: 7.938 kB / 0.5591 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005785/0.7066, allocations: 3.73 MB / 0.5628 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00096/0.7076, allocations: 349.6 kB / 0.5631 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007034/0.7083, allocations: 30.5 kB / 0.5631 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.7097, allocations: 79.91 kB / 0.5632 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/0.71, allocations: 113 kB / 0.5633 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.7101, allocations: 55.98 kB / 0.5634 GB, free: 11.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003952/0.7141, allocations: 2.033 MB / 0.5653 GB, free: 9.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7141, allocations: 4 kB / 0.5654 GB, free: 9.676 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004805/0.7189, allocations: 0.8382 MB / 0.5662 GB, free: 8.84 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * 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.006636/0.7255, allocations: 4.397 MB / 0.5705 GB, free: 4.367 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2163/0.9418, allocations: 5.491 MB / 0.5758 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.9419, allocations: 3 kB / 0.5758 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002366/0.9443, allocations: 1.206 MB / 0.577 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.9469, allocations: 454.2 kB / 0.5774 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0499/0.9968, allocations: 38.06 MB / 0.6146 GB, free: 99.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003809/1.001, allocations: 3.001 MB / 0.6175 GB, free: 98.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00387/1.005, allocations: 1.432 MB / 0.6189 GB, free: 98.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002198/1.007, allocations: 1.692 MB / 0.6206 GB, free: 97.16 MB / 446.1 MB Notification: Performance of SimCode: time 9.32e-07/1.007, allocations: 0 / 0.6206 GB, free: 97.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1095/1.116, allocations: 57.52 MB / 0.6768 GB, free: 54.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.3, allocations: 2.969 kB / 0.6768 GB, free: 54.57 MB / 446.1 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & python3 -m fmpy simulate --output-file PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)