Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009639/0.000964, allocations: 178.7 kB / 8.476 MB, free: 1.871 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.2 MB / 214.1 MB, free: 5.246 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 98.2 kB / 262.1 MB, free: 5.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.761e-06, allocations: 0 / 315 MB, free: 41.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06555/0.06557, allocations: 47.58 MB / 362.5 MB, free: 9.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2403/0.3059, allocations: 91.47 MB / 454 MB, free: 8.324 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/0.3062, allocations: 91.28 kB / 454.1 MB, free: 8.309 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2024/0.5086, allocations: 80.32 MB / 0.5219 GB, free: 8.434 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001537/0.5088, allocations: 79.92 kB / 0.522 GB, free: 8.355 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.009347/0.5182, allocations: 3.902 MB / 0.5258 GB, free: 4.391 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.5182, allocations: 8.031 kB / 0.5258 GB, free: 4.383 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02497/0.5432, allocations: 6.249 MB / 0.5319 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01483/0.558, allocations: 5.897 MB / 0.5377 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/0.5582, allocations: 127.8 kB / 0.5378 GB, free: 8.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001466/0.5597, allocations: 215.9 kB / 0.538 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009373/0.5691, allocations: 5.445 MB / 0.5433 GB, free: 2.367 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.5822, allocations: 8.375 MB / 0.5515 GB, free: 9.082 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001463/0.5824, allocations: 59.38 kB / 0.5515 GB, free: 9.023 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004384/0.5828, allocations: 28 kB / 0.5516 GB, free: 8.996 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001211/0.584, allocations: 0.9623 MB / 0.5525 GB, free: 8.035 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1606/0.7446, allocations: 41.83 MB / 0.5934 GB, free: 121.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003126/0.7478, allocations: 3.227 MB / 0.5965 GB, free: 120.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.7497, allocations: 2.178 MB / 0.5986 GB, free: 120.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007708/0.7574, allocations: 6.394 MB / 0.6049 GB, free: 118.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.7575, allocations: 50.12 kB / 0.6049 GB, free: 118.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=154): time 3.707e-06/0.7575, allocations: 3.5 kB / 0.6049 GB, free: 118.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=184): time 0.03227/0.7898, allocations: 17.28 MB / 0.6218 GB, free: 115.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.7899, allocations: 251.7 kB / 0.6221 GB, free: 115.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004144/0.794, allocations: 3.073 MB / 0.6251 GB, free: 115.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002706/0.7943, allocations: 25.7 kB / 0.6251 GB, free: 115.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.7954, allocations: 2.614 MB / 0.6276 GB, free: 113.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006196/0.7961, allocations: 0.6758 MB / 0.6283 GB, free: 112.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002099/0.7963, allocations: 0 / 0.6283 GB, free: 112.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.7965, allocations: 0.5448 MB / 0.6288 GB, free: 112.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.7987, allocations: 2.02 MB / 0.6308 GB, free: 111.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003197/0.802, allocations: 5.363 MB / 0.636 GB, free: 106.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/0.8053, allocations: 3.293 MB / 0.6392 GB, free: 105.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.781e-05/0.8054, allocations: 33.88 kB / 0.6393 GB, free: 105.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01205/0.8174, allocations: 7.699 MB / 0.6468 GB, free: 103.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.8175, allocations: 4.875 kB / 0.6468 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/0.8176, allocations: 119.9 kB / 0.6469 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003556/0.8212, allocations: 1.337 MB / 0.6482 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003756/0.825, allocations: 1.25 MB / 0.6494 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009226/0.8342, allocations: 7.504 MB / 0.6568 GB, free: 99.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004144/0.8384, allocations: 179 kB / 0.6569 GB, free: 99.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007145/0.8391, allocations: 349.4 kB / 0.6573 GB, free: 99.52 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.0006836/0.8398, allocations: 405.2 kB / 0.6577 GB, free: 99.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.8403, allocations: 332.1 kB / 0.658 GB, free: 99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006389/0.8467, allocations: 3.753 MB / 0.6616 GB, free: 96.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.889e-05/0.8468, allocations: 20.25 kB / 0.6617 GB, free: 96.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.8468, allocations: 8 kB / 0.6617 GB, free: 96.53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.8468, allocations: 11.22 kB / 0.6617 GB, free: 96.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01253/0.8593, allocations: 7.869 MB / 0.6694 GB, free: 90.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.8594, allocations: 4 kB / 0.6694 GB, free: 90.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/0.8606, allocations: 236.3 kB / 0.6696 GB, free: 89.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003343/0.8639, allocations: 1.147 MB / 0.6707 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.8641, allocations: 8 kB / 0.6707 GB, free: 89.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008055/0.8722, allocations: 6.78 MB / 0.6773 GB, free: 83.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.8722, allocations: 0 / 0.6773 GB, free: 83.13 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008334/0.8805, allocations: 6.61 MB / 0.6838 GB, free: 77.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.8818, allocations: 0.6403 MB / 0.6844 GB, free: 76.74 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004767/0.8823, allocations: 6.344 kB / 0.6844 GB, free: 76.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/0.8837, allocations: 57.19 kB / 0.6845 GB, free: 76.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/0.8839, allocations: 82.55 kB / 0.6846 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.884, allocations: 44 kB / 0.6846 GB, free: 76.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002539/0.8866, allocations: 2.102 MB / 0.6867 GB, free: 74.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003975/0.8906, allocations: 0.8413 MB / 0.6875 GB, free: 73.96 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.0004443/0.891, allocations: 142.7 kB / 0.6876 GB, free: 73.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006853/0.8979, allocations: 5.065 MB / 0.6926 GB, free: 69.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.8979, allocations: 0 / 0.6926 GB, free: 69.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.9004, allocations: 1.826 MB / 0.6943 GB, free: 67.63 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/0.9022, allocations: 369.1 kB / 0.6947 GB, free: 67.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01167/0.9139, allocations: 7.567 MB / 0.7021 GB, free: 60.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003455/0.9174, allocations: 3.425 MB / 0.7054 GB, free: 57.88 MB / 426.7 MB Notification: Performance of SimCode: time 7.01e-07/0.9174, allocations: 0 / 0.7054 GB, free: 57.88 MB / 426.7 MB Notification: Performance of Templates: time 0.0596/0.977, allocations: 39.3 MB / 0.7438 GB, free: 20.64 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches