Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001314/0.001314, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001508/0.001508, allocations: 164.9 kB / 24.99 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9625/0.9625, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 273.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.743e-05/2.927e-05, allocations: 2.312 kB / 273.1 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01697/0.017, allocations: 15.4 MB / 288.5 MB, free: 2.387 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1275/0.1445, allocations: 5.042 MB / 293.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002524/0.147, allocations: 136.4 kB / 293.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006596/0.1536, allocations: 4.76 MB / 298.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005461/0.1591, allocations: 2.668 MB / 301.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002124/0.1612, allocations: 1.292 MB / 302.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008374/0.1696, allocations: 9.214 MB / 311.6 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004434/0.174, allocations: 5.217 MB / 316.8 MB, free: 4.352 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005399/0.1794, allocations: 3.817 MB / 320.6 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004598/0.184, allocations: 3.827 MB / 324.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001366/0.1854, allocations: 0.5195 MB / 324.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.188, allocations: 1.457 MB / 326.4 MB, free: 11.28 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002624/0.1906, allocations: 3.2 MB / 329.6 MB, free: 8.176 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0033/0.1939, allocations: 2.011 MB / 331.6 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008562/0.2025, allocations: 6.832 MB / 338.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2025, allocations: 0 / 338.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2025, allocations: 4 kB / 338.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003369/0.2028, allocations: 4 kB / 338.5 MB, free: 15.71 MB / 298.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.01368/0.2165, allocations: 8.283 MB / 346.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2165, allocations: 15.97 kB / 346.8 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009639/0.2262, allocations: 3.98 MB / 350.7 MB, free: 3.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006582/0.2327, allocations: 4.182 MB / 354.9 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002858/0.233, allocations: 341.8 kB / 355.2 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/0.234, allocations: 461.7 kB / 355.7 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01268/0.2467, allocations: 8.819 MB / 364.5 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001461/0.2469, allocations: 63.52 kB / 364.6 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004256/0.2473, allocations: 218.1 kB / 364.8 MB, free: 4.426 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003219/0.2505, allocations: 2.831 MB / 367.6 MB, free: 1.602 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.2618, allocations: 5.324 MB / 372.9 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1675/0.4293, allocations: 59.19 MB / 432.1 MB, free: 108.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/0.4394, allocations: 3.826 MB / 436 MB, free: 108.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00238/0.4418, allocations: 1.5 MB / 437.5 MB, free: 108.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01041/0.4522, allocations: 7.602 MB / 445.1 MB, free: 107.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.531e-05/0.4523, allocations: 82.25 kB / 445.1 MB, free: 107.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 9.397e-06/0.4523, allocations: 0 / 445.1 MB, free: 107.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4738/0.9261, allocations: 199.3 MB / 0.6293 GB, free: 79.46 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/0.9262, allocations: 268.6 kB / 0.6296 GB, free: 79.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/0.931, allocations: 4.478 MB / 0.6339 GB, free: 76.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001461/0.9324, allocations: 114.8 kB / 0.6341 GB, free: 76.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/0.9342, allocations: 4.287 MB / 0.6382 GB, free: 73.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002449/0.9367, allocations: 2.19 MB / 0.6404 GB, free: 71.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003161/0.9399, allocations: 2.116 MB / 0.6424 GB, free: 70.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.008e-05/0.9399, allocations: 476.8 kB / 0.6429 GB, free: 69.87 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005484/0.9454, allocations: 3.84 MB / 0.6466 GB, free: 66.03 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007255/0.9526, allocations: 10.07 MB / 0.6565 GB, free: 53.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01591/0.9685, allocations: 15.24 MB / 0.6714 GB, free: 35.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001981/0.9687, allocations: 40 kB / 0.6714 GB, free: 35.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3363/1.305, allocations: 112.6 MB / 0.7814 GB, free: 54.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.464e-05/1.305, allocations: 64 kB / 0.7815 GB, free: 54.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001104/1.305, allocations: 140 kB / 0.7816 GB, free: 54.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08649/1.392, allocations: 57.06 MB / 0.8373 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003419/1.395, allocations: 1.571 MB / 0.8389 GB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2451/1.64, allocations: 61.52 MB / 0.8989 GB, free: 93.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/1.651, allocations: 1.804 MB / 0.9007 GB, free: 93.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001631/1.652, allocations: 0.5363 MB / 0.9012 GB, free: 93.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.00296/1.655, allocations: 0.8363 MB / 0.902 GB, free: 92.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001792/1.657, allocations: 0.7111 MB / 0.9027 GB, free: 92.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2966/1.954, allocations: 109.6 MB / 1.01 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.389e-05/1.954, allocations: 57.66 kB / 1.01 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001056/1.954, allocations: 56.81 kB / 1.01 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.605e-05/1.954, allocations: 33.58 kB / 1.01 GB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3483/2.302, allocations: 161.1 MB / 1.167 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.779e-05/2.302, allocations: 3.781 kB / 1.167 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009488/2.303, allocations: 331.9 kB / 1.168 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08028/2.383, allocations: 55.92 MB / 1.222 GB, free: 92.85 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001315/2.385, allocations: 96 kB / 1.222 GB, free: 92.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09379/2.479, allocations: 56.22 MB / 1.277 GB, free: 36.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/2.479, allocations: 10.16 kB / 1.277 GB, free: 36.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3146/2.793, allocations: 113 MB / 1.388 GB, free: 59.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00191/2.795, allocations: 0.5609 MB / 1.388 GB, free: 59.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/2.797, allocations: 95.75 kB / 1.388 GB, free: 59.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005284/2.802, allocations: 1.566 MB / 1.39 GB, free: 57.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002962/2.805, allocations: 0.5262 MB / 1.39 GB, free: 57.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005168/2.806, allocations: 145.4 kB / 1.39 GB, free: 57.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002613/2.808, allocations: 2.043 MB / 1.392 GB, free: 55.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/2.808, allocations: 0 / 1.392 GB, free: 55.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01162/2.82, allocations: 4.092 MB / 1.396 GB, free: 51.96 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001312/2.821, allocations: 259.7 kB / 1.397 GB, free: 51.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02978/2.851, allocations: 20.21 MB / 1.416 GB, free: 33.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/2.851, allocations: 0 / 1.416 GB, free: 33.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02109/2.872, allocations: 14.03 MB / 1.43 GB, free: 21.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004629/2.877, allocations: 0.7204 MB / 1.431 GB, free: 21.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1449/3.022, allocations: 19 MB / 1.449 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003073/3.025, allocations: 2.238 MB / 1.452 GB, free: 123.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002728/3.027, allocations: 1.718 MB / 1.453 GB, free: 123.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000603/3.028, allocations: 294.6 kB / 1.453 GB, free: 123 MB / 426.7 MB Notification: Performance of SimCode: time 2.324e-06/3.028, allocations: 0 / 1.453 GB, free: 123 MB / 426.7 MB Notification: Performance of Templates: time 0.4722/3.5, allocations: 293.4 MB / 1.74 GB, free: 122.8 MB / 426.7 MB " [Timeout remaining time 656] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 9.372440957929939]