Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001342/0.001342, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 162.8 kB / 24.82 MB, free: 9.316 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.887/0.887, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.103e-06/2.103e-06, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.144e-05/2.354e-05, allocations: 5.266 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.0113/0.01132, allocations: 9.848 MB / 283.2 MB, free: 7.332 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007759/0.01908, allocations: 3.874 MB / 287.1 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.02016, allocations: 79.56 kB / 287.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002688/0.02285, allocations: 2.336 MB / 289.5 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.114/0.1369, allocations: 1.931 MB / 291.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1383, allocations: 0.8389 MB / 292.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005871/0.1442, allocations: 6.001 MB / 298.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003232/0.1474, allocations: 3.013 MB / 301.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004365/0.1518, allocations: 3.287 MB / 304.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002314/0.1541, allocations: 2.371 MB / 306.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004891/0.1546, allocations: 312.8 kB / 307.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.1558, allocations: 1.136 MB / 308.4 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009825/0.1568, allocations: 1.984 MB / 310.3 MB, free: 10 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.1578, allocations: 1.212 MB / 311.6 MB, free: 8.996 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.1606, allocations: 4.498 MB / 316.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1606, allocations: 0 / 316.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1606, allocations: 0 / 316.1 MB, free: 4.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.621e-05/0.1606, allocations: 0 / 316.1 MB, free: 4.777 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.004355/0.1649, allocations: 4.892 MB / 320.9 MB, free: 176 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.165, allocations: 11.98 kB / 321 MB, free: 164 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.1752, allocations: 2.597 MB / 323.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.1778, allocations: 2.25 MB / 325.8 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.1779, allocations: 199.2 kB / 326 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003862/0.1783, allocations: 278.7 kB / 326.3 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004988/0.1833, allocations: 4.953 MB / 331.2 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.802e-05/0.1834, allocations: 40.95 kB / 331.3 MB, free: 5.566 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.1836, allocations: 132.3 kB / 331.4 MB, free: 5.469 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001256/0.1849, allocations: 1.514 MB / 332.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003635/0.1885, allocations: 2.171 MB / 335.1 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02522/0.2137, allocations: 38.97 MB / 374 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003808/0.2175, allocations: 1.244 MB / 375.3 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005443/0.2181, allocations: 383 kB / 375.7 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004682/0.2227, allocations: 3.464 MB / 379.1 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.2228, allocations: 46.05 kB / 379.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 2.705e-06/0.2228, allocations: 0 / 379.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.01737/0.2402, allocations: 5.966 MB / 385.1 MB, free: 15.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.668e-05/0.2402, allocations: 250.7 kB / 385.4 MB, free: 15.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/0.2437, allocations: 3.489 MB / 388.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.2438, allocations: 45.7 kB / 388.9 MB, free: 12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002267/0.246, allocations: 3.184 MB / 392.1 MB, free: 8.785 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004547/0.2465, allocations: 0.5779 MB / 392.7 MB, free: 8.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/0.2478, allocations: 1.247 MB / 393.9 MB, free: 6.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.2479, allocations: 476.8 kB / 394.4 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009651/0.2489, allocations: 0.5143 MB / 394.9 MB, free: 5.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003896/0.2528, allocations: 5.743 MB / 400.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005694/0.2585, allocations: 6.702 MB / 407.4 MB, free: 4.871 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.941e-05/0.2585, allocations: 39.94 kB / 407.4 MB, free: 4.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005846/0.2644, allocations: 4.505 MB / 411.9 MB, free: 332 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.151e-05/0.2644, allocations: 59.98 kB / 412 MB, free: 272 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-05/0.2645, allocations: 120 kB / 412.1 MB, free: 152 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007659/0.2653, allocations: 408.6 kB / 412.5 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001759/0.267, allocations: 1.224 MB / 413.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002179/0.2692, allocations: 2.765 MB / 416.5 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.2709, allocations: 243.8 kB / 416.7 MB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/0.2711, allocations: 292 kB / 417 MB, free: 11.12 MB / 378.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.000768/0.2719, allocations: 0.6109 MB / 417.6 MB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000334/0.2722, allocations: 357.8 kB / 417.9 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.2734, allocations: 0.878 MB / 418.8 MB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.2734, allocations: 16 kB / 418.8 MB, free: 9.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2734, allocations: 7.984 kB / 418.8 MB, free: 9.223 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.2734, allocations: 3.984 kB / 418.8 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005104/0.2785, allocations: 4.168 MB / 423 MB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.2785, allocations: 4 kB / 423 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004022/0.2789, allocations: 183.7 kB / 423.2 MB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005904/0.2795, allocations: 229.9 kB / 423.4 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/0.2796, allocations: 35.98 kB / 423.5 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.2813, allocations: 2.472 MB / 425.9 MB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.2813, allocations: 7.938 kB / 425.9 MB, free: 1.863 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.2832, allocations: 1.98 MB / 427.9 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003236/0.2835, allocations: 341.6 kB / 428.3 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000178/0.2837, allocations: 28 kB / 428.3 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000576/0.2843, allocations: 31.98 kB / 428.3 MB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.2844, allocations: 92.23 kB / 428.4 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003069/0.2847, allocations: 36 kB / 428.4 MB, free: 15.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001142/0.2858, allocations: 1.437 MB / 429.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2858, allocations: 3.938 kB / 429.9 MB, free: 13.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002616/0.2885, allocations: 0.9609 MB / 430.8 MB, free: 12.84 MB / 394.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.000284/0.2887, allocations: 182.9 kB / 431 MB, free: 12.65 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.2915, allocations: 2.488 MB / 433.5 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2915, allocations: 0 / 433.5 MB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005078/0.292, allocations: 0.5811 MB / 434.1 MB, free: 9.555 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.2932, allocations: 440.8 kB / 434.5 MB, free: 9.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007558/0.3008, allocations: 6.859 MB / 441.4 MB, free: 2.098 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008873/0.3017, allocations: 1.117 MB / 442.5 MB, free: 0.9648 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001249/0.3029, allocations: 465.4 kB / 442.9 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.103/0.406, allocations: 0.5626 MB / 443.5 MB, free: 126.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.894e-06/0.406, allocations: 0.5625 kB / 443.5 MB, free: 126.1 MB / 394.7 MB Notification: Performance of Templates: time 0.05149/0.4575, allocations: 30.02 MB / 473.5 MB, free: 114.2 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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: 3.647689518984407]