Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.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.0009639/0.000964, allocations: 183 kB / 8.132 MB, free: 2.23 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.293/1.293, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008904/0.0008904, allocations: 89.83 kB / 280.8 MB, free: 1.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.204e-06/7.224e-06, allocations: 0 / 336.5 MB, free: 9.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1927, allocations: 50.4 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09516/0.2879, allocations: 92.92 MB / 479.8 MB, free: 9.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.2881, allocations: 88.77 kB / 479.9 MB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3611/0.6493, allocations: 81.38 MB / 0.5481 GB, free: 60.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001538/0.6495, allocations: 75.94 kB / 0.5482 GB, free: 60.73 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.009353/0.6588, allocations: 3.89 MB / 0.552 GB, free: 56.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.6589, allocations: 8.031 kB / 0.552 GB, free: 56.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02298/0.6819, allocations: 6.245 MB / 0.5581 GB, free: 50.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01278/0.6947, allocations: 5.588 MB / 0.5636 GB, free: 44.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.6949, allocations: 116 kB / 0.5637 GB, free: 44.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001269/0.6962, allocations: 219.8 kB / 0.5639 GB, free: 44.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007652/0.7038, allocations: 5.441 MB / 0.5692 GB, free: 39.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.714, allocations: 8.384 MB / 0.5774 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.7142, allocations: 55.47 kB / 0.5774 GB, free: 29.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004246/0.7146, allocations: 31.94 kB / 0.5775 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009123/0.7155, allocations: 0.9623 MB / 0.5784 GB, free: 28.74 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03702/0.7525, allocations: 41.76 MB / 0.6192 GB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003767/0.7563, allocations: 3.227 MB / 0.6224 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002325/0.7587, allocations: 2.184 MB / 0.6245 GB, free: 12.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009229/0.7679, allocations: 6.365 MB / 0.6307 GB, free: 5.488 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.768, allocations: 51.56 kB / 0.6308 GB, free: 5.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=154): time 6.453e-06/0.768, allocations: 0 / 0.6308 GB, free: 5.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=184): time 0.03623/0.8043, allocations: 17.15 MB / 0.6475 GB, free: 4.156 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.8044, allocations: 256.6 kB / 0.6477 GB, free: 3.852 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004616/0.809, allocations: 3.044 MB / 0.6507 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003156/0.8094, allocations: 29.7 kB / 0.6507 GB, free: 0.7812 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1379/0.9473, allocations: 2.603 MB / 0.6533 GB, free: 140 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009034/0.9482, allocations: 0.6836 MB / 0.654 GB, free: 139.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003767/0.9486, allocations: 0 / 0.654 GB, free: 139.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002728/0.9489, allocations: 0.5413 MB / 0.6545 GB, free: 139.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/0.9516, allocations: 2.017 MB / 0.6565 GB, free: 139.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/0.9556, allocations: 5.367 MB / 0.6617 GB, free: 135 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00387/0.9595, allocations: 3.286 MB / 0.6649 GB, free: 135 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-05/0.9596, allocations: 32.97 kB / 0.6649 GB, free: 135 MB / 426.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01209/0.9717, allocations: 7.708 MB / 0.6725 GB, free: 134.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.9717, allocations: 5.969 kB / 0.6725 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-05/0.9718, allocations: 121.6 kB / 0.6726 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003608/0.9754, allocations: 1.345 MB / 0.6739 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004258/0.9797, allocations: 1.252 MB / 0.6751 GB, free: 134.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009977/0.9897, allocations: 7.487 MB / 0.6824 GB, free: 132.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004406/0.9942, allocations: 181 kB / 0.6826 GB, free: 132.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006771/0.9949, allocations: 347.8 kB / 0.6829 GB, free: 132.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 543 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (672): * Single equations (assignments): 668 * Array equations: 3 * 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 {(5,72.0%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000751/0.9956, allocations: 402.8 kB / 0.6833 GB, free: 132.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000551/0.9962, allocations: 328 kB / 0.6836 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006677/1.003, allocations: 3.762 MB / 0.6873 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.515e-05/1.003, allocations: 15.84 kB / 0.6873 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/1.003, allocations: 10.44 kB / 0.6873 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/1.003, allocations: 9.094 kB / 0.6873 GB, free: 132.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/1.016, allocations: 7.866 MB / 0.695 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/1.016, allocations: 4.625 kB / 0.695 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/1.017, allocations: 237.1 kB / 0.6953 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003546/1.021, allocations: 1.139 MB / 0.6964 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001613/1.021, allocations: 16.53 kB / 0.6964 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009325/1.031, allocations: 6.77 MB / 0.703 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.031, allocations: 0.9688 kB / 0.703 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01302/1.044, allocations: 6.618 MB / 0.7095 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/1.045, allocations: 366.9 kB / 0.7098 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000792/1.046, allocations: 3.75 kB / 0.7098 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00261/1.048, allocations: 57.06 kB / 0.7099 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/1.049, allocations: 83.31 kB / 0.7099 GB, free: 124.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002507/1.049, allocations: 46.91 kB / 0.71 GB, free: 124.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.004794/1.054, allocations: 2.081 MB / 0.712 GB, free: 123.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008613/1.062, allocations: 0.8372 MB / 0.7128 GB, free: 123.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * Array equations: 3 * 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 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006995/1.063, allocations: 142.5 kB / 0.713 GB, free: 123.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0135/1.077, allocations: 5.073 MB / 0.7179 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.077, allocations: 0 / 0.7179 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005105/1.082, allocations: 1.824 MB / 0.7197 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/1.086, allocations: 371.8 kB / 0.7201 GB, free: 117 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.11, allocations: 7.551 MB / 0.7274 GB, free: 110.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007129/1.118, allocations: 3.403 MB / 0.7308 GB, free: 107.6 MB / 426.7 MB Notification: Performance of SimCode: time 1.873e-06/1.118, allocations: 0 / 0.7308 GB, free: 107.6 MB / 426.7 MB Notification: Performance of Templates: time 0.09443/1.212, allocations: 39.3 MB / 0.7691 GB, free: 75.76 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches