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.0008637/0.0008638, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005866/0.005866, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.421/1.421, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.176/0.176, allocations: 9.118 MB / 300.5 MB, free: 2.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004157/0.0004159, allocations: 8 kB / 363.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1198, allocations: 52.43 MB / 416.2 MB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.2608/0.3807, allocations: 30 MB / 446.2 MB, free: 24.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01499/0.3957, allocations: 6.742 MB / 452.9 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006965/0.4027, allocations: 112.4 kB / 453 MB, free: 21.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001339/0.4041, allocations: 312.3 kB / 453.3 MB, free: 21.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.4081, allocations: 1.332 MB / 454.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000471/0.4086, allocations: 117.3 kB / 454.8 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003482/0.4121, allocations: 3.535 MB / 458.3 MB, free: 19.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.4133, allocations: 0.8195 MB / 459.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001104/0.4144, allocations: 0.7591 MB / 459.9 MB, free: 19.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.4162, allocations: 1.316 MB / 461.2 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004718/0.4167, allocations: 130.1 kB / 461.3 MB, free: 18.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.4183, allocations: 0.7617 MB / 462.1 MB, free: 18.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.4194, allocations: 1.156 MB / 463.2 MB, free: 17.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.4208, allocations: 1.516 MB / 464.8 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004031/0.4248, allocations: 4.531 MB / 469.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4249, allocations: 0 / 469.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4249, allocations: 0 / 469.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.552e-05/0.425, allocations: 0 / 469.3 MB, free: 15.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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.009533/0.4345, allocations: 3.713 MB / 473 MB, free: 13.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.453e-05/0.4346, allocations: 14.19 kB / 473 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008284/0.4429, allocations: 1.798 MB / 474.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004143/0.4471, allocations: 1.361 MB / 476.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.4473, allocations: 150.5 kB / 476.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007553/0.448, allocations: 203.8 kB / 476.5 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0147/0.4627, allocations: 8.248 MB / 484.8 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.025e-05/0.4629, allocations: 26.38 kB / 484.8 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003437/0.4632, allocations: 98.27 kB / 484.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003708/0.467, allocations: 1.902 MB / 486.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01757/0.4845, allocations: 7.426 MB / 494.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04062/0.5252, allocations: 25.63 MB / 0.5077 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007002/0.5323, allocations: 2.622 MB / 0.5102 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.5342, allocations: 0.9157 MB / 0.5111 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009367/0.5436, allocations: 5.087 MB / 0.5161 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.333e-05/0.5437, allocations: 47.56 kB / 0.5161 GB, free: 1.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 5.2e-06/0.5437, allocations: 3.938 kB / 0.5161 GB, free: 1.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01496/0.5587, allocations: 5.46 MB / 0.5215 GB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.5588, allocations: 68.72 kB / 0.5215 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005496/0.5643, allocations: 2.614 MB / 0.5241 GB, free: 9.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002051/0.5645, allocations: 49.7 kB / 0.5241 GB, free: 9.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.5665, allocations: 2.097 MB / 0.5262 GB, free: 7.379 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009238/0.5674, allocations: 0.6437 MB / 0.5268 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008228/0.5683, allocations: 350.9 kB / 0.5271 GB, free: 6.375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.5685, allocations: 301.1 kB / 0.5274 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/0.5719, allocations: 1.371 MB / 0.5288 GB, free: 4.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005797/0.5777, allocations: 3.633 MB / 0.5323 GB, free: 15.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009021/0.5868, allocations: 5.417 MB / 0.5376 GB, free: 9.426 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/0.587, allocations: 24 kB / 0.5376 GB, free: 9.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01219/0.5992, allocations: 5.219 MB / 0.5427 GB, free: 4.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.208e-05/0.5993, allocations: 46.75 kB / 0.5428 GB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001667/0.5995, allocations: 79.94 kB / 0.5428 GB, free: 4.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.6005, allocations: 352.6 kB / 0.5432 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/0.6038, allocations: 0.9201 MB / 0.5441 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005628/0.6094, allocations: 3.831 MB / 0.5478 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003509/0.613, allocations: 212 kB / 0.548 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008701/0.6139, allocations: 244 kB / 0.5482 GB, free: 14.36 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.003906/0.6178, allocations: 1.603 MB / 0.5498 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007367/0.6185, allocations: 229 kB / 0.55 GB, free: 12.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.6237, allocations: 2.338 MB / 0.5523 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001281/0.6238, allocations: 39.92 kB / 0.5524 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.17e-05/0.6239, allocations: 3.984 kB / 0.5524 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-05/0.6239, allocations: 7.984 kB / 0.5524 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01487/0.6388, allocations: 6.489 MB / 0.5587 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/0.6389, allocations: 3.938 kB / 0.5587 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.6399, allocations: 248.1 kB / 0.5589 GB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007509/0.6407, allocations: 254.8 kB / 0.5592 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/0.6409, allocations: 35.98 kB / 0.5592 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004134/0.645, allocations: 3.159 MB / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.6451, allocations: 7.938 kB / 0.5623 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005993/0.6511, allocations: 3.605 MB / 0.5658 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6522, allocations: 322.1 kB / 0.5661 GB, free: 11.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000614/0.6529, allocations: 28 kB / 0.5662 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001211/0.6541, allocations: 79.89 kB / 0.5662 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002432/0.6543, allocations: 109 kB / 0.5663 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.6545, allocations: 52 kB / 0.5664 GB, free: 11.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003638/0.6581, allocations: 1.68 MB / 0.568 GB, free: 9.688 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6581, allocations: 0 / 0.568 GB, free: 9.688 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00387/0.662, allocations: 0.7148 MB / 0.5687 GB, free: 8.973 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.0005144/0.6625, allocations: 170.9 kB / 0.5689 GB, free: 8.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006501/0.669, allocations: 3.419 MB / 0.5722 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.6691, allocations: 0 / 0.5722 GB, free: 5.379 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.671, allocations: 1.169 MB / 0.5734 GB, free: 4.199 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/0.6746, allocations: 370.5 kB / 0.5737 GB, free: 3.844 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2394/0.914, allocations: 8.384 MB / 0.5819 GB, free: 99.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003008/0.9171, allocations: 2.614 MB / 0.5845 GB, free: 98.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003406/0.9205, allocations: 1.278 MB / 0.5857 GB, free: 98.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.921, allocations: 177.2 kB / 0.5859 GB, free: 98.74 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.921, allocations: 3.625 kB / 0.5859 GB, free: 98.74 MB / 446.1 MB Notification: Performance of Templates: time 0.05115/0.9721, allocations: 25.69 MB / 0.611 GB, free: 93.92 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)