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.001187/0.001187, allocations: 108 kB / 15.61 MB, free: 152 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.001286/0.001286, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1332/0.1332, allocations: 9.103 MB / 299.5 MB, free: 1.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.89 kB / 362.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 51.43 MB / 413.5 MB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.1794/0.2859, allocations: 10.68 MB / 424.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00406/0.2899, allocations: 2.957 MB / 427.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005538/0.2905, allocations: 44.16 kB / 427.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005875/0.2911, allocations: 445.7 kB / 427.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002134/0.2933, allocations: 1.667 MB / 429.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.2936, allocations: 168.3 kB / 429.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.2953, allocations: 3.103 MB / 432.5 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007706/0.2961, allocations: 1.137 MB / 433.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006404/0.2968, allocations: 1.128 MB / 434.8 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.2978, allocations: 1.616 MB / 436.4 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002924/0.2981, allocations: 292.7 kB / 436.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009803/0.2991, allocations: 0.8796 MB / 437.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006841/0.2998, allocations: 1.51 MB / 439.1 MB, free: 32.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000929/0.3007, allocations: 1.958 MB / 441 MB, free: 31.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003356/0.3041, allocations: 5.785 MB / 446.8 MB, free: 29.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3041, allocations: 0 / 446.8 MB, free: 29.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3041, allocations: 0 / 446.8 MB, free: 29.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.699e-05/0.3042, allocations: 0 / 446.8 MB, free: 29.35 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.00726/0.3115, allocations: 4.581 MB / 451.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3115, allocations: 10.19 kB / 451.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000558/0.3121, allocations: 0.6685 MB / 452.1 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00687/0.319, allocations: 1.911 MB / 454 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003026/0.322, allocations: 1.585 MB / 455.6 MB, free: 25.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.3222, allocations: 194.4 kB / 455.8 MB, free: 25.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004702/0.3227, allocations: 251.3 kB / 456 MB, free: 25.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.3338, allocations: 9.792 MB / 465.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.984e-05/0.3339, allocations: 25.14 kB / 465.8 MB, free: 21.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/0.3342, allocations: 122 kB / 466 MB, free: 21.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003241/0.3374, allocations: 2.298 MB / 468.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.35, allocations: 8.474 MB / 476.7 MB, free: 17.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02656/0.3766, allocations: 30.7 MB / 0.4955 GB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005379/0.382, allocations: 2.798 MB / 0.4983 GB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.3834, allocations: 1.051 MB / 0.4993 GB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006763/0.3902, allocations: 5.839 MB / 0.505 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.3902, allocations: 47.88 kB / 0.505 GB, free: 10.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 2.886e-06/0.3903, allocations: 0 / 0.505 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01433/0.4046, allocations: 8.262 MB / 0.5131 GB, free: 2.484 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.4047, allocations: 72.7 kB / 0.5132 GB, free: 2.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003851/0.4085, allocations: 3.194 MB / 0.5163 GB, free: 15.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.592e-05/0.4086, allocations: 51.97 kB / 0.5164 GB, free: 15.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001414/0.41, allocations: 2.604 MB / 0.5189 GB, free: 12.53 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004477/0.4105, allocations: 0.67 MB / 0.5195 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001062/0.4116, allocations: 0.9829 MB / 0.5205 GB, free: 10.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.008e-05/0.4117, allocations: 305.1 kB / 0.5208 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002227/0.4139, allocations: 1.567 MB / 0.5223 GB, free: 9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004147/0.418, allocations: 4.357 MB / 0.5266 GB, free: 3.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006227/0.4243, allocations: 6.379 MB / 0.5328 GB, free: 11.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-05/0.4243, allocations: 28 kB / 0.5328 GB, free: 11.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.008215/0.4325, allocations: 6.038 MB / 0.5387 GB, free: 5.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.4326, allocations: 49 kB / 0.5388 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-05/0.4327, allocations: 96 kB / 0.5389 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007486/0.4334, allocations: 390.6 kB / 0.5392 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002717/0.4362, allocations: 1.092 MB / 0.5403 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004139/0.4403, allocations: 3.7 MB / 0.5439 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002974/0.4433, allocations: 247.9 kB / 0.5442 GB, free: 15.74 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005042/0.4438, allocations: 298.2 kB / 0.5444 GB, free: 15.45 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.002728/0.4466, allocations: 1.881 MB / 0.5463 GB, free: 13.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000465/0.447, allocations: 276.4 kB / 0.5465 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003923/0.451, allocations: 2.422 MB / 0.5489 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001724/0.4512, allocations: 43.97 kB / 0.549 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4512, allocations: 4 kB / 0.549 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.151e-05/0.4512, allocations: 7.969 kB / 0.549 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.4614, allocations: 6.9 MB / 0.5557 GB, free: 3.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.4614, allocations: 4 kB / 0.5557 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009775/0.4624, allocations: 259.6 kB / 0.556 GB, free: 3.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006024/0.463, allocations: 248.6 kB / 0.5562 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.234e-05/0.4631, allocations: 35.98 kB / 0.5562 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003013/0.4662, allocations: 2.952 MB / 0.5591 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4662, allocations: 11.94 kB / 0.5591 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.4712, allocations: 3.73 MB / 0.5628 GB, free: 12.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006539/0.4719, allocations: 345.6 kB / 0.5631 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003062/0.4722, allocations: 34.66 kB / 0.5631 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001223/0.4734, allocations: 79.91 kB / 0.5632 GB, free: 11.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001943/0.4736, allocations: 109 kB / 0.5633 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.4737, allocations: 55.98 kB / 0.5634 GB, free: 11.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00294/0.4767, allocations: 2.037 MB / 0.5654 GB, free: 9.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4767, allocations: 0 / 0.5654 GB, free: 9.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003472/0.4802, allocations: 0.8423 MB / 0.5662 GB, free: 8.855 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.005941/0.4861, allocations: 4.389 MB / 0.5705 GB, free: 4.391 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1798/0.6659, allocations: 5.491 MB / 0.5758 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.727e-05/0.666, allocations: 0 / 0.5758 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002727/0.6687, allocations: 1.21 MB / 0.577 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/0.6721, allocations: 460.1 kB / 0.5774 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06578/0.7379, allocations: 38.05 MB / 0.6146 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004836/0.7428, allocations: 3.011 MB / 0.6175 GB, free: 98.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005774/0.7486, allocations: 1.434 MB / 0.6189 GB, free: 98.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/0.7523, allocations: 1.687 MB / 0.6206 GB, free: 97.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7523, allocations: 0 / 0.6206 GB, free: 97.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09985/0.8522, allocations: 57.53 MB / 0.6768 GB, free: 54.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.95, allocations: 6.828 kB / 0.6768 GB, free: 54.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_PowerDistanceDemo.fmu > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)