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.001026/0.001026, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001281/0.001281, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2246/0.2246, allocations: 9.12 MB / 300.2 MB, free: 2.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005139/0.000514, allocations: 8 kB / 363.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1504, allocations: 52.43 MB / 415.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.3015/0.4519, allocations: 40.22 MB / 455.8 MB, free: 19.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02505/0.477, allocations: 8.908 MB / 464.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01224/0.4893, allocations: 164.1 kB / 464.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007554/0.4969, allocations: 1.982 MB / 466.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02293/0.5199, allocations: 6.925 MB / 473.7 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.5224, allocations: 167.5 kB / 473.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005814/0.5283, allocations: 3.466 MB / 477.4 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002289/0.5306, allocations: 1.012 MB / 478.4 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.5333, allocations: 0.9969 MB / 479.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003414/0.5367, allocations: 1.595 MB / 481 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007646/0.5375, allocations: 165.1 kB / 481.1 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00218/0.5397, allocations: 0.6903 MB / 481.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001922/0.5416, allocations: 1.377 MB / 483.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001103/0.5427, allocations: 0.778 MB / 484 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007976/0.5507, allocations: 4.447 MB / 488.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.5507, allocations: 1.031 kB / 488.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5508, allocations: 0 / 488.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002315/0.551, allocations: 4 kB / 488.4 MB, free: 4.5 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.01338/0.5644, allocations: 3.825 MB / 492.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.357e-05/0.5645, allocations: 13.84 kB / 492.3 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008455/0.5729, allocations: 1.948 MB / 494.2 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004754/0.5777, allocations: 1.555 MB / 495.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.578, allocations: 191.4 kB / 496 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008491/0.5788, allocations: 256.8 kB / 496.2 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02452/0.6034, allocations: 9.768 MB / 0.4941 GB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/0.6036, allocations: 31.72 kB / 0.4942 GB, free: 8.973 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001489/0.6051, allocations: 115.8 kB / 0.4943 GB, free: 8.859 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005349/0.6105, allocations: 2.306 MB / 0.4965 GB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/0.6327, allocations: 8.439 MB / 0.5048 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06311/0.6959, allocations: 30.71 MB / 0.5347 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008048/0.704, allocations: 2.783 MB / 0.5375 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002317/0.7063, allocations: 1.048 MB / 0.5385 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.7176, allocations: 5.843 MB / 0.5442 GB, free: 4.449 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.257e-05/0.7177, allocations: 47.88 kB / 0.5442 GB, free: 4.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 5.14e-06/0.7177, allocations: 0 / 0.5442 GB, free: 4.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.02038/0.7381, allocations: 8.208 MB / 0.5523 GB, free: 12.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.7382, allocations: 64.72 kB / 0.5523 GB, free: 12.04 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007205/0.7454, allocations: 3.167 MB / 0.5554 GB, free: 8.852 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002677/0.7457, allocations: 45.7 kB / 0.5555 GB, free: 8.801 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002361/0.7481, allocations: 2.609 MB / 0.558 GB, free: 6.156 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.7492, allocations: 0.6747 MB / 0.5587 GB, free: 5.473 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005486/0.7498, allocations: 96 kB / 0.5588 GB, free: 5.379 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0005618/0.7503, allocations: 0.5087 MB / 0.5592 GB, free: 4.863 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003834/0.7542, allocations: 1.548 MB / 0.5608 GB, free: 3.309 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006311/0.7605, allocations: 4.345 MB / 0.565 GB, free: 13.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005154/0.7657, allocations: 2.554 MB / 0.5675 GB, free: 11.03 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.7658, allocations: 28 kB / 0.5675 GB, free: 11 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.01475/0.7806, allocations: 5.987 MB / 0.5734 GB, free: 5.004 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.7808, allocations: 48 kB / 0.5734 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/0.781, allocations: 104.9 kB / 0.5735 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009654/0.7819, allocations: 364.5 kB / 0.5739 GB, free: 4.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004223/0.7862, allocations: 1.096 MB / 0.5749 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2925/1.079, allocations: 3.393 MB / 0.5782 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005867/1.085, allocations: 249.1 kB / 0.5785 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/1.086, allocations: 296.3 kB / 0.5788 GB, free: 119.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004484/1.09, allocations: 1.887 MB / 0.5806 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005357/1.091, allocations: 268.7 kB / 0.5809 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003863/1.095, allocations: 2.415 MB / 0.5832 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001646/1.095, allocations: 47.7 kB / 0.5833 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/1.095, allocations: 8.406 kB / 0.5833 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/1.095, allocations: 6.75 kB / 0.5833 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/1.106, allocations: 6.885 MB / 0.59 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.107, allocations: 6.594 kB / 0.59 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009333/1.107, allocations: 259.6 kB / 0.5903 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004998/1.108, allocations: 220.4 kB / 0.5905 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.481e-05/1.108, allocations: 36.12 kB / 0.5905 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002472/1.111, allocations: 2.71 MB / 0.5932 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.748e-06/1.111, allocations: 2.812 kB / 0.5932 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004694/1.115, allocations: 3.726 MB / 0.5968 GB, free: 114.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008104/1.116, allocations: 363.9 kB / 0.5971 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002865/1.116, allocations: 30.22 kB / 0.5972 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009486/1.117, allocations: 79.3 kB / 0.5972 GB, free: 114.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/1.118, allocations: 113.2 kB / 0.5974 GB, free: 114.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/1.118, allocations: 54.16 kB / 0.5974 GB, free: 114.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003438/1.121, allocations: 2.011 MB / 0.5994 GB, free: 114 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/1.121, allocations: 0 / 0.5994 GB, free: 114 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004138/1.125, allocations: 0.8471 MB / 0.6002 GB, free: 113.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004075/1.126, allocations: 163.3 kB / 0.6004 GB, free: 113.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/1.133, allocations: 3.806 MB / 0.6041 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.133, allocations: 3.219 kB / 0.6041 GB, free: 112.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/1.134, allocations: 1.199 MB / 0.6052 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002645/1.137, allocations: 436.3 kB / 0.6057 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/1.157, allocations: 9.532 MB / 0.615 GB, free: 106.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004107/1.161, allocations: 3.005 MB / 0.6179 GB, free: 105.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005263/1.167, allocations: 1.438 MB / 0.6193 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007745/1.167, allocations: 207.9 kB / 0.6195 GB, free: 105.4 MB / 446.1 MB Notification: Performance of SimCode: time 2.434e-06/1.167, allocations: 3.281 kB / 0.6195 GB, free: 105.4 MB / 446.1 MB Notification: Performance of Templates: time 0.05461/1.222, allocations: 28.4 MB / 0.6472 GB, free: 89.43 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)