Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") translateModel(PlanarMechanics.Examples.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001335/0.001335, allocations: 193.5 kB / 16.14 MB, free: 6.66 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.379/1.379, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1613/0.1613, allocations: 9.119 MB / 299.1 MB, free: 1.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001742, allocations: 63.89 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1227, allocations: 51.43 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2683/0.391, allocations: 30.91 MB / 443.6 MB, free: 26.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01654/0.4076, allocations: 6.79 MB / 450.4 MB, free: 22.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008819/0.4165, allocations: 112.2 kB / 450.5 MB, free: 22.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.4178, allocations: 303.4 kB / 450.8 MB, free: 21.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003807/0.4216, allocations: 1.332 MB / 452.1 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.4221, allocations: 124.1 kB / 452.3 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003575/0.4257, allocations: 3.533 MB / 455.8 MB, free: 20.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009876/0.4267, allocations: 0.837 MB / 456.6 MB, free: 19.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009057/0.4276, allocations: 0.7714 MB / 457.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001294/0.4289, allocations: 1.331 MB / 458.7 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002585/0.4292, allocations: 134.9 kB / 458.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.4305, allocations: 0.7765 MB / 459.6 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008066/0.4313, allocations: 1.148 MB / 460.8 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.4324, allocations: 1.494 MB / 462.3 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003797/0.4362, allocations: 4.641 MB / 466.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.4362, allocations: 0 / 466.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.4362, allocations: 4 kB / 466.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.429e-05/0.4363, allocations: 0 / 466.9 MB, free: 15.52 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.01041/0.4467, allocations: 4.356 MB / 471.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4468, allocations: 9.281 kB / 471.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006993/0.4538, allocations: 1.76 MB / 473.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.4569, allocations: 1.358 MB / 474.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.4571, allocations: 153 kB / 474.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000458/0.4576, allocations: 201 kB / 474.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.4731, allocations: 8.251 MB / 483 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.512e-05/0.4732, allocations: 23 kB / 483 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003225/0.4736, allocations: 98.64 kB / 483.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003393/0.477, allocations: 1.897 MB / 485 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02058/0.4976, allocations: 7.425 MB / 492.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04284/0.5405, allocations: 25.61 MB / 0.5059 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007308/0.5478, allocations: 2.62 MB / 0.5085 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001743/0.5496, allocations: 0.9079 MB / 0.5094 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008449/0.5581, allocations: 5.102 MB / 0.5143 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.5581, allocations: 43.56 kB / 0.5144 GB, free: 1.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.627e-06/0.5582, allocations: 0 / 0.5144 GB, free: 1.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01389/0.5721, allocations: 5.46 MB / 0.5197 GB, free: 11.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.5721, allocations: 68.72 kB / 0.5198 GB, free: 11.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004956/0.5771, allocations: 2.618 MB / 0.5223 GB, free: 9.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.5772, allocations: 49.7 kB / 0.5224 GB, free: 9.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001907/0.5791, allocations: 2.097 MB / 0.5244 GB, free: 7.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008015/0.58, allocations: 0.6437 MB / 0.5251 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/0.5811, allocations: 0.8335 MB / 0.5259 GB, free: 5.547 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.5812, allocations: 301.1 kB / 0.5262 GB, free: 5.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00231/0.5835, allocations: 1.371 MB / 0.5275 GB, free: 3.871 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/0.5874, allocations: 3.625 MB / 0.531 GB, free: 15.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00699/0.5944, allocations: 5.415 MB / 0.5363 GB, free: 8.605 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.963e-05/0.5945, allocations: 20 kB / 0.5364 GB, free: 8.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.0086/0.6031, allocations: 5.235 MB / 0.5415 GB, free: 3.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.536e-05/0.6032, allocations: 40 kB / 0.5415 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.6033, allocations: 79.94 kB / 0.5416 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.6044, allocations: 355.2 kB / 0.5419 GB, free: 2.883 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/0.6074, allocations: 0.9201 MB / 0.5428 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005542/0.613, allocations: 3.84 MB / 0.5466 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004383/0.6174, allocations: 199.9 kB / 0.5468 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009457/0.6183, allocations: 244 kB / 0.547 GB, free: 13.55 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 358 * Number of states: 0 () * Number of discrete variables: 18 (revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[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 (498): * Single equations (assignments): 493 * Array equations: 4 * 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,20,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00389/0.6222, allocations: 1.611 MB / 0.5486 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00076/0.623, allocations: 233 kB / 0.5488 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005232/0.6283, allocations: 2.335 MB / 0.5511 GB, free: 9.336 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/0.6284, allocations: 31.97 kB / 0.5511 GB, free: 9.305 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-05/0.6284, allocations: 7.984 kB / 0.5511 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.6285, allocations: 3.984 kB / 0.5511 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/0.643, allocations: 6.497 MB / 0.5575 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.643, allocations: 4.469 kB / 0.5575 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.644, allocations: 243.9 kB / 0.5577 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000775/0.6448, allocations: 256.6 kB / 0.5579 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.645, allocations: 39.97 kB / 0.558 GB, free: 2.125 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.6492, allocations: 3.15 MB / 0.561 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/0.6492, allocations: 7.938 kB / 0.5611 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005983/0.6552, allocations: 3.605 MB / 0.5646 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009134/0.6562, allocations: 306.1 kB / 0.5649 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006488/0.6568, allocations: 35.98 kB / 0.5649 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.6581, allocations: 71.91 kB / 0.565 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.6584, allocations: 113 kB / 0.5651 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.6586, allocations: 51.98 kB / 0.5651 GB, free: 10.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003515/0.6621, allocations: 1.68 MB / 0.5668 GB, free: 8.875 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6621, allocations: 0 / 0.5668 GB, free: 8.875 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00411/0.6662, allocations: 0.7109 MB / 0.5675 GB, free: 8.164 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,revolute1.phi,revolute1.w) * 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 (132): * Single equations (assignments): 127 * Array equations: 4 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004415/0.6667, allocations: 163 kB / 0.5676 GB, free: 7.992 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006065/0.6728, allocations: 3.415 MB / 0.571 GB, free: 4.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.6728, allocations: 4 kB / 0.571 GB, free: 4.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.6747, allocations: 1.173 MB / 0.5721 GB, free: 3.398 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/0.6777, allocations: 370.5 kB / 0.5725 GB, free: 3.039 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2861/0.9639, allocations: 8.28 MB / 0.5805 GB, free: 99.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/0.9665, allocations: 2.616 MB / 0.5831 GB, free: 98.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002984/0.9695, allocations: 1.279 MB / 0.5843 GB, free: 98.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004275/0.97, allocations: 177.9 kB / 0.5845 GB, free: 98.78 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.97, allocations: 1.203 kB / 0.5845 GB, free: 98.78 MB / 446.1 MB Notification: Performance of Templates: time 0.05119/1.021, allocations: 26.02 MB / 0.6099 GB, free: 94.31 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.sim & ./PlanarMechanics_PlanarMechanics.Examples.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)