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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 183.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 222.9 MB / 239.7 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009464/0.0009463, allocations: 111.8 kB / 289.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04046/0.04046, allocations: 8.942 MB / 349 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009652/0.0009654, allocations: 63.89 kB / 411.1 MB, free: 57.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.08076, allocations: 51.39 MB / 462.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.1836/0.2644, allocations: 47.32 MB / 0.4979 GB, free: 2.172 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01888/0.2833, allocations: 9.854 MB / 0.5075 GB, free: 11.44 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007669/0.291, allocations: 179.5 kB / 0.5077 GB, free: 11.41 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.2928, allocations: 0.6943 MB / 0.5084 GB, free: 11.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004296/0.2971, allocations: 2.006 MB / 0.5103 GB, free: 9.621 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004634/0.2976, allocations: 164.5 kB / 0.5105 GB, free: 9.492 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005852/0.3035, allocations: 6.208 MB / 0.5165 GB, free: 5.879 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00239/0.3059, allocations: 2.001 MB / 0.5185 GB, free: 3.879 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001832/0.3077, allocations: 1.307 MB / 0.5198 GB, free: 2.566 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.3101, allocations: 2.249 MB / 0.522 GB, free: 316 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005138/0.3107, allocations: 228 kB / 0.5222 GB, free: 88 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001604/0.3123, allocations: 0.8229 MB / 0.523 GB, free: 15.26 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/0.314, allocations: 1.971 MB / 0.5249 GB, free: 13.29 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002123/0.3161, allocations: 2.573 MB / 0.5274 GB, free: 10.7 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006385/0.3225, allocations: 7.826 MB / 0.5351 GB, free: 2.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3225, allocations: 4 kB / 0.5351 GB, free: 2.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3225, allocations: 0 / 0.5351 GB, free: 2.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001258/0.3226, allocations: 0 / 0.5351 GB, free: 2.84 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.009859/0.3325, allocations: 6.012 MB / 0.5409 GB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3326, allocations: 8.031 kB / 0.5409 GB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01107/0.3436, allocations: 3.359 MB / 0.5442 GB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004502/0.3482, allocations: 2.232 MB / 0.5464 GB, free: 7.094 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.3484, allocations: 254.2 kB / 0.5466 GB, free: 6.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006379/0.349, allocations: 327.7 kB / 0.547 GB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.3677, allocations: 14.16 MB / 0.5608 GB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.3678, allocations: 51.47 kB / 0.5608 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004428/0.3683, allocations: 167.8 kB / 0.561 GB, free: 7.262 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004793/0.3731, allocations: 3.347 MB / 0.5643 GB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02123/0.3943, allocations: 12.34 MB / 0.5763 GB, free: 7.566 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06547/0.4598, allocations: 49.98 MB / 0.6251 GB, free: 4.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007269/0.4672, allocations: 3.918 MB / 0.6289 GB, free: 72 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.4695, allocations: 1.382 MB / 0.6303 GB, free: 14.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0126/0.4822, allocations: 6.884 MB / 0.637 GB, free: 7.293 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.691e-05/0.4823, allocations: 51.56 kB / 0.6371 GB, free: 7.234 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 5.39e-06/0.4823, allocations: 0 / 0.6371 GB, free: 7.234 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.195/0.6773, allocations: 11.82 MB / 0.6486 GB, free: 152.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.6774, allocations: 153.4 kB / 0.6488 GB, free: 152 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0075/0.6849, allocations: 5.375 MB / 0.654 GB, free: 150 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002606/0.6852, allocations: 52.27 kB / 0.6541 GB, free: 149.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002684/0.6879, allocations: 4.11 MB / 0.6581 GB, free: 146.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000966/0.6888, allocations: 0.8875 MB / 0.6589 GB, free: 146.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001985/0.6908, allocations: 1.685 MB / 0.6606 GB, free: 145.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.6909, allocations: 301.9 kB / 0.6609 GB, free: 145 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003849/0.6947, allocations: 2.521 MB / 0.6633 GB, free: 144.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005017/0.6998, allocations: 7.671 MB / 0.6708 GB, free: 136.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008512/0.7083, allocations: 11.03 MB / 0.6816 GB, free: 126.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001971/0.7085, allocations: 54.34 kB / 0.6816 GB, free: 126.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=1079) (initialization): time 0.01457/0.7231, allocations: 10.01 MB / 0.6914 GB, free: 122 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.186e-05/0.7232, allocations: 84 kB / 0.6915 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001451/0.7234, allocations: 180 kB / 0.6917 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007098/0.7241, allocations: 462.7 kB / 0.6921 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004381/0.7285, allocations: 1.856 MB / 0.6939 GB, free: 119.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.7316, allocations: 3.555 MB / 0.6974 GB, free: 116.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/0.7375, allocations: 417.8 kB / 0.6978 GB, free: 116 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006889/0.7382, allocations: 0.5035 MB / 0.6983 GB, free: 115.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 833 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[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 (1010): * Single equations (assignments): 1001 * Array equations: 8 * 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.00351/0.7418, allocations: 2.901 MB / 0.7011 GB, free: 113 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000632/0.7424, allocations: 438.2 kB / 0.7015 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003367/0.7458, allocations: 2.516 MB / 0.704 GB, free: 110.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001651/0.746, allocations: 48.41 kB / 0.704 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/0.746, allocations: 8 kB / 0.704 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.746, allocations: 15.34 kB / 0.7041 GB, free: 110.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/0.7581, allocations: 8.219 MB / 0.7121 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.464e-05/0.7581, allocations: 4 kB / 0.7121 GB, free: 102 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.7593, allocations: 300.4 kB / 0.7124 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005016/0.7598, allocations: 217.1 kB / 0.7126 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.7599, allocations: 43.81 kB / 0.7126 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002275/0.7622, allocations: 2.728 MB / 0.7153 GB, free: 98.64 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.7622, allocations: 4 kB / 0.7153 GB, free: 98.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02361/0.7858, allocations: 18.11 MB / 0.733 GB, free: 80.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006338/0.7865, allocations: 0.4887 MB / 0.7335 GB, free: 79.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000379/0.7869, allocations: 39.66 kB / 0.7335 GB, free: 79.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.7881, allocations: 91.89 kB / 0.7336 GB, free: 79.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.7884, allocations: 125.1 kB / 0.7337 GB, free: 79.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.7885, allocations: 71.42 kB / 0.7338 GB, free: 79.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00381/0.7923, allocations: 3.373 MB / 0.7371 GB, free: 75.97 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7923, allocations: 0 / 0.7371 GB, free: 75.97 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006122/0.7984, allocations: 1.539 MB / 0.7386 GB, free: 74.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (165): * Single equations (assignments): 156 * Array equations: 8 * 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.0003436/0.7988, allocations: 180.5 kB / 0.7387 GB, free: 74.25 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007948/0.8068, allocations: 5.907 MB / 0.7445 GB, free: 68.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.8068, allocations: 4 kB / 0.7445 GB, free: 68.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001724/0.8085, allocations: 1.477 MB / 0.746 GB, free: 66.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003075/0.8116, allocations: 0.5599 MB / 0.7465 GB, free: 66.35 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01642/0.8281, allocations: 15.62 MB / 0.7618 GB, free: 50.62 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003404/0.8315, allocations: 4.154 MB / 0.7658 GB, free: 46.43 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005343/0.8369, allocations: 2.548 MB / 0.7683 GB, free: 43.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000724/0.8376, allocations: 319.4 kB / 0.7686 GB, free: 43.56 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/0.8376, allocations: 4 kB / 0.7686 GB, free: 43.56 MB / 458.7 MB Notification: Performance of Templates: time 0.2305/1.068, allocations: 44.14 MB / 0.8117 GB, free: 134.4 MB / 458.7 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)