Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.0009894/0.0009894, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001929/0.001929, allocations: 145.4 kB / 25.59 MB, free: 8.918 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.9776/0.9776, allocations: 173.4 MB / 202.2 MB, free: 8.273 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.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.491e-05, allocations: 5.266 kB / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01174/0.01176, allocations: 12.71 MB / 281.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006687/0.01845, allocations: 4.747 MB / 286.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009233/0.01937, allocations: 103.5 kB / 286.8 MB, free: 8.176 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003914/0.02329, allocations: 4.431 MB / 291.2 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0029/0.02619, allocations: 2.298 MB / 293.5 MB, free: 1.422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001505/0.02769, allocations: 1.228 MB / 294.7 MB, free: 196 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005009/0.0327, allocations: 6.658 MB / 301.4 MB, free: 9.52 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003322/0.03602, allocations: 4.718 MB / 306.1 MB, free: 4.734 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003435/0.03946, allocations: 4.297 MB / 310.4 MB, free: 440 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.04216, allocations: 3.184 MB / 313.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005767/0.04274, allocations: 0.5 MB / 314.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001763/0.0445, allocations: 1.595 MB / 315.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.04614, allocations: 2.798 MB / 318.5 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001529/0.04767, allocations: 1.776 MB / 320.2 MB, free: 6.555 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004685/0.05235, allocations: 6.132 MB / 326.4 MB, free: 412 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.05235, allocations: 0 / 326.4 MB, free: 412 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.05236, allocations: 0 / 326.4 MB, free: 412 kB / 298.7 MB Notification: Performance of Transformations before backend: time 6.776e-05/0.05242, allocations: 0 / 326.4 MB, free: 412 kB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.007764/0.06019, allocations: 6.354 MB / 332.7 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.06022, allocations: 8.031 kB / 332.7 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006472/0.0667, allocations: 2.226 MB / 335 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004337/0.07103, allocations: 2.799 MB / 337.8 MB, free: 4.879 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.07119, allocations: 304.3 kB / 338.1 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005308/0.07172, allocations: 440.5 kB / 338.5 MB, free: 4.148 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1259/0.1977, allocations: 6.607 MB / 345.1 MB, free: 64.97 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000155/0.1978, allocations: 52.22 kB / 345.2 MB, free: 64.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/0.1982, allocations: 189.8 kB / 345.3 MB, free: 64.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002018/0.2002, allocations: 1.824 MB / 347.2 MB, free: 64.96 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006815/0.207, allocations: 3.108 MB / 350.3 MB, free: 64.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02292/0.2299, allocations: 47.11 MB / 397.4 MB, free: 22.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004176/0.2341, allocations: 2.19 MB / 399.6 MB, free: 20.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.2345, allocations: 0.504 MB / 400.1 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004195/0.2387, allocations: 4.278 MB / 404.4 MB, free: 16.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.2388, allocations: 53.58 kB / 404.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=165): time 2.935e-06/0.2388, allocations: 3.531 kB / 404.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=207): time 0.01768/0.2564, allocations: 7.95 MB / 412.4 MB, free: 8.418 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.2565, allocations: 211.1 kB / 412.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/0.259, allocations: 3.926 MB / 416.5 MB, free: 4.391 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.608e-05/0.2591, allocations: 53.7 kB / 416.5 MB, free: 4.332 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.2603, allocations: 3.906 MB / 420.4 MB, free: 448 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000474/0.2608, allocations: 0.8492 MB / 421.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.262, allocations: 1.451 MB / 422.7 MB, free: 14.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2622, allocations: 480.7 kB / 423.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009139/0.2631, allocations: 0.6141 MB / 423.8 MB, free: 13.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00381/0.2669, allocations: 6.468 MB / 430.3 MB, free: 3.895 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005713/0.2726, allocations: 7.701 MB / 438 MB, free: 9.609 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.944e-05/0.2726, allocations: 40 kB / 438 MB, free: 9.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.005518/0.2781, allocations: 5.276 MB / 443.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.3e-05/0.2782, allocations: 67.83 kB / 443.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003534/0.2786, allocations: 140 kB / 443.5 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008535/0.2794, allocations: 439.1 kB / 443.9 MB, free: 3.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002219/0.2816, allocations: 1.474 MB / 445.4 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.2839, allocations: 3.075 MB / 448.5 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/0.2861, allocations: 287.8 kB / 448.8 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/0.2864, allocations: 340 kB / 449.1 MB, free: 14.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (823): * Single equations (assignments): 819 * 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 {(1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001162/0.2875, allocations: 0.6923 MB / 449.8 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003888/0.2879, allocations: 445.4 kB / 450.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.2898, allocations: 1.264 MB / 451.5 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.2898, allocations: 20 kB / 451.5 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2898, allocations: 4 kB / 451.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.2899, allocations: 11.95 kB / 451.5 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007169/0.297, allocations: 6.01 MB / 457.5 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.297, allocations: 15.8 kB / 457.6 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009532/0.298, allocations: 303.5 kB / 457.9 MB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000656/0.2986, allocations: 247.9 kB / 458.1 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.168e-05/0.2987, allocations: 51.98 kB / 458.2 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.3004, allocations: 2.314 MB / 460.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.3004, allocations: 15.94 kB / 460.5 MB, free: 2.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002401/0.3028, allocations: 2.634 MB / 463.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004207/0.3032, allocations: 385.2 kB / 463.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002651/0.3035, allocations: 44 kB / 463.5 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006944/0.3042, allocations: 43.98 kB / 463.6 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3043, allocations: 148.5 kB / 463.7 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.342e-05/0.3044, allocations: 52 kB / 463.8 MB, free: 15.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001623/0.306, allocations: 1.618 MB / 465.4 MB, free: 13.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.306, allocations: 0 / 465.4 MB, free: 13.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003553/0.3096, allocations: 1.222 MB / 466.6 MB, free: 12.28 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (j1.phi,j1.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 (172): * Single equations (assignments): 168 * 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 {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004349/0.31, allocations: 270.5 kB / 466.9 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00328/0.3133, allocations: 2.98 MB / 469.9 MB, free: 9.031 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3133, allocations: 0 / 469.9 MB, free: 9.031 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000718/0.314, allocations: 0.7684 MB / 470.6 MB, free: 8.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.3156, allocations: 0.5084 MB / 471.1 MB, free: 7.727 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/0.3272, allocations: 9.118 MB / 480.3 MB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.3285, allocations: 1.518 MB / 481.8 MB, free: 12.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001435/0.3299, allocations: 0.5581 MB / 482.3 MB, free: 12.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008603/0.3308, allocations: 0.6738 MB / 483 MB, free: 11.56 MB / 394.7 MB Notification: Performance of SimCode: time 1.031e-06/0.3308, allocations: 0 / 483 MB, free: 11.56 MB / 394.7 MB Notification: Performance of Templates: time 0.1702/0.501, allocations: 36.48 MB / 0.5073 GB, free: 120.2 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar_analytic/Fourbar_analytic.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.280371824745089]