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.001244/0.001244, allocations: 102.9 kB / 16.35 MB, free: 6.289 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.001092/0.001092, allocations: 193.4 kB / 17.3 MB, free: 5.859 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04515/0.04515, allocations: 9.12 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 64.03 kB / 363.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2064, allocations: 51.42 MB / 414.8 MB, free: 24.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.008955/0.2154, allocations: 10.7 MB / 425.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.2208, allocations: 2.955 MB / 428.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.2219, allocations: 43.88 kB / 428.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008296/0.2229, allocations: 448.8 kB / 428.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002768/0.2256, allocations: 1.661 MB / 430.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003679/0.226, allocations: 179.7 kB / 430.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002452/0.2285, allocations: 3.114 MB / 433.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009084/0.2294, allocations: 1.141 MB / 435 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008146/0.2302, allocations: 1.117 MB / 436.1 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.2314, allocations: 1.627 MB / 437.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000305/0.2318, allocations: 295.9 kB / 438.1 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.2329, allocations: 0.8777 MB / 438.9 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.2339, allocations: 1.512 MB / 440.4 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.2356, allocations: 1.953 MB / 442.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005828/0.2414, allocations: 6.064 MB / 448.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2414, allocations: 0 / 448.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2414, allocations: 0 / 448.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001141/0.2416, allocations: 0 / 448.5 MB, free: 7.066 MB / 318.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.009715/0.2513, allocations: 4.565 MB / 453 MB, free: 2.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2513, allocations: 12.03 kB / 453 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006979/0.2583, allocations: 1.906 MB / 454.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.2618, allocations: 1.585 MB / 456.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.262, allocations: 193 kB / 456.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006487/0.2626, allocations: 263.7 kB / 457 MB, free: 14.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01502/0.2777, allocations: 9.784 MB / 466.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-05/0.2778, allocations: 31.7 kB / 466.8 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.2782, allocations: 115.8 kB / 466.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00344/0.2816, allocations: 2.295 MB / 469.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.2984, allocations: 8.485 MB / 477.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04348/0.3419, allocations: 30.56 MB / 0.4963 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006209/0.3482, allocations: 2.806 MB / 0.4991 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.3499, allocations: 1.038 MB / 0.5001 GB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2132/0.5631, allocations: 5.831 MB / 0.5058 GB, free: 88.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.5631, allocations: 43.47 kB / 0.5058 GB, free: 87.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 4.799e-06/0.5631, allocations: 1.078 kB / 0.5058 GB, free: 87.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01637/0.5795, allocations: 8.227 MB / 0.5139 GB, free: 85.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.5796, allocations: 72.27 kB / 0.5139 GB, free: 85.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003656/0.5833, allocations: 3.184 MB / 0.517 GB, free: 84.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.5834, allocations: 55.08 kB / 0.5171 GB, free: 84.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00109/0.5845, allocations: 2.596 MB / 0.5196 GB, free: 82.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004358/0.5849, allocations: 0.6839 MB / 0.5203 GB, free: 81.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000978/0.5859, allocations: 0.9804 MB / 0.5212 GB, free: 81.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.955e-05/0.586, allocations: 302.4 kB / 0.5215 GB, free: 80.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.588, allocations: 1.562 MB / 0.5231 GB, free: 80.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002919/0.591, allocations: 4.364 MB / 0.5273 GB, free: 76.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005143/0.5961, allocations: 6.368 MB / 0.5335 GB, free: 68.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.225e-05/0.5962, allocations: 31.94 kB / 0.5336 GB, free: 68.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.007919/0.6041, allocations: 6.032 MB / 0.5395 GB, free: 62.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.6042, allocations: 48 kB / 0.5395 GB, free: 62.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-05/0.6042, allocations: 99.94 kB / 0.5396 GB, free: 62.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006637/0.6049, allocations: 343.2 kB / 0.5399 GB, free: 62.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/0.6077, allocations: 1.1 MB / 0.541 GB, free: 61.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.6111, allocations: 3.693 MB / 0.5446 GB, free: 57.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/0.6143, allocations: 248 kB / 0.5448 GB, free: 57.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002925/0.6146, allocations: 296 kB / 0.5451 GB, free: 57.05 MB / 382.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.002334/0.617, allocations: 1.885 MB / 0.547 GB, free: 55.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.6173, allocations: 276.4 kB / 0.5472 GB, free: 54.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.6207, allocations: 2.42 MB / 0.5496 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001527/0.6209, allocations: 51.89 kB / 0.5496 GB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.6209, allocations: 4 kB / 0.5496 GB, free: 52.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.6209, allocations: 7.969 kB / 0.5497 GB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009683/0.6306, allocations: 6.853 MB / 0.5563 GB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/0.6306, allocations: 4 kB / 0.5564 GB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009286/0.6316, allocations: 259.6 kB / 0.5566 GB, free: 45.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004896/0.6321, allocations: 227.2 kB / 0.5568 GB, free: 44.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.391e-05/0.6322, allocations: 32 kB / 0.5568 GB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002439/0.6346, allocations: 2.941 MB / 0.5597 GB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.6346, allocations: 7.938 kB / 0.5597 GB, free: 41.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.639, allocations: 3.735 MB / 0.5634 GB, free: 38.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006554/0.6397, allocations: 345.6 kB / 0.5637 GB, free: 37.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002947/0.64, allocations: 28 kB / 0.5637 GB, free: 37.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009396/0.641, allocations: 90.72 kB / 0.5638 GB, free: 37.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.6411, allocations: 109.7 kB / 0.5639 GB, free: 37.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.504e-05/0.6412, allocations: 51.98 kB / 0.564 GB, free: 37.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002343/0.6436, allocations: 2.029 MB / 0.566 GB, free: 35.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6436, allocations: 0 / 0.566 GB, free: 35.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003448/0.647, allocations: 0.8455 MB / 0.5668 GB, free: 34.55 MB / 382.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.0003183/0.6474, allocations: 176.2 kB / 0.5669 GB, free: 34.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00526/0.6526, allocations: 3.85 MB / 0.5707 GB, free: 30.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.6527, allocations: 4.125 kB / 0.5707 GB, free: 30.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.6541, allocations: 1.198 MB / 0.5719 GB, free: 29.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/0.6561, allocations: 468.1 kB / 0.5723 GB, free: 28.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.6673, allocations: 7.855 MB / 0.58 GB, free: 20.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/0.6699, allocations: 3.007 MB / 0.5829 GB, free: 17.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002884/0.6728, allocations: 1.428 MB / 0.5843 GB, free: 16.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004267/0.6733, allocations: 207.4 kB / 0.5845 GB, free: 16.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.432e-06/0.6733, allocations: 0 / 0.5845 GB, free: 16.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04753/0.7208, allocations: 25.94 MB / 0.6099 GB, free: 6.645 MB / 398.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 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)