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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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: translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009228/0.0009229, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006934/0.006935, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.418/1.418, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1707/0.1707, allocations: 9.104 MB / 300.5 MB, free: 2.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003667, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1301, allocations: 52.43 MB / 416.1 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2622/0.3924, allocations: 43.21 MB / 459.4 MB, free: 16.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02046/0.4129, allocations: 9.247 MB / 468.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009542/0.4225, allocations: 164.8 kB / 468.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.424, allocations: 377.1 kB / 469.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004114/0.4281, allocations: 1.545 MB / 470.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005492/0.4287, allocations: 155.7 kB / 470.8 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00445/0.4331, allocations: 4.321 MB / 475.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001387/0.4345, allocations: 1.029 MB / 476.2 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001253/0.4358, allocations: 0.9425 MB / 477.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001765/0.4376, allocations: 1.608 MB / 478.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004432/0.438, allocations: 166.7 kB / 478.9 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001672/0.4397, allocations: 0.7959 MB / 479.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00152/0.4412, allocations: 1.414 MB / 481.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001958/0.4432, allocations: 1.859 MB / 483 MB, free: 4.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007093/0.4503, allocations: 5.457 MB / 488.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4503, allocations: 0 / 488.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4503, allocations: 0 / 488.4 MB, free: 2.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000211/0.4506, allocations: 5.375 kB / 488.4 MB, free: 2.758 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.01167/0.4622, allocations: 3.779 MB / 492.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4623, allocations: 9.844 kB / 492.2 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008996/0.4713, allocations: 1.949 MB / 494.2 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006716/0.4781, allocations: 1.583 MB / 495.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003446/0.4785, allocations: 191.5 kB / 495.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0019/0.4804, allocations: 260.2 kB / 496.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02152/0.5019, allocations: 9.788 MB / 0.4941 GB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001318/0.5021, allocations: 31.66 kB / 0.4941 GB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005818/0.5027, allocations: 119.8 kB / 0.4943 GB, free: 9.152 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00434/0.507, allocations: 2.306 MB / 0.4965 GB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/0.5276, allocations: 8.474 MB / 0.5048 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0507/0.5783, allocations: 30.74 MB / 0.5348 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007234/0.5856, allocations: 2.802 MB / 0.5375 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001974/0.5876, allocations: 1.049 MB / 0.5386 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01053/0.5982, allocations: 5.847 MB / 0.5443 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.5982, allocations: 47.88 kB / 0.5443 GB, free: 4.598 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 4.509e-06/0.5983, allocations: 0 / 0.5443 GB, free: 4.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01897/0.6172, allocations: 8.222 MB / 0.5523 GB, free: 12.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.6173, allocations: 68.72 kB / 0.5524 GB, free: 12.22 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/0.6223, allocations: 3.182 MB / 0.5555 GB, free: 9.023 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.6225, allocations: 61.69 kB / 0.5556 GB, free: 8.957 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002009/0.6245, allocations: 2.597 MB / 0.5581 GB, free: 6.324 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006818/0.6252, allocations: 0.6746 MB / 0.5588 GB, free: 5.641 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006311/0.6259, allocations: 420.7 kB / 0.5592 GB, free: 5.223 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.626, allocations: 305.1 kB / 0.5595 GB, free: 4.922 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/0.6289, allocations: 1.563 MB / 0.561 GB, free: 3.352 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00489/0.6339, allocations: 4.361 MB / 0.5653 GB, free: 13.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00874/0.6426, allocations: 6.38 MB / 0.5715 GB, free: 5.859 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.098e-05/0.6427, allocations: 28 kB / 0.5715 GB, free: 5.832 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.2129/0.8556, allocations: 6.031 MB / 0.5774 GB, free: 120.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.231e-05/0.8557, allocations: 46.78 kB / 0.5774 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001412/0.8559, allocations: 98.34 kB / 0.5775 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008953/0.8568, allocations: 342.1 kB / 0.5779 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003527/0.8603, allocations: 1.099 MB / 0.5789 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003373/0.8637, allocations: 3.4 MB / 0.5823 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003333/0.867, allocations: 247 kB / 0.5825 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000383/0.8674, allocations: 293.9 kB / 0.5828 GB, free: 118.9 MB / 446.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.002818/0.8703, allocations: 1.886 MB / 0.5846 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.8706, allocations: 275.2 kB / 0.5849 GB, free: 118.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003737/0.8744, allocations: 2.424 MB / 0.5872 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001717/0.8745, allocations: 44.44 kB / 0.5873 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.8746, allocations: 4.219 kB / 0.5873 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.8746, allocations: 10.58 kB / 0.5873 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00955/0.8841, allocations: 6.897 MB / 0.594 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.8842, allocations: 6.844 kB / 0.594 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009875/0.8852, allocations: 260.6 kB / 0.5943 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005178/0.8857, allocations: 220.2 kB / 0.5945 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.8858, allocations: 36.58 kB / 0.5945 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/0.8882, allocations: 2.723 MB / 0.5972 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.8882, allocations: 10.59 kB / 0.5972 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004923/0.8931, allocations: 3.731 MB / 0.6008 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009624/0.8941, allocations: 362.7 kB / 0.6012 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003408/0.8945, allocations: 33.12 kB / 0.6012 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.8955, allocations: 85.33 kB / 0.6013 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001941/0.8957, allocations: 106.7 kB / 0.6014 GB, free: 113.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.8958, allocations: 57.77 kB / 0.6015 GB, free: 113.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003219/0.899, allocations: 2.027 MB / 0.6034 GB, free: 112.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8991, allocations: 0.9688 kB / 0.6034 GB, free: 112.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004055/0.9031, allocations: 0.8453 MB / 0.6043 GB, free: 112.6 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.0003762/0.9035, allocations: 166.8 kB / 0.6044 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006035/0.9096, allocations: 3.831 MB / 0.6082 GB, free: 111.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.9096, allocations: 5.984 kB / 0.6082 GB, free: 111.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.9114, allocations: 1.203 MB / 0.6094 GB, free: 110.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/0.915, allocations: 431.4 kB / 0.6098 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.9285, allocations: 9.955 MB / 0.6195 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003388/0.9319, allocations: 3.001 MB / 0.6224 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004084/0.936, allocations: 1.429 MB / 0.6238 GB, free: 103.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005553/0.9366, allocations: 213.8 kB / 0.624 GB, free: 103.8 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.9366, allocations: 0 / 0.624 GB, free: 103.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04625/0.9829, allocations: 29.04 MB / 0.6524 GB, free: 83.42 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)