Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008413/0.0008413, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 158 kB / 24.99 MB, free: 9.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9121/0.9121, allocations: 177.1 MB / 205.3 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 273.1 MB, free: 1.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.579e-05/1.7e-05, allocations: 2.312 kB / 273.1 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007481/0.007498, allocations: 10.12 MB / 283.2 MB, free: 7.605 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005551/0.01305, allocations: 3.898 MB / 287.1 MB, free: 3.695 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009298/0.01398, allocations: 79.56 kB / 287.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002362/0.01634, allocations: 2.363 MB / 289.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1173/0.1336, allocations: 1.928 MB / 291.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1349, allocations: 0.8335 MB / 292.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005475/0.1404, allocations: 5.998 MB / 298.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003371/0.1437, allocations: 3.008 MB / 301.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003547/0.1473, allocations: 2.314 MB / 303.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.1502, allocations: 2.394 MB / 306 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006706/0.1509, allocations: 311.4 kB / 306.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00128/0.1522, allocations: 1.141 MB / 307.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001117/0.1533, allocations: 1.983 MB / 309.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000917/0.1542, allocations: 1.207 MB / 310.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002608/0.1568, allocations: 4.495 MB / 315.1 MB, free: 5.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1568, allocations: 0 / 315.1 MB, free: 5.941 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1568, allocations: 0 / 315.1 MB, free: 5.941 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.94e-05/0.1568, allocations: 0 / 315.1 MB, free: 5.941 MB / 266.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.004509/0.1613, allocations: 5.124 MB / 320.3 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.1614, allocations: 12.03 kB / 320.3 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/0.1734, allocations: 3.582 MB / 323.9 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.177, allocations: 2.932 MB / 326.8 MB, free: 10.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.105e-05/0.1771, allocations: 196.4 kB / 327 MB, free: 10.29 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003231/0.1774, allocations: 277 kB / 327.3 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005637/0.183, allocations: 5.436 MB / 332.7 MB, free: 3.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-05/0.1831, allocations: 40.73 kB / 332.7 MB, free: 3.863 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000242/0.1834, allocations: 127 kB / 332.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001669/0.185, allocations: 1.777 MB / 334.6 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005135/0.1902, allocations: 2.958 MB / 337.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02266/0.2128, allocations: 39 MB / 376.6 MB, free: 7.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/0.2164, allocations: 1.667 MB / 378.3 MB, free: 5.801 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007545/0.2171, allocations: 0.6501 MB / 378.9 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001798/0.2173, allocations: 95.44 kB / 379 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.2173, allocations: 54.39 kB / 379.1 MB, free: 4.984 MB / 330.7 MB Notification: Performance of pre-optimization done (n=160): time 3.406e-06/0.2173, allocations: 0 / 379.1 MB, free: 4.984 MB / 330.7 MB Notification: Performance of matching and sorting (n=190): time 0.02716/0.2445, allocations: 14.89 MB / 393.9 MB, free: 6.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.2446, allocations: 256.6 kB / 394.2 MB, free: 5.812 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.2475, allocations: 3.379 MB / 397.6 MB, free: 2.422 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.2476, allocations: 53.7 kB / 397.6 MB, free: 2.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.2489, allocations: 3.043 MB / 400.7 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00049/0.2494, allocations: 0.7829 MB / 401.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/0.2505, allocations: 1.251 MB / 402.7 MB, free: 13.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.799e-05/0.2506, allocations: 480.8 kB / 403.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.2518, allocations: 0.7686 MB / 403.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003344/0.2551, allocations: 5.682 MB / 409.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005215/0.2603, allocations: 6.983 MB / 416.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.784e-05/0.2603, allocations: 35.94 kB / 416.6 MB, free: 11 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.007748/0.2681, allocations: 6.117 MB / 422.8 MB, free: 4.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.845e-05/0.2681, allocations: 55.98 kB / 422.8 MB, free: 4.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.739e-05/0.2682, allocations: 112 kB / 422.9 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002912/0.2711, allocations: 1.385 MB / 424.3 MB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/0.2732, allocations: 1.279 MB / 425.6 MB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005907/0.2792, allocations: 4.991 MB / 430.6 MB, free: 12.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/0.2814, allocations: 403.4 kB / 431 MB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000302/0.2817, allocations: 339 kB / 431.3 MB, free: 12.21 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.001207/0.2829, allocations: 0.5993 MB / 431.9 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/0.2834, allocations: 389.7 kB / 432.3 MB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.2875, allocations: 2.564 MB / 434.9 MB, free: 8.637 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.2875, allocations: 20 kB / 434.9 MB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.2875, allocations: 8 kB / 434.9 MB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.2875, allocations: 7.969 kB / 434.9 MB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008409/0.2959, allocations: 6.399 MB / 441.3 MB, free: 2.172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.625e-06/0.2959, allocations: 8.062 kB / 441.3 MB, free: 2.164 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006512/0.2966, allocations: 263.6 kB / 441.6 MB, free: 1.906 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002939/0.2995, allocations: 1.21 MB / 442.8 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.894e-05/0.2996, allocations: 32 kB / 442.8 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1229/0.4225, allocations: 4.218 MB / 447 MB, free: 127.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.4225, allocations: 3.453 kB / 447 MB, free: 127.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00613/0.4286, allocations: 3.696 MB / 450.7 MB, free: 127 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005842/0.4292, allocations: 342.4 kB / 451 MB, free: 127 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002843/0.4295, allocations: 36.42 kB / 451.1 MB, free: 127 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009852/0.4305, allocations: 192.8 kB / 451.3 MB, free: 127 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.4307, allocations: 123.9 kB / 451.4 MB, free: 127 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.4308, allocations: 50.22 kB / 451.4 MB, free: 127 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001957/0.4328, allocations: 1.503 MB / 452.9 MB, free: 126.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4328, allocations: 1.844 kB / 452.9 MB, free: 126.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003137/0.4359, allocations: 1.195 MB / 454.1 MB, free: 126.8 MB / 394.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.0003749/0.4363, allocations: 187.1 kB / 454.3 MB, free: 126.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004067/0.4404, allocations: 3.327 MB / 457.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.4404, allocations: 0 / 457.6 MB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.4414, allocations: 1.094 MB / 458.7 MB, free: 125.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.4428, allocations: 428.6 kB / 459.2 MB, free: 125.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007486/0.4503, allocations: 7.438 MB / 466.6 MB, free: 122.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007807/0.451, allocations: 1.171 MB / 467.8 MB, free: 122.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001933/0.453, allocations: 1.516 MB / 469.3 MB, free: 122.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004605/0.4534, allocations: 227.4 kB / 469.5 MB, free: 121.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4534, allocations: 0 / 469.5 MB, free: 121.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04416/0.4976, allocations: 42.27 MB / 0.4998 GB, free: 81.25 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.03474465594627]