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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 178.3 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 221.4 MB / 229.3 MB, free: 3.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009475/0.0009475, allocations: 106.9 kB / 280.1 MB, free: 1.348 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04415/0.04415, allocations: 8.838 MB / 339.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.989e-06/5.019e-06, allocations: 0 / 398.1 MB, free: 67.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07298/0.073, allocations: 52.4 MB / 450.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.3097, allocations: 85.6 MB / 0.5236 GB, free: 7.871 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001719/0.3099, allocations: 73.59 kB / 0.5236 GB, free: 7.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1644/0.4743, allocations: 61.17 MB / 0.5834 GB, free: 1.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.464e-05/0.4744, allocations: 52 kB / 0.5834 GB, free: 1.719 MB / 394.7 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.01092/0.4854, allocations: 3.27 MB / 0.5866 GB, free: 14.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.4854, allocations: 12.03 kB / 0.5866 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009364/0.4948, allocations: 1.602 MB / 0.5882 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004026/0.4988, allocations: 1.696 MB / 0.5898 GB, free: 11.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.499, allocations: 100 kB / 0.5899 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/0.5, allocations: 171.9 kB / 0.5901 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008724/0.5087, allocations: 5.505 MB / 0.5955 GB, free: 5.242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.5203, allocations: 7.281 MB / 0.6026 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.82e-05/0.5204, allocations: 27.72 kB / 0.6026 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004425/0.5209, allocations: 12 kB / 0.6026 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001226/0.5221, allocations: 0.97 MB / 0.6036 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03271/0.5548, allocations: 25.31 MB / 0.6283 GB, free: 2.586 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.5566, allocations: 1.056 MB / 0.6293 GB, free: 1.527 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001203/0.5578, allocations: 0.7896 MB / 0.6301 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006394/0.5642, allocations: 4.251 MB / 0.6342 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/0.5643, allocations: 51.47 kB / 0.6343 GB, free: 12.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.606e-06/0.5643, allocations: 0 / 0.6343 GB, free: 12.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=176): time 0.009372/0.5737, allocations: 4.275 MB / 0.6385 GB, free: 7.75 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.5737, allocations: 64.72 kB / 0.6385 GB, free: 7.676 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/0.5765, allocations: 1.959 MB / 0.6404 GB, free: 5.676 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.5766, allocations: 25.7 kB / 0.6405 GB, free: 5.645 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.5778, allocations: 2.111 MB / 0.6425 GB, free: 3.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004875/0.5783, allocations: 0.6281 MB / 0.6431 GB, free: 2.863 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.5784, allocations: 0 / 0.6431 GB, free: 2.863 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003158/0.5788, allocations: 0.5279 MB / 0.6436 GB, free: 2.324 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.5809, allocations: 1.375 MB / 0.645 GB, free: 0.9414 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1617/0.7426, allocations: 3.726 MB / 0.6486 GB, free: 104.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/0.7455, allocations: 2.338 MB / 0.6509 GB, free: 104.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.611e-05/0.7455, allocations: 23.47 kB / 0.6509 GB, free: 104.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=575) (initialization): time 0.006779/0.7523, allocations: 4.904 MB / 0.6557 GB, free: 104.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.7523, allocations: 3.938 kB / 0.6557 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.639e-05/0.7524, allocations: 85.06 kB / 0.6558 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008935/0.7533, allocations: 373.9 kB / 0.6562 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003034/0.7564, allocations: 0.9664 MB / 0.6571 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004038/0.7604, allocations: 3.482 MB / 0.6605 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/0.7632, allocations: 123 kB / 0.6606 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003402/0.7636, allocations: 258 kB / 0.6609 GB, free: 103.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 382 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (528): * Single equations (assignments): 523 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004645/0.7641, allocations: 317.2 kB / 0.6612 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.7643, allocations: 204.9 kB / 0.6614 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/0.7676, allocations: 2.199 MB / 0.6635 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001242/0.7678, allocations: 21.5 kB / 0.6635 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/0.7678, allocations: 7.125 kB / 0.6635 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.7678, allocations: 11.48 kB / 0.6636 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008407/0.7762, allocations: 5.402 MB / 0.6688 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.7763, allocations: 7.219 kB / 0.6688 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.7774, allocations: 230.6 kB / 0.6691 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006809/0.778, allocations: 254 kB / 0.6693 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.176e-05/0.7781, allocations: 20.34 kB / 0.6693 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003023/0.7812, allocations: 2.897 MB / 0.6721 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.7812, allocations: 0 / 0.6721 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004187/0.7854, allocations: 3.613 MB / 0.6757 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004407/0.7859, allocations: 286.1 kB / 0.6759 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003029/0.7862, allocations: 6.891 kB / 0.676 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008479/0.787, allocations: 33.83 kB / 0.676 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.7872, allocations: 85.22 kB / 0.6761 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.977e-05/0.7873, allocations: 45.34 kB / 0.6761 GB, free: 100.4 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001638/0.7889, allocations: 1.316 MB / 0.6774 GB, free: 100.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002821/0.7918, allocations: 0.6301 MB / 0.678 GB, free: 100.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003177/0.7921, allocations: 140.9 kB / 0.6781 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004125/0.7962, allocations: 3.304 MB / 0.6814 GB, free: 99.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.7962, allocations: 2.188 kB / 0.6814 GB, free: 99.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/0.7977, allocations: 1.09 MB / 0.6824 GB, free: 99.74 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000963/0.7987, allocations: 201.9 kB / 0.6826 GB, free: 99.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009158/0.8079, allocations: 5.51 MB / 0.688 GB, free: 98.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003526/0.8114, allocations: 2.89 MB / 0.6908 GB, free: 97.75 MB / 458.7 MB Notification: Performance of SimCode: time 5.71e-07/0.8114, allocations: 0 / 0.6908 GB, free: 97.75 MB / 458.7 MB Notification: Performance of Templates: time 0.04794/0.8594, allocations: 25.01 MB / 0.7153 GB, free: 91.01 MB / 458.7 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)