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/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.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.001058/0.001058, allocations: 109.4 kB / 15.99 MB, free: 6.344 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.001066/0.001066, allocations: 196.2 kB / 16.91 MB, free: 6.176 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.247/1.247, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04221/0.04221, allocations: 9.107 MB / 299.8 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 55.91 kB / 362.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2644, allocations: 51.43 MB / 413.5 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.02095/0.2854, allocations: 30.92 MB / 444.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01596/0.3014, allocations: 6.747 MB / 451.2 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007282/0.3088, allocations: 115.8 kB / 451.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.3103, allocations: 310.5 kB / 451.6 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.3143, allocations: 1.324 MB / 452.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005266/0.3149, allocations: 115.9 kB / 453 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003584/0.3185, allocations: 2.564 MB / 455.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.3199, allocations: 0.9403 MB / 456.5 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.3214, allocations: 0.9065 MB / 457.4 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.3232, allocations: 1.421 MB / 458.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003893/0.3236, allocations: 236 kB / 459.1 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.3252, allocations: 0.8347 MB / 459.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001128/0.3263, allocations: 1.243 MB / 461.2 MB, free: 9.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.3279, allocations: 1.592 MB / 462.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004797/0.3327, allocations: 3.899 MB / 466.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.3328, allocations: 0 / 466.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3328, allocations: 0 / 466.7 MB, free: 3.848 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001187/0.3329, allocations: 0 / 466.7 MB, free: 3.848 MB / 334.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.01128/0.3442, allocations: 4.357 MB / 471 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3443, allocations: 12.03 kB / 471 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006544/0.3508, allocations: 1.767 MB / 472.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.3538, allocations: 1.357 MB / 474.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001483/0.354, allocations: 148.1 kB / 474.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000543/0.3545, allocations: 203.7 kB / 474.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01396/0.3685, allocations: 8.251 MB / 482.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.193e-05/0.3686, allocations: 27.72 kB / 482.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002953/0.3689, allocations: 95.86 kB / 482.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003008/0.3719, allocations: 1.911 MB / 484.8 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01459/0.3865, allocations: 7.418 MB / 492.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2431/0.6297, allocations: 25.6 MB / 0.5056 GB, free: 84.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006519/0.6363, allocations: 2.619 MB / 0.5082 GB, free: 84.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.6377, allocations: 0.9126 MB / 0.5091 GB, free: 84.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006321/0.644, allocations: 5.088 MB / 0.5141 GB, free: 81.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.6441, allocations: 47.53 kB / 0.5141 GB, free: 81.28 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.228e-06/0.6441, allocations: 0 / 0.5141 GB, free: 81.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01152/0.6556, allocations: 5.466 MB / 0.5194 GB, free: 79.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.6557, allocations: 65.75 kB / 0.5195 GB, free: 79.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/0.6588, allocations: 2.614 MB / 0.5221 GB, free: 78.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.659, allocations: 45.61 kB / 0.5221 GB, free: 78.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000929/0.6599, allocations: 2.105 MB / 0.5242 GB, free: 76.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004354/0.6604, allocations: 0.6445 MB / 0.5248 GB, free: 76.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008548/0.6612, allocations: 0.8212 MB / 0.5256 GB, free: 76.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.387e-05/0.6613, allocations: 305.7 kB / 0.5259 GB, free: 75.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.663, allocations: 1.369 MB / 0.5272 GB, free: 75.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00246/0.6655, allocations: 3.626 MB / 0.5308 GB, free: 71.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004451/0.67, allocations: 5.426 MB / 0.5361 GB, free: 66.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.535e-05/0.67, allocations: 27.28 kB / 0.5361 GB, free: 66.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.006752/0.6768, allocations: 5.217 MB / 0.5412 GB, free: 61.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.6769, allocations: 43.94 kB / 0.5412 GB, free: 61.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.753e-05/0.6769, allocations: 80.12 kB / 0.5413 GB, free: 61.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007886/0.6777, allocations: 356.6 kB / 0.5416 GB, free: 61.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.68, allocations: 0.9163 MB / 0.5425 GB, free: 60.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003949/0.684, allocations: 4.186 MB / 0.5466 GB, free: 55.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/0.6867, allocations: 203.9 kB / 0.5468 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002888/0.687, allocations: 247.4 kB / 0.5471 GB, free: 55.38 MB / 382.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.001934/0.6889, allocations: 1.595 MB / 0.5486 GB, free: 53.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.6892, allocations: 237.1 kB / 0.5488 GB, free: 53.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003008/0.6922, allocations: 2.342 MB / 0.5511 GB, free: 51.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.932e-05/0.6923, allocations: 27.98 kB / 0.5512 GB, free: 51.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.882e-06/0.6923, allocations: 4 kB / 0.5512 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.6924, allocations: 7.969 kB / 0.5512 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008175/0.7005, allocations: 6.492 MB / 0.5575 GB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.7006, allocations: 8.094 kB / 0.5575 GB, free: 44.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008/0.7014, allocations: 247.6 kB / 0.5577 GB, free: 44.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005821/0.702, allocations: 262.1 kB / 0.558 GB, free: 44.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-05/0.7021, allocations: 32 kB / 0.558 GB, free: 44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002909/0.705, allocations: 3.416 MB / 0.5614 GB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.705, allocations: 4.062 kB / 0.5614 GB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.7089, allocations: 3.605 MB / 0.5649 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005032/0.7094, allocations: 310.1 kB / 0.5652 GB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002546/0.7097, allocations: 32 kB / 0.5652 GB, free: 36.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007584/0.7104, allocations: 79.73 kB / 0.5653 GB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.7106, allocations: 109 kB / 0.5654 GB, free: 36.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/0.7107, allocations: 48 kB / 0.5654 GB, free: 36.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001894/0.7126, allocations: 1.68 MB / 0.5671 GB, free: 34.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7126, allocations: 0 / 0.5671 GB, free: 34.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002624/0.7152, allocations: 0.7147 MB / 0.5678 GB, free: 33.79 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,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.000306/0.7155, allocations: 165.5 kB / 0.5679 GB, free: 33.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006914/0.7225, allocations: 5.064 MB / 0.5729 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.7225, allocations: 0 / 0.5729 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.7238, allocations: 1.168 MB / 0.574 GB, free: 27.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.7258, allocations: 412.3 kB / 0.5744 GB, free: 27.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009719/0.7355, allocations: 8.664 MB / 0.5829 GB, free: 18.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/0.7375, allocations: 2.619 MB / 0.5854 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006546/0.7381, allocations: 223.4 kB / 0.5856 GB, free: 15.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7381, allocations: 0 / 0.5856 GB, free: 15.4 MB / 382.1 MB Notification: Performance of Templates: time 0.06521/0.8034, allocations: 57.77 MB / 0.6421 GB, free: 5.754 MB / 430.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)