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.001031/0.001031, allocations: 115.1 kB / 16.37 MB, free: 5.984 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.001058/0.001058, allocations: 193.5 kB / 17.31 MB, free: 5.602 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04342/0.04342, allocations: 9.119 MB / 300.3 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.89 kB / 363.4 MB, free: 6.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.231, allocations: 51.42 MB / 414.8 MB, free: 24.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.DoublePendulum): time 0.007299/0.2384, allocations: 8.442 MB / 423.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.2431, allocations: 2.622 MB / 425.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.2442, allocations: 31.94 kB / 425.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008045/0.2451, allocations: 365.5 kB / 426.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002525/0.2476, allocations: 1.42 MB / 427.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003471/0.248, allocations: 127.8 kB / 427.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.2502, allocations: 2.548 MB / 430.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007562/0.2509, allocations: 0.9131 MB / 431.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006572/0.2516, allocations: 0.9026 MB / 432.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009999/0.2526, allocations: 1.319 MB / 433.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002342/0.2528, allocations: 232 kB / 433.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009794/0.2538, allocations: 0.8347 MB / 434.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006123/0.2544, allocations: 1.223 MB / 435.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000836/0.2553, allocations: 1.58 MB / 437.4 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003395/0.2587, allocations: 5.018 MB / 442.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2587, allocations: 0 / 442.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2587, allocations: 0 / 442.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.573e-05/0.2588, allocations: 4 kB / 442.4 MB, free: 13.32 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: 1179 * Number of variables: 1179 Notification: Performance of Generate backend data structure: time 0.008172/0.267, allocations: 4.353 MB / 446.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.267, allocations: 8.031 kB / 446.7 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005732/0.2727, allocations: 1.763 MB / 448.5 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.2754, allocations: 1.361 MB / 449.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.2756, allocations: 152.1 kB / 450 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003949/0.276, allocations: 195.8 kB / 450.2 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01115/0.2871, allocations: 8.258 MB / 458.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.643e-05/0.2872, allocations: 19.78 kB / 458.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.2874, allocations: 95.86 kB / 458.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/0.2902, allocations: 1.907 MB / 460.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01289/0.3031, allocations: 7.422 MB / 467.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03656/0.3397, allocations: 25.53 MB / 493.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00571/0.3454, allocations: 2.621 MB / 496 MB, free: 6.469 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.3467, allocations: 0.9118 MB / 497 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00751/0.3542, allocations: 5.086 MB / 0.4903 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.3543, allocations: 47.56 kB / 0.4903 GB, free: 15.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 3.927e-06/0.3543, allocations: 3.938 kB / 0.4903 GB, free: 15.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=176): time 0.01214/0.3665, allocations: 5.456 MB / 0.4957 GB, free: 10.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.3666, allocations: 72.72 kB / 0.4957 GB, free: 10.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003639/0.3702, allocations: 2.618 MB / 0.4983 GB, free: 7.711 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.573e-05/0.3703, allocations: 45.7 kB / 0.4983 GB, free: 7.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.3717, allocations: 2.101 MB / 0.5004 GB, free: 5.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005555/0.3723, allocations: 0.6398 MB / 0.501 GB, free: 4.879 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/0.3733, allocations: 0.8296 MB / 0.5018 GB, free: 4.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3734, allocations: 301.1 kB / 0.5021 GB, free: 3.738 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.3755, allocations: 1.374 MB / 0.5034 GB, free: 2.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2157/0.5912, allocations: 3.619 MB / 0.507 GB, free: 85.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009975/0.6013, allocations: 5.416 MB / 0.5123 GB, free: 81.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001876/0.6015, allocations: 21.91 kB / 0.5123 GB, free: 81.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=545) (initialization): time 0.01456/0.6161, allocations: 5.223 MB / 0.5174 GB, free: 79.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.6163, allocations: 39.28 kB / 0.5174 GB, free: 79.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001841/0.6165, allocations: 78.62 kB / 0.5175 GB, free: 79.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001179/0.6177, allocations: 360.8 kB / 0.5178 GB, free: 79.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/0.6206, allocations: 0.9139 MB / 0.5187 GB, free: 79.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006158/0.6268, allocations: 4.179 MB / 0.5228 GB, free: 76.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004391/0.6312, allocations: 207.9 kB / 0.523 GB, free: 76.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008021/0.632, allocations: 242.6 kB / 0.5232 GB, free: 76.44 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.003903/0.6359, allocations: 1.608 MB / 0.5248 GB, free: 75.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006953/0.6366, allocations: 233.8 kB / 0.525 GB, free: 75.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/0.6414, allocations: 2.335 MB / 0.5273 GB, free: 74.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.646e-05/0.6415, allocations: 27.8 kB / 0.5273 GB, free: 74.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.6415, allocations: 7.938 kB / 0.5274 GB, free: 74.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.6415, allocations: 7.406 kB / 0.5274 GB, free: 74.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009308/0.6508, allocations: 6.439 MB / 0.5337 GB, free: 68.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.6509, allocations: 4.469 kB / 0.5337 GB, free: 68.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008066/0.6517, allocations: 247.7 kB / 0.5339 GB, free: 68.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005668/0.6522, allocations: 257.7 kB / 0.5341 GB, free: 68.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-05/0.6523, allocations: 29.31 kB / 0.5342 GB, free: 68.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003021/0.6554, allocations: 3.423 MB / 0.5375 GB, free: 64.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6554, allocations: 4 kB / 0.5375 GB, free: 64.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004211/0.6596, allocations: 3.608 MB / 0.541 GB, free: 61.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000675/0.6603, allocations: 302.2 kB / 0.5413 GB, free: 60.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/0.6605, allocations: 35.94 kB / 0.5414 GB, free: 60.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007971/0.6613, allocations: 83.73 kB / 0.5414 GB, free: 60.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.6615, allocations: 109 kB / 0.5415 GB, free: 60.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.523e-05/0.6617, allocations: 44 kB / 0.5416 GB, free: 60.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002108/0.6638, allocations: 1.68 MB / 0.5432 GB, free: 59.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6638, allocations: 0 / 0.5432 GB, free: 59.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002987/0.6668, allocations: 0.7134 MB / 0.5439 GB, free: 58.3 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.0003281/0.6671, allocations: 167.8 kB / 0.5441 GB, free: 58.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004583/0.6717, allocations: 3.441 MB / 0.5474 GB, free: 54.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6717, allocations: 1.125 kB / 0.5474 GB, free: 54.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001292/0.673, allocations: 1.164 MB / 0.5486 GB, free: 53.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001717/0.6747, allocations: 412.5 kB / 0.549 GB, free: 53.15 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00891/0.6837, allocations: 6.671 MB / 0.5555 GB, free: 46.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002121/0.6858, allocations: 2.619 MB / 0.558 GB, free: 43.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002427/0.6883, allocations: 1.263 MB / 0.5593 GB, free: 42.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003735/0.6886, allocations: 179.4 kB / 0.5594 GB, free: 42.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6887, allocations: 0 / 0.5594 GB, free: 42.32 MB / 382.1 MB Notification: Performance of Templates: time 0.03852/0.7272, allocations: 25.12 MB / 0.584 GB, free: 17.41 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.DoublePendulum.pipe 2>&1)