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: 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.001446/0.001446, allocations: 114.7 kB / 16.42 MB, free: 6.438 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.001643/0.001643, allocations: 190.5 kB / 17.35 MB, free: 5.738 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.364/1.364, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.05422/0.05422, allocations: 9.113 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.89 kB / 415.3 MB, free: 21.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08842/0.08971, allocations: 51.44 MB / 466.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.01088/0.1006, allocations: 10.69 MB / 477.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006501/0.1072, allocations: 2.953 MB / 480.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001113/0.1083, allocations: 43.94 kB / 480.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009731/0.1093, allocations: 456.9 kB / 480.9 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004059/0.1134, allocations: 1.649 MB / 482.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004821/0.1139, allocations: 187.7 kB / 482.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003809/0.1177, allocations: 3.113 MB / 485.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.1192, allocations: 1.141 MB / 487 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.1206, allocations: 1.128 MB / 488.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.1225, allocations: 1.627 MB / 489.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004673/0.123, allocations: 292 kB / 490 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.1245, allocations: 0.8777 MB / 490.9 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.1258, allocations: 1.504 MB / 492.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.1274, allocations: 1.953 MB / 494.3 MB, free: 5.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005631/0.133, allocations: 6.076 MB / 0.4887 GB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.133, allocations: 4 kB / 0.4887 GB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1331, allocations: 0 / 0.4887 GB, free: 15.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001556/0.1332, allocations: 0 / 0.4887 GB, free: 15.86 MB / 382.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.01011/0.1433, allocations: 4.572 MB / 0.4932 GB, free: 11.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.1434, allocations: 11.88 kB / 0.4932 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007555/0.151, allocations: 1.906 MB / 0.495 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002994/0.154, allocations: 1.589 MB / 0.4966 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.1542, allocations: 197.1 kB / 0.4968 GB, free: 7.465 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005417/0.1547, allocations: 255.7 kB / 0.497 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2105/0.3652, allocations: 9.779 MB / 0.5066 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.064e-05/0.3653, allocations: 27.39 kB / 0.5066 GB, free: 39.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003511/0.3656, allocations: 119.5 kB / 0.5067 GB, free: 39.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003736/0.3694, allocations: 2.303 MB / 0.509 GB, free: 38.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.3859, allocations: 8.474 MB / 0.5172 GB, free: 36.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0313/0.4172, allocations: 30.57 MB / 0.5471 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005351/0.4226, allocations: 2.801 MB / 0.5498 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.424, allocations: 1.051 MB / 0.5508 GB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00616/0.4301, allocations: 5.83 MB / 0.5565 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.4302, allocations: 47.86 kB / 0.5566 GB, free: 1.367 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 3.276e-06/0.4302, allocations: 0 / 0.5566 GB, free: 1.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01631/0.4465, allocations: 8.225 MB / 0.5646 GB, free: 9.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.4466, allocations: 68.72 kB / 0.5647 GB, free: 8.996 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004051/0.4506, allocations: 3.186 MB / 0.5678 GB, free: 5.785 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.4508, allocations: 53.7 kB / 0.5678 GB, free: 5.727 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001618/0.4524, allocations: 2.604 MB / 0.5704 GB, free: 3.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005914/0.453, allocations: 0.6746 MB / 0.571 GB, free: 2.406 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001276/0.4543, allocations: 0.9802 MB / 0.572 GB, free: 1.414 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.4544, allocations: 313 kB / 0.5723 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.4569, allocations: 1.563 MB / 0.5738 GB, free: 15.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004229/0.4611, allocations: 4.361 MB / 0.5781 GB, free: 9.789 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007355/0.4685, allocations: 6.379 MB / 0.5843 GB, free: 2.047 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.77e-05/0.4686, allocations: 28 kB / 0.5843 GB, free: 2.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.009807/0.4784, allocations: 6.032 MB / 0.5902 GB, free: 11.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.48e-05/0.4785, allocations: 48 kB / 0.5903 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.992e-05/0.4786, allocations: 104.1 kB / 0.5904 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007877/0.4794, allocations: 340.7 kB / 0.5907 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003206/0.4826, allocations: 1.096 MB / 0.5918 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004376/0.487, allocations: 3.699 MB / 0.5954 GB, free: 6.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003021/0.49, allocations: 255.8 kB / 0.5956 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003806/0.4904, allocations: 296 kB / 0.5959 GB, free: 6.016 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.002591/0.493, allocations: 1.886 MB / 0.5978 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003791/0.4934, allocations: 268.5 kB / 0.598 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004115/0.4975, allocations: 2.422 MB / 0.6004 GB, free: 1.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.4976, allocations: 11.91 kB / 0.6004 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4976, allocations: 0 / 0.6004 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004879/0.4981, allocations: 337.6 kB / 0.6007 GB, free: 1.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003196/0.4984, allocations: 31.94 kB / 0.6007 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009774/0.4994, allocations: 75.89 kB / 0.6008 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4996, allocations: 97.16 kB / 0.6009 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004197/0.5038, allocations: 2.295 MB / 0.6031 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004891/0.5087, allocations: 3.498 MB / 0.6066 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001298/0.51, allocations: 0.907 MB / 0.6074 GB, free: 10.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.5128, allocations: 2.033 MB / 0.6094 GB, free: 8.086 MB / 446.1 MB Notification: Performance of Backend: time 6.11e-07/0.5128, allocations: 2.625 kB / 0.6094 GB, free: 8.086 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005962/0.5188, allocations: 3.197 MB / 0.6126 GB, free: 4.902 MB / 446.1 MB Notification: Performance of SimCode: time 0.01233/0.5311, allocations: 8.118 MB / 0.6205 GB, free: 12.74 MB / 462.1 MB Notification: Performance of Templates: time 0.06791/0.5991, allocations: 38.26 MB / 0.6578 GB, free: 6.637 MB / 494.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)