Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.001383/0.001383, allocations: 84.98 kB / 22.99 MB, free: 1.504 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.001885/0.001885, allocations: 178 kB / 26.4 MB, free: 8.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8852/0.8852, allocations: 158.6 MB / 188.3 MB, free: 2.82 MB / 170.7 MB " [Timeout remaining time 179] 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 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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 252.3 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449e-05/1.57e-05, allocations: 6.25 kB / 252.3 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.008511/0.008526, allocations: 11.64 MB / 263.9 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006536/0.01506, allocations: 4.344 MB / 268.2 MB, free: 7.184 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008549/0.01592, allocations: 99.44 kB / 268.3 MB, free: 7.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.01881, allocations: 3.079 MB / 271.4 MB, free: 3.996 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002739/0.02155, allocations: 2.17 MB / 273.6 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.02289, allocations: 1.146 MB / 274.7 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004395/0.02729, allocations: 6.015 MB / 280.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.03051, allocations: 3.793 MB / 284.5 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.03379, allocations: 3.388 MB / 287.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.03664, allocations: 2.72 MB / 290.7 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004384/0.03707, allocations: 396 kB / 291 MB, free: 284 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.03847, allocations: 1.225 MB / 292.3 MB, free: 15.05 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.03985, allocations: 2.361 MB / 294.6 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.04129, allocations: 1.476 MB / 296.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004009/0.0453, allocations: 5.282 MB / 301.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.04531, allocations: 0 / 301.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.04531, allocations: 0 / 301.4 MB, free: 5.902 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.213e-05/0.04536, allocations: 3.938 kB / 301.4 MB, free: 5.898 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.00608/0.05144, allocations: 5.65 MB / 307 MB, free: 176 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.05147, allocations: 15.98 kB / 307.1 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01472/0.06619, allocations: 2.768 MB / 309.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004256/0.07044, allocations: 2.578 MB / 312.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.07062, allocations: 254.7 kB / 312.7 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005077/0.07112, allocations: 343.7 kB / 313 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007502/0.07863, allocations: 5.608 MB / 318.6 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.07873, allocations: 47.58 kB / 318.6 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000345/0.07907, allocations: 155.9 kB / 318.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001981/0.08105, allocations: 1.76 MB / 320.6 MB, free: 1.664 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005242/0.0863, allocations: 2.47 MB / 323 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1454/0.2316, allocations: 42.25 MB / 365.3 MB, free: 62.26 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/0.2348, allocations: 1.392 MB / 366.7 MB, free: 62.12 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004676/0.2353, allocations: 416.1 kB / 367.1 MB, free: 62.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00444/0.2397, allocations: 3.801 MB / 370.9 MB, free: 61.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.2398, allocations: 58.86 kB / 370.9 MB, free: 61.16 MB / 330.7 MB Notification: Performance of pre-optimization done (n=136): time 3.617e-06/0.2398, allocations: 0 / 370.9 MB, free: 61.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=153): time 0.01684/0.2566, allocations: 7.269 MB / 378.2 MB, free: 60.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/0.2567, allocations: 251.1 kB / 378.4 MB, free: 60.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002683/0.2593, allocations: 3.788 MB / 382.2 MB, free: 58.09 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/0.2594, allocations: 53.67 kB / 382.3 MB, free: 58.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.2606, allocations: 3.629 MB / 385.9 MB, free: 55.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.2609, allocations: 0.6656 MB / 386.6 MB, free: 54.82 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009156/0.2619, allocations: 1.355 MB / 387.9 MB, free: 53.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.755e-05/0.2619, allocations: 484.5 kB / 388.4 MB, free: 53.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008147/0.2627, allocations: 0.5735 MB / 389 MB, free: 52.44 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00198/0.2647, allocations: 6.252 MB / 395.2 MB, free: 43.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003431/0.2681, allocations: 7.334 MB / 402.6 MB, free: 34.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.572e-05/0.2682, allocations: 36 kB / 402.6 MB, free: 34.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.005193/0.2734, allocations: 5.081 MB / 407.7 MB, free: 29.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.751e-05/0.2734, allocations: 64.06 kB / 407.7 MB, free: 29.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.968e-05/0.2735, allocations: 134.2 kB / 407.9 MB, free: 29.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.2748, allocations: 0.664 MB / 408.5 MB, free: 28.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.2767, allocations: 1.337 MB / 409.9 MB, free: 27.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003893/0.2806, allocations: 7.092 MB / 417 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002835/0.2834, allocations: 275.7 kB / 417.2 MB, free: 19.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002356/0.2837, allocations: 324.8 kB / 417.6 MB, free: 19.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (746): * Single equations (assignments): 740 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.001119/0.2848, allocations: 0.6526 MB / 418.2 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004589/0.2853, allocations: 393.6 kB / 418.6 MB, free: 17.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.2865, allocations: 1.03 MB / 419.6 MB, free: 16.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.2865, allocations: 16 kB / 419.6 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2865, allocations: 4 kB / 419.6 MB, free: 16.92 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2865, allocations: 10.84 kB / 419.7 MB, free: 16.91 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005519/0.2921, allocations: 4.908 MB / 424.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.2921, allocations: 8 kB / 424.6 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.2926, allocations: 219.6 kB / 424.8 MB, free: 11.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005951/0.2932, allocations: 235.5 kB / 425 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.92e-05/0.2932, allocations: 35.98 kB / 425 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.2945, allocations: 2.475 MB / 427.5 MB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.2945, allocations: 11.94 kB / 427.5 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.2962, allocations: 2.179 MB / 429.7 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005712/0.2968, allocations: 485.3 kB / 430.2 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.2971, allocations: 35.97 kB / 430.2 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000691/0.2977, allocations: 47.56 kB / 430.3 MB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.2979, allocations: 116.3 kB / 430.4 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.382e-05/0.2979, allocations: 40 kB / 430.4 MB, free: 5.723 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001102/0.299, allocations: 1.555 MB / 432 MB, free: 4.188 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.299, allocations: 0 / 432 MB, free: 4.188 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002952/0.302, allocations: 1.121 MB / 433.1 MB, free: 3.066 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (127): * Single equations (assignments): 123 * 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.0002893/0.3023, allocations: 194.8 kB / 433.3 MB, free: 2.863 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002855/0.3051, allocations: 3.169 MB / 436.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3051, allocations: 5.25 kB / 436.5 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006418/0.3058, allocations: 0.6472 MB / 437.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/0.3074, allocations: 0.5154 MB / 437.6 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01048/0.3179, allocations: 8.149 MB / 445.8 MB, free: 6.156 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001552/0.3194, allocations: 1.334 MB / 447.1 MB, free: 4.797 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00149/0.3209, allocations: 0.5065 MB / 447.6 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001043/0.322, allocations: 0.6425 MB / 448.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of SimCode: time 2.144e-06/0.322, allocations: 0 / 448.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of Templates: time 0.05313/0.3751, allocations: 37.54 MB / 485.8 MB, free: 14.07 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulumInitTip/DoublePendulumInitTip.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.20630518021062]