Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") [: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.001085/0.001085, allocations: 183.2 kB / 8.136 MB, free: 2.207 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.267/1.267, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009941/0.0009942, allocations: 89.11 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.654e-06/7.774e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2542, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3638, allocations: 91.02 MB / 477.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.3642, allocations: 94.08 kB / 478 MB, free: 11.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3514/0.7156, allocations: 56.53 MB / 0.522 GB, free: 87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001036/0.7157, allocations: 48 kB / 0.5221 GB, free: 86.96 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0068/0.7225, allocations: 2.489 MB / 0.5245 GB, free: 84.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.7226, allocations: 15.97 kB / 0.5245 GB, free: 84.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007607/0.7302, allocations: 1.568 MB / 0.526 GB, free: 82.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008134/0.7384, allocations: 3.188 MB / 0.5292 GB, free: 79.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.7385, allocations: 72 kB / 0.5292 GB, free: 79.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/0.7398, allocations: 147.9 kB / 0.5294 GB, free: 79.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006402/0.7462, allocations: 4.037 MB / 0.5333 GB, free: 75.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009332/0.7555, allocations: 6.305 MB / 0.5395 GB, free: 68.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.7557, allocations: 51.53 kB / 0.5395 GB, free: 68.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006674/0.7564, allocations: 24 kB / 0.5395 GB, free: 68.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008476/0.7572, allocations: 0.7615 MB / 0.5403 GB, free: 67.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02813/0.7854, allocations: 32.61 MB / 0.5721 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.7877, allocations: 2.141 MB / 0.5742 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.7889, allocations: 1.129 MB / 0.5753 GB, free: 30.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005465/0.7944, allocations: 3.633 MB / 0.5789 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.7945, allocations: 46.55 kB / 0.5789 GB, free: 26.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=92): time 4.398e-06/0.7945, allocations: 0 / 0.5789 GB, free: 26.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=101): time 0.01447/0.8089, allocations: 8.088 MB / 0.5868 GB, free: 18.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.809, allocations: 137 kB / 0.587 GB, free: 18.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/0.8126, allocations: 2.187 MB / 0.5891 GB, free: 16.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.876e-05/0.8127, allocations: 29.7 kB / 0.5891 GB, free: 16.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001027/0.8137, allocations: 2.038 MB / 0.5911 GB, free: 13.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/0.8141, allocations: 414.9 kB / 0.5915 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002458/0.8144, allocations: 4 kB / 0.5915 GB, free: 13.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003095/0.8147, allocations: 0.5475 MB / 0.592 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.8164, allocations: 1.332 MB / 0.5933 GB, free: 11.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002517/0.8189, allocations: 4.257 MB / 0.5975 GB, free: 5.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002434/0.8214, allocations: 2.392 MB / 0.5998 GB, free: 3.547 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.873e-05/0.8214, allocations: 35.94 kB / 0.5999 GB, free: 3.512 MB / 378.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.008667/0.8301, allocations: 5.427 MB / 0.6052 GB, free: 14.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.8302, allocations: 6.656 kB / 0.6052 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.831e-05/0.8303, allocations: 108 kB / 0.6053 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002288/0.8326, allocations: 0.7434 MB / 0.606 GB, free: 13.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003156/0.8357, allocations: 1.033 MB / 0.607 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/0.8414, allocations: 3.917 MB / 0.6108 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004787/0.8462, allocations: 179.6 kB / 0.611 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/0.8474, allocations: 284 kB / 0.6113 GB, free: 7.699 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 481 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (550): * Single equations (assignments): 546 * 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 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008519/0.8483, allocations: 356.2 kB / 0.6116 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005372/0.8489, allocations: 209.2 kB / 0.6118 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005078/0.854, allocations: 1.741 MB / 0.6135 GB, free: 5.387 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.174e-05/0.8541, allocations: 11.91 kB / 0.6135 GB, free: 5.375 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/0.8541, allocations: 4 kB / 0.6135 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/0.8542, allocations: 11.98 kB / 0.6135 GB, free: 5.359 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009102/0.8633, allocations: 3.969 MB / 0.6174 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/0.8633, allocations: 0.875 kB / 0.6174 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.864, allocations: 131.8 kB / 0.6175 GB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/0.8661, allocations: 0.5821 MB / 0.6181 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.8662, allocations: 7.984 kB / 0.6181 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004776/0.871, allocations: 3.483 MB / 0.6215 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.8711, allocations: 4 kB / 0.6215 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005837/0.8769, allocations: 3.591 MB / 0.625 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006977/0.8776, allocations: 274.1 kB / 0.6253 GB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002785/0.8779, allocations: 4 kB / 0.6253 GB, free: 9.078 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000955/0.8789, allocations: 39.94 kB / 0.6253 GB, free: 9.039 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.879, allocations: 40.45 kB / 0.6254 GB, free: 9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.569e-05/0.8791, allocations: 29.11 kB / 0.6254 GB, free: 8.973 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002279/0.8814, allocations: 1.451 MB / 0.6268 GB, free: 7.504 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003467/0.8849, allocations: 0.5468 MB / 0.6274 GB, free: 6.957 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003878/0.8853, allocations: 150.6 kB / 0.6275 GB, free: 6.801 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005166/0.8905, allocations: 3.199 MB / 0.6306 GB, free: 3.613 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.411e-06/0.8905, allocations: 0 / 0.6306 GB, free: 3.613 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.8918, allocations: 0.8712 MB / 0.6315 GB, free: 2.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/0.8931, allocations: 196.3 kB / 0.6317 GB, free: 2.539 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009164/0.9022, allocations: 4.416 MB / 0.636 GB, free: 14.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00291/0.9052, allocations: 2.414 MB / 0.6383 GB, free: 11.59 MB / 426.7 MB Notification: Performance of SimCode: time 8.61e-07/0.9052, allocations: 0 / 0.6383 GB, free: 11.59 MB / 426.7 MB Notification: Performance of Templates: time 0.1716/1.077, allocations: 22.14 MB / 0.6599 GB, free: 150.4 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches