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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 106 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008079/0.000808, allocations: 43.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2015, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02577/0.2273, allocations: 38.39 MB / 437.9 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.2449, allocations: 8.667 MB / 446.5 MB, free: 2.141 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008024/0.253, allocations: 171.5 kB / 446.7 MB, free: 1.973 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004497/0.2576, allocations: 2.186 MB / 448.9 MB, free: 15.78 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0046/0.2622, allocations: 1.727 MB / 450.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.2642, allocations: 0.6865 MB / 451.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008865/0.2731, allocations: 7.223 MB / 458.5 MB, free: 6.121 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003841/0.277, allocations: 2.81 MB / 461.3 MB, free: 3.262 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.2793, allocations: 1.315 MB / 462.6 MB, free: 1.941 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003184/0.2825, allocations: 2.188 MB / 464.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007887/0.2833, allocations: 196 kB / 465 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002316/0.2856, allocations: 1.155 MB / 466.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00188/0.2875, allocations: 1.773 MB / 468 MB, free: 12.62 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002617/0.2902, allocations: 1.98 MB / 469.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0061/0.2963, allocations: 6.402 MB / 476.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2963, allocations: 0 / 476.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2963, allocations: 0 / 476.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001986/0.2965, allocations: 0 / 476.3 MB, free: 4.207 MB / 346.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.009409/0.3059, allocations: 4.67 MB / 481 MB, free: 15.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.306, allocations: 8.031 kB / 481 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02562/0.3316, allocations: 3.088 MB / 484.1 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008175/0.3398, allocations: 3.264 MB / 487.4 MB, free: 9.035 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.34, allocations: 205 kB / 487.6 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006373/0.3406, allocations: 271.8 kB / 487.8 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/0.3534, allocations: 8.851 MB / 496.7 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001131/0.3535, allocations: 51.5 kB / 496.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003547/0.3539, allocations: 131.9 kB / 496.9 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00289/0.3568, allocations: 1.766 MB / 498.6 MB, free: 13.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.3705, allocations: 7.796 MB / 0.4946 GB, free: 5.316 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.197/0.5676, allocations: 36.01 MB / 0.5297 GB, free: 71.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006513/0.5741, allocations: 3.807 MB / 0.5334 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001821/0.576, allocations: 2.158 MB / 0.5355 GB, free: 66.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003148/0.5763, allocations: 323.4 kB / 0.5359 GB, free: 66.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.5763, allocations: 64.61 kB / 0.5359 GB, free: 66.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 3.487e-06/0.5764, allocations: 0 / 0.5359 GB, free: 66.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.0481/0.6245, allocations: 21.39 MB / 0.5568 GB, free: 45.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.6246, allocations: 252.6 kB / 0.557 GB, free: 44.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004077/0.6286, allocations: 3.931 MB / 0.5609 GB, free: 40.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002917/0.629, allocations: 57.7 kB / 0.5609 GB, free: 40.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.6301, allocations: 2.78 MB / 0.5637 GB, free: 37.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005354/0.6307, allocations: 0.7159 MB / 0.5644 GB, free: 37.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001208/0.6319, allocations: 1.178 MB / 0.5655 GB, free: 36.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.104e-05/0.6319, allocations: 305.1 kB / 0.5658 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002572/0.6345, allocations: 2.385 MB / 0.5681 GB, free: 33.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003752/0.6383, allocations: 5.64 MB / 0.5736 GB, free: 26.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00707/0.6454, allocations: 8.583 MB / 0.582 GB, free: 15.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.921e-05/0.6454, allocations: 32 kB / 0.582 GB, free: 15.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01412/0.6596, allocations: 9.621 MB / 0.5914 GB, free: 6.289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.6596, allocations: 52 kB / 0.5915 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.351e-05/0.6597, allocations: 112 kB / 0.5916 GB, free: 6.129 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005214/0.665, allocations: 2.016 MB / 0.5936 GB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003773/0.6688, allocations: 1.287 MB / 0.5948 GB, free: 2.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01407/0.6829, allocations: 10.6 MB / 0.6052 GB, free: 8.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004367/0.6873, allocations: 339.5 kB / 0.6055 GB, free: 7.758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006667/0.688, allocations: 347.6 kB / 0.6058 GB, free: 7.422 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 684 * Array equations: 3 * 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 {(3,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002638/0.6906, allocations: 1.935 MB / 0.6077 GB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000616/0.6912, allocations: 346.3 kB / 0.608 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00948/0.7007, allocations: 4.895 MB / 0.6128 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-05/0.7008, allocations: 23.94 kB / 0.6129 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.7008, allocations: 8 kB / 0.6129 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.912e-05/0.7008, allocations: 11.97 kB / 0.6129 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01854/0.7194, allocations: 10.03 MB / 0.6227 GB, free: 6.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.7194, allocations: 0 / 0.6227 GB, free: 6.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.7207, allocations: 263.6 kB / 0.6229 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005293/0.726, allocations: 1.855 MB / 0.6247 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001788/0.7262, allocations: 28 kB / 0.6248 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01315/0.7393, allocations: 9.716 MB / 0.6342 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.7394, allocations: 4.031 kB / 0.6342 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2615/1.001, allocations: 59.72 MB / 0.6926 GB, free: 128.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007495/1.002, allocations: 406.5 kB / 0.693 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004695/1.002, allocations: 39.94 kB / 0.693 GB, free: 128.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/1.004, allocations: 131.8 kB / 0.6931 GB, free: 128.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/1.004, allocations: 109.1 kB / 0.6932 GB, free: 128.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/1.004, allocations: 51.12 kB / 0.6933 GB, free: 128.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002824/1.007, allocations: 2.484 MB / 0.6957 GB, free: 125.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.31e-07/1.007, allocations: 0 / 0.6957 GB, free: 125.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004729/1.012, allocations: 1.479 MB / 0.6971 GB, free: 124.2 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 132 * Array equations: 3 * 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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004113/1.012, allocations: 163.5 kB / 0.6973 GB, free: 124 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00676/1.019, allocations: 5.808 MB / 0.703 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.019, allocations: 3.719 kB / 0.703 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/1.021, allocations: 2.09 MB / 0.705 GB, free: 116.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/1.024, allocations: 448.8 kB / 0.7054 GB, free: 115.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/1.037, allocations: 12.88 MB / 0.718 GB, free: 103 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/1.039, allocations: 3.158 MB / 0.7211 GB, free: 99.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003855/1.043, allocations: 1.858 MB / 0.7229 GB, free: 97.97 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007706/1.044, allocations: 239.4 kB / 0.7231 GB, free: 97.74 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/1.044, allocations: 4 kB / 0.7231 GB, free: 97.73 MB / 442.7 MB Notification: Performance of Templates: time 0.06869/1.113, allocations: 59.6 MB / 0.7814 GB, free: 38.35 MB / 442.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@2/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