Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0008894/0.0008894, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001371/0.001371, allocations: 141.7 kB / 24.89 MB, free: 8.777 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.9217/0.9217, allocations: 173.4 MB / 201.5 MB, free: 8.754 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.213e-05/2.357e-05, allocations: 5.969 kB / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01555/0.01557, allocations: 15 MB / 283.5 MB, free: 6.941 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.02652, allocations: 5.239 MB / 288.7 MB, free: 1.684 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.02878, allocations: 131.3 kB / 288.8 MB, free: 1.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1136/0.1424, allocations: 4.768 MB / 293.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006089/0.1485, allocations: 2.732 MB / 296.3 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001999/0.1505, allocations: 1.3 MB / 297.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0089/0.1594, allocations: 8.926 MB / 306.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004813/0.1642, allocations: 5.356 MB / 311.9 MB, free: 8.973 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005841/0.17, allocations: 5.359 MB / 317.3 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003174/0.1732, allocations: 3.516 MB / 320.8 MB, free: 1.805 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008085/0.174, allocations: 0.5078 MB / 321.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.1757, allocations: 1.448 MB / 322.8 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001935/0.1777, allocations: 3.216 MB / 326 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002137/0.1798, allocations: 2.011 MB / 328 MB, free: 10.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009906/0.1897, allocations: 6.824 MB / 334.8 MB, free: 4.477 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1897, allocations: 4 kB / 334.8 MB, free: 4.473 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1897, allocations: 0 / 334.8 MB, free: 4.473 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.00024/0.19, allocations: 0 / 334.8 MB, free: 4.473 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.01367/0.2036, allocations: 6.995 MB / 341.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.2037, allocations: 12.91 kB / 341.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005408/0.2091, allocations: 1.569 MB / 343.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004509/0.2136, allocations: 3.285 MB / 346.7 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.2138, allocations: 334.6 kB / 347 MB, free: 9.016 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007079/0.2145, allocations: 468.8 kB / 347.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007856/0.2223, allocations: 7.062 MB / 354.5 MB, free: 1.199 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.2225, allocations: 73 kB / 354.6 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/0.2228, allocations: 210.5 kB / 354.8 MB, free: 1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001859/0.2247, allocations: 2.314 MB / 357.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005607/0.2303, allocations: 3.623 MB / 360.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03098/0.2612, allocations: 43.02 MB / 403.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00602/0.2673, allocations: 2.776 MB / 406.5 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007581/0.268, allocations: 0.6426 MB / 407.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007835/0.2759, allocations: 6.253 MB / 413.4 MB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.2759, allocations: 52.56 kB / 413.5 MB, free: 5.641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=237): time 4.147e-06/0.2759, allocations: 0 / 413.5 MB, free: 5.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=349): time 0.1923/0.4682, allocations: 27.63 MB / 441.1 MB, free: 118.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.4683, allocations: 251.7 kB / 441.4 MB, free: 118.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004528/0.4728, allocations: 4.36 MB / 445.7 MB, free: 118 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004765/0.4733, allocations: 81.08 kB / 445.8 MB, free: 118 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/0.4747, allocations: 4.006 MB / 449.8 MB, free: 115.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008808/0.4756, allocations: 1.327 MB / 451.1 MB, free: 115.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001641/0.4773, allocations: 1.618 MB / 452.7 MB, free: 114.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.594e-05/0.4773, allocations: 301.1 kB / 453 MB, free: 114.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002678/0.48, allocations: 1.803 MB / 454.8 MB, free: 114.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003794/0.4838, allocations: 6.338 MB / 461.2 MB, free: 108.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005228/0.489, allocations: 8.69 MB / 469.9 MB, free: 101.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.446e-05/0.489, allocations: 46.16 kB / 469.9 MB, free: 101.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.0271/0.5161, allocations: 10.77 MB / 480.7 MB, free: 93.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/0.5162, allocations: 72.97 kB / 480.8 MB, free: 93.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.391e-05/0.5163, allocations: 164 kB / 480.9 MB, free: 93.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0167/0.533, allocations: 9.642 MB / 490.6 MB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002726/0.5357, allocations: 1.684 MB / 492.3 MB, free: 82.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02849/0.5642, allocations: 18.73 MB / 0.499 GB, free: 63.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004918/0.5691, allocations: 355.7 kB / 0.4993 GB, free: 62.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005459/0.5697, allocations: 416 kB / 0.4997 GB, free: 62.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001966/0.5716, allocations: 0.783 MB / 0.5005 GB, free: 61.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007562/0.5724, allocations: 375.6 kB / 0.5009 GB, free: 61.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02306/0.5955, allocations: 7.332 MB / 0.508 GB, free: 53.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.393e-05/0.5955, allocations: 35.98 kB / 0.5081 GB, free: 53.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.681e-05/0.5955, allocations: 28 kB / 0.5081 GB, free: 53.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.2e-05/0.5956, allocations: 19.88 kB / 0.5081 GB, free: 53.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03458/0.6302, allocations: 16.27 MB / 0.524 GB, free: 37.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.793e-05/0.6302, allocations: 8 kB / 0.524 GB, free: 37.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007645/0.6309, allocations: 296.2 kB / 0.5243 GB, free: 37.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01676/0.6477, allocations: 9.321 MB / 0.5334 GB, free: 27.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003765/0.6481, allocations: 71.98 kB / 0.5335 GB, free: 27.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02437/0.6725, allocations: 15.55 MB / 0.5486 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.6725, allocations: 11.94 kB / 0.5487 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0249/0.6974, allocations: 8.871 MB / 0.5573 GB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00131/0.6987, allocations: 496.1 kB / 0.5578 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007103/0.6994, allocations: 67.98 kB / 0.5579 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.701, allocations: 71.98 kB / 0.5579 GB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009322/0.7019, allocations: 310.9 kB / 0.5582 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002187/0.7022, allocations: 76.02 kB / 0.5583 GB, free: 1.684 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001532/0.7037, allocations: 1.698 MB / 0.56 GB, free: 15.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7037, allocations: 0 / 0.56 GB, free: 15.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.1259/0.8296, allocations: 2.484 MB / 0.5624 GB, free: 112.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000954/0.8306, allocations: 220 kB / 0.5626 GB, free: 112 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01239/0.8429, allocations: 7.003 MB / 0.5694 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002855/0.8432, allocations: 116.8 kB / 0.5695 GB, free: 111.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006828/0.8501, allocations: 3.657 MB / 0.5731 GB, free: 110.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005256/0.8553, allocations: 0.9428 MB / 0.574 GB, free: 110.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02263/0.8779, allocations: 13.42 MB / 0.5871 GB, free: 105.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/0.8805, allocations: 1.956 MB / 0.589 GB, free: 105.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002259/0.8828, allocations: 0.654 MB / 0.5897 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.8841, allocations: 0.7315 MB / 0.5904 GB, free: 105.4 MB / 394.7 MB Notification: Performance of SimCode: time 2.665e-06/0.8841, allocations: 0 / 0.5904 GB, free: 105.4 MB / 394.7 MB Notification: Performance of Templates: time 0.242/1.126, allocations: 139.9 MB / 0.727 GB, free: 109.6 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.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: 5.466619663871825]