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.009039/0.009039, allocations: 99.61 kB / 15.73 MB, free: 6.008 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.00177/0.00177, allocations: 196.2 kB / 16.67 MB, free: 5.93 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1811/0.1811, allocations: 9.109 MB / 299.6 MB, free: 1.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 64.12 kB / 414.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3303, allocations: 51.43 MB / 466.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01161/0.3419, allocations: 10.68 MB / 476.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007625/0.3496, allocations: 2.957 MB / 479.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002194/0.3518, allocations: 41.31 kB / 479.8 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00133/0.3532, allocations: 453.5 kB / 480.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00683/0.3601, allocations: 1.718 MB / 481.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009427/0.3611, allocations: 176.1 kB / 482.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006503/0.3676, allocations: 3.111 MB / 485.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00231/0.3699, allocations: 1.151 MB / 486.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002729/0.3727, allocations: 1.133 MB / 487.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002149/0.3748, allocations: 1.614 MB / 489.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006594/0.3755, allocations: 292.2 kB / 489.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00173/0.3773, allocations: 0.8819 MB / 490.3 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001258/0.3785, allocations: 1.509 MB / 491.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.3801, allocations: 1.959 MB / 493.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006564/0.3867, allocations: 6.076 MB / 499.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3868, allocations: 4 kB / 499.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3868, allocations: 0 / 499.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001339/0.3869, allocations: 0 / 499.8 MB, free: 10.36 MB / 366.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.009993/0.3969, allocations: 4.58 MB / 0.4926 GB, free: 5.711 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.397, allocations: 8.031 kB / 0.4926 GB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006947/0.4039, allocations: 1.902 MB / 0.4944 GB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003256/0.4072, allocations: 1.585 MB / 0.496 GB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.4074, allocations: 189.1 kB / 0.4962 GB, free: 1.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004956/0.4079, allocations: 259.7 kB / 0.4964 GB, free: 1.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01553/0.4234, allocations: 9.784 MB / 0.506 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.562e-05/0.4236, allocations: 31.66 kB / 0.506 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003782/0.4239, allocations: 123.8 kB / 0.5061 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003913/0.4279, allocations: 2.299 MB / 0.5084 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/0.4482, allocations: 8.474 MB / 0.5166 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05354/0.5017, allocations: 30.56 MB / 0.5465 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007568/0.5094, allocations: 2.798 MB / 0.5492 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.5116, allocations: 1.04 MB / 0.5502 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01019/0.5218, allocations: 5.835 MB / 0.5559 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/0.5219, allocations: 43.88 kB / 0.556 GB, free: 2.949 MB / 430.1 MB Notification: Performance of pre-optimization done (n=159): time 6.032e-06/0.5219, allocations: 0 / 0.556 GB, free: 2.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=181): time 0.01928/0.5412, allocations: 8.231 MB / 0.564 GB, free: 10.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.5413, allocations: 68.72 kB / 0.5641 GB, free: 10.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007413/0.5487, allocations: 3.19 MB / 0.5672 GB, free: 7.348 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002792/0.549, allocations: 53.69 kB / 0.5672 GB, free: 7.289 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002296/0.5514, allocations: 2.597 MB / 0.5698 GB, free: 4.656 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008486/0.5522, allocations: 0.6747 MB / 0.5704 GB, free: 3.973 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/0.5543, allocations: 0.9917 MB / 0.5714 GB, free: 2.969 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5544, allocations: 305.1 kB / 0.5717 GB, free: 2.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003109/0.5575, allocations: 1.567 MB / 0.5732 GB, free: 1.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005497/0.563, allocations: 4.357 MB / 0.5775 GB, free: 11.35 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.5745, allocations: 6.377 MB / 0.5837 GB, free: 3.602 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001653/0.5747, allocations: 28 kB / 0.5837 GB, free: 3.574 MB / 462.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.316/0.8907, allocations: 6.026 MB / 0.5896 GB, free: 106 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001085/0.8908, allocations: 48.89 kB / 0.5897 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002153/0.8911, allocations: 97.72 kB / 0.5898 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/0.8921, allocations: 350.7 kB / 0.5901 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003669/0.8958, allocations: 1.096 MB / 0.5912 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.9003, allocations: 3.695 MB / 0.5948 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003362/0.9037, allocations: 248.9 kB / 0.595 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008433/0.9045, allocations: 297.7 kB / 0.5953 GB, free: 104 MB / 462.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.004181/0.9087, allocations: 1.887 MB / 0.5971 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/0.9094, allocations: 272.5 kB / 0.5974 GB, free: 103.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00505/0.9144, allocations: 2.421 MB / 0.5998 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001847/0.9146, allocations: 49.98 kB / 0.5998 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.9147, allocations: 2.562 kB / 0.5998 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.9147, allocations: 8.516 kB / 0.5998 GB, free: 102.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/0.9319, allocations: 6.848 MB / 0.6065 GB, free: 99.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/0.932, allocations: 4.188 kB / 0.6065 GB, free: 99.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.9331, allocations: 264.1 kB / 0.6068 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006239/0.9337, allocations: 216.3 kB / 0.607 GB, free: 99.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.9339, allocations: 36.75 kB / 0.607 GB, free: 99.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003148/0.937, allocations: 2.946 MB / 0.6099 GB, free: 97.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.937, allocations: 4.125 kB / 0.6099 GB, free: 97.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005971/0.943, allocations: 3.735 MB / 0.6135 GB, free: 96.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001431/0.9445, allocations: 347.7 kB / 0.6139 GB, free: 96.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005499/0.9451, allocations: 31.16 kB / 0.6139 GB, free: 96.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.9461, allocations: 83.73 kB / 0.614 GB, free: 96.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/0.9464, allocations: 112.2 kB / 0.6141 GB, free: 96.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.9465, allocations: 55.11 kB / 0.6141 GB, free: 96.01 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003644/0.9502, allocations: 2.033 MB / 0.6161 GB, free: 95.28 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9502, allocations: 0 / 0.6161 GB, free: 95.28 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005365/0.9556, allocations: 0.8365 MB / 0.6169 GB, free: 95.18 MB / 462.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.0006615/0.9563, allocations: 169.5 kB / 0.6171 GB, free: 95.05 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006544/0.9628, allocations: 3.847 MB / 0.6209 GB, free: 93.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.9629, allocations: 0.625 kB / 0.6209 GB, free: 93.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.9645, allocations: 1.205 MB / 0.622 GB, free: 93.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.9667, allocations: 473.6 kB / 0.6225 GB, free: 93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.9782, allocations: 7.856 MB / 0.6302 GB, free: 87.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002471/0.9807, allocations: 2.998 MB / 0.6331 GB, free: 84.32 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002829/0.9835, allocations: 1.435 MB / 0.6345 GB, free: 82.88 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.984, allocations: 211.4 kB / 0.6347 GB, free: 82.67 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/0.984, allocations: 0 / 0.6347 GB, free: 82.67 MB / 462.1 MB Notification: Performance of Templates: time 0.04566/1.03, allocations: 27.69 MB / 0.6617 GB, free: 55.2 MB / 462.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)