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.0009448/0.0009448, allocations: 88.86 kB / 21.5 MB, free: 2.984 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.001514/0.001514, allocations: 159.5 kB / 24.91 MB, free: 9.191 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.937/0.937, allocations: 177 MB / 205.2 MB, free: 5.473 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 1.733e-06/1.733e-06, allocations: 0 / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.579e-05, allocations: 2.312 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01175/0.01178, allocations: 9.906 MB / 283.3 MB, free: 7.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00956/0.02134, allocations: 4.017 MB / 287.4 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.024, allocations: 75.62 kB / 287.4 MB, free: 3.133 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005383/0.02938, allocations: 2.328 MB / 289.8 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1271/0.1565, allocations: 1.938 MB / 291.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.1582, allocations: 0.8324 MB / 292.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007293/0.1655, allocations: 5.972 MB / 298.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004546/0.17, allocations: 2.865 MB / 301.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004779/0.1748, allocations: 3.195 MB / 304.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003323/0.1781, allocations: 2.26 MB / 306.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.1792, allocations: 310.8 kB / 307.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002074/0.1812, allocations: 1.171 MB / 308.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001535/0.1828, allocations: 1.989 MB / 310.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002055/0.1848, allocations: 1.206 MB / 311.5 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004404/0.1892, allocations: 4.502 MB / 316 MB, free: 4.812 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1892, allocations: 0 / 316 MB, free: 4.812 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1892, allocations: 0 / 316 MB, free: 4.812 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001787/0.1894, allocations: 0 / 316 MB, free: 4.812 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.005769/0.1952, allocations: 4.341 MB / 320.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1952, allocations: 11.98 kB / 320.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003808/0.199, allocations: 1.205 MB / 321.5 MB, free: 15.61 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.2028, allocations: 2.102 MB / 323.6 MB, free: 13.6 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/0.2029, allocations: 198.4 kB / 323.8 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005108/0.2034, allocations: 272.8 kB / 324.1 MB, free: 13.2 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006438/0.2098, allocations: 4.437 MB / 328.5 MB, free: 8.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001031/0.2099, allocations: 49.12 kB / 328.6 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002409/0.2102, allocations: 124.6 kB / 328.7 MB, free: 8.379 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001232/0.2114, allocations: 1.519 MB / 330.2 MB, free: 6.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004342/0.2157, allocations: 2.202 MB / 332.4 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02571/0.2415, allocations: 28.07 MB / 360.5 MB, free: 8.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/0.2444, allocations: 1.275 MB / 361.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004606/0.2449, allocations: 305.3 kB / 362.1 MB, free: 7.203 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005003/0.2499, allocations: 3.23 MB / 365.3 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.25, allocations: 54.02 kB / 365.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 3.617e-06/0.25, allocations: 0 / 365.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=132): time 0.01303/0.263, allocations: 5.367 MB / 370.7 MB, free: 14.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.286e-05/0.2631, allocations: 248 kB / 371 MB, free: 14.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003127/0.2662, allocations: 3.125 MB / 374.1 MB, free: 11.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.2664, allocations: 41.7 kB / 374.1 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.2676, allocations: 2.769 MB / 376.9 MB, free: 8.484 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004833/0.2681, allocations: 0.5583 MB / 377.5 MB, free: 7.922 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008581/0.269, allocations: 1.057 MB / 378.5 MB, free: 6.855 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.302e-05/0.269, allocations: 305.1 kB / 378.8 MB, free: 6.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.2704, allocations: 0.6813 MB / 379.5 MB, free: 5.871 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002534/0.2729, allocations: 4.088 MB / 383.6 MB, free: 88 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004306/0.2772, allocations: 5.141 MB / 388.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.572e-05/0.2773, allocations: 32 kB / 388.8 MB, free: 9.215 MB / 346.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.005638/0.2829, allocations: 3.833 MB / 392.6 MB, free: 5.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.283, allocations: 56 kB / 392.6 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001071/0.2831, allocations: 120 kB / 392.8 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008753/0.284, allocations: 404.6 kB / 393.2 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002213/0.2862, allocations: 1.287 MB / 394.4 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002117/0.2883, allocations: 2.171 MB / 396.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002434/0.2907, allocations: 243.7 kB / 396.9 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002832/0.291, allocations: 296 kB / 397.1 MB, free: 0.7031 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.001402/0.2924, allocations: 0.5602 MB / 397.7 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004589/0.2929, allocations: 199.8 kB / 397.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.294, allocations: 0.7881 MB / 398.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.294, allocations: 16 kB / 398.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.294, allocations: 8 kB / 398.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.294, allocations: 3.984 kB / 398.7 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004652/0.2987, allocations: 3.533 MB / 402.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.2987, allocations: 15.92 kB / 402.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.2992, allocations: 196.5 kB / 402.5 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007802/0.3, allocations: 418.7 kB / 402.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.591e-05/0.3, allocations: 24 kB / 402.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001803/0.3018, allocations: 1.903 MB / 404.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.3019, allocations: 11.94 kB / 404.8 MB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.3036, allocations: 1.677 MB / 406.5 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004624/0.304, allocations: 313.7 kB / 406.8 MB, free: 6.676 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002234/0.3043, allocations: 27.94 kB / 406.8 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000597/0.3049, allocations: 39.97 kB / 406.9 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.305, allocations: 92.17 kB / 406.9 MB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-05/0.3051, allocations: 36 kB / 407 MB, free: 6.484 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001118/0.3062, allocations: 1.162 MB / 408.1 MB, free: 5.332 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3062, allocations: 4 kB / 408.1 MB, free: 5.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002953/0.3091, allocations: 0.9687 MB / 409.1 MB, free: 4.359 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.0003152/0.3094, allocations: 163.9 kB / 409.3 MB, free: 4.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002744/0.3122, allocations: 2.241 MB / 411.5 MB, free: 1.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001491/0.3123, allocations: 96.41 kB / 411.6 MB, free: 1.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008106/0.3131, allocations: 494.7 kB / 412.1 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/0.3149, allocations: 0.5983 MB / 412.7 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007768/0.3226, allocations: 6.726 MB / 419.4 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008935/0.3235, allocations: 1.121 MB / 420.5 MB, free: 8.742 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00115/0.3247, allocations: 466.7 kB / 421 MB, free: 8.285 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007467/0.3254, allocations: 0.5245 MB / 421.5 MB, free: 7.758 MB / 378.7 MB Notification: Performance of SimCode: time 2.164e-06/0.3254, allocations: 0 / 421.5 MB, free: 7.758 MB / 378.7 MB Notification: Performance of Templates: time 0.1496/0.475, allocations: 29.95 MB / 451.5 MB, free: 106.8 MB / 378.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 -s gbode -gbm=radauIIA3 -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.6799586419947445]