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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008817/0.0008817, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008931/0.0008931, allocations: 147.5 kB / 24.89 MB, free: 9.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8891/0.8891, allocations: 173.3 MB / 201.5 MB, free: 9.195 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.033e-06/2.033e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.304e-05/1.507e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.007095/0.00711, allocations: 9.888 MB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005675/0.01279, allocations: 4.017 MB / 282.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008718/0.01366, allocations: 75.62 kB / 282.5 MB, free: 8.141 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.01601, allocations: 2.359 MB / 284.8 MB, free: 5.773 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002575/0.01858, allocations: 2.014 MB / 286.8 MB, free: 3.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009964/0.01958, allocations: 0.8304 MB / 287.7 MB, free: 2.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1061/0.1256, allocations: 5.824 MB / 293.5 MB, free: 16.01 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003701/0.1293, allocations: 3.091 MB / 296.6 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004384/0.1337, allocations: 3.275 MB / 299.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002719/0.1364, allocations: 2.262 MB / 302.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007551/0.1372, allocations: 312.6 kB / 302.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001442/0.1386, allocations: 1.147 MB / 303.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001141/0.1398, allocations: 2.007 MB / 305.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001315/0.1411, allocations: 1.226 MB / 306.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003478/0.1446, allocations: 4.545 MB / 311.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1446, allocations: 0 / 311.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.1446, allocations: 2.719 kB / 311.3 MB, free: 11.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001639/0.1447, allocations: 3.984 kB / 311.3 MB, free: 11.69 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.005072/0.1498, allocations: 4.327 MB / 315.7 MB, free: 8.445 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1498, allocations: 12.11 kB / 315.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003477/0.1533, allocations: 1.207 MB / 316.9 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002479/0.1558, allocations: 2.113 MB / 319 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.422e-05/0.1559, allocations: 200.3 kB / 319.2 MB, free: 5.094 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003099/0.1562, allocations: 276.5 kB / 319.5 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004621/0.1608, allocations: 4.428 MB / 323.9 MB, free: 160 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.1609, allocations: 47.7 kB / 323.9 MB, free: 132 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000295/0.1612, allocations: 127.4 kB / 324.1 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00178/0.163, allocations: 1.512 MB / 325.6 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004816/0.1678, allocations: 2.203 MB / 327.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0257/0.1935, allocations: 28.07 MB / 355.9 MB, free: 456 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003776/0.1973, allocations: 1.272 MB / 357.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005223/0.1978, allocations: 306.8 kB / 357.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00547/0.2033, allocations: 3.236 MB / 360.7 MB, free: 11.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.2033, allocations: 47.2 kB / 360.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 4.339e-06/0.2033, allocations: 0 / 360.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.017/0.2203, allocations: 5.335 MB / 366 MB, free: 6.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.2204, allocations: 251.5 kB / 366.3 MB, free: 6.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003207/0.2236, allocations: 3.133 MB / 369.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.604e-05/0.2237, allocations: 41.7 kB / 369.5 MB, free: 3.402 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.225, allocations: 2.765 MB / 372.2 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003495/0.2253, allocations: 0.5622 MB / 372.8 MB, free: 184 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007907/0.2261, allocations: 1.06 MB / 373.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.2262, allocations: 301.1 kB / 374.1 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009709/0.2271, allocations: 0.6824 MB / 374.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/0.2294, allocations: 4.09 MB / 378.9 MB, free: 8.336 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00354/0.2329, allocations: 5.138 MB / 384.1 MB, free: 1.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.098e-05/0.233, allocations: 36 kB / 384.1 MB, free: 1.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.004591/0.2376, allocations: 3.843 MB / 387.9 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.2376, allocations: 56 kB / 388 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.405e-05/0.2377, allocations: 128 kB / 388.1 MB, free: 13.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008265/0.2385, allocations: 403.5 kB / 388.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001897/0.2404, allocations: 1.228 MB / 389.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001912/0.2424, allocations: 2.177 MB / 391.9 MB, free: 9.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/0.2448, allocations: 239.7 kB / 392.1 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002813/0.2451, allocations: 296 kB / 392.4 MB, free: 9.184 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 551 * 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 {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001088/0.2462, allocations: 0.5642 MB / 393 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004256/0.2466, allocations: 199.7 kB / 393.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001106/0.2477, allocations: 0.7844 MB / 394 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.2477, allocations: 16 kB / 394 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.475e-06/0.2477, allocations: 7.984 kB / 394 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.2477, allocations: 7.922 kB / 394 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004599/0.2523, allocations: 3.525 MB / 397.5 MB, free: 3.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.2523, allocations: 8 kB / 397.5 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.2528, allocations: 179.7 kB / 397.7 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007443/0.2535, allocations: 416.7 kB / 398.1 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-05/0.2536, allocations: 32 kB / 398.2 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.2551, allocations: 1.901 MB / 400.1 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2551, allocations: 7.938 kB / 400.1 MB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00169/0.2568, allocations: 1.674 MB / 401.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005156/0.2573, allocations: 321.6 kB / 402 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/0.2575, allocations: 35.92 kB / 402.1 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005937/0.2581, allocations: 32 kB / 402.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.2582, allocations: 92.27 kB / 402.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.2583, allocations: 39.98 kB / 402.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001109/0.2594, allocations: 1.166 MB / 403.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2594, allocations: 0 / 403.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002851/0.2623, allocations: 0.9803 MB / 404.4 MB, free: 12.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 (revolute1.w,damper.phi_rel,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 (105): * Single equations (assignments): 101 * 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,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003325/0.2626, allocations: 176 kB / 404.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002907/0.2655, allocations: 2.254 MB / 406.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001512/0.2656, allocations: 92.16 kB / 406.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.2662, allocations: 489.6 kB / 407.4 MB, free: 9.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.2683, allocations: 0.5968 MB / 408 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008331/0.2766, allocations: 6.741 MB / 414.7 MB, free: 2.332 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.2778, allocations: 1.118 MB / 415.8 MB, free: 1.199 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.279, allocations: 465.4 kB / 416.3 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007741/0.2798, allocations: 0.5284 MB / 416.8 MB, free: 216 kB / 362.7 MB Notification: Performance of SimCode: time 2.495e-06/0.2798, allocations: 0 / 416.8 MB, free: 216 kB / 362.7 MB Notification: Performance of Templates: time 0.1458/0.4256, allocations: 30.11 MB / 446.9 MB, free: 108 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6503850710578263]