Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009917/0.0009917, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001055/0.001055, allocations: 168.6 kB / 25.33 MB, free: 8.598 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.8589/0.8589, allocations: 158.6 MB / 187.2 MB, free: 2.926 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.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 3.938 kB / 251 MB, free: 7.605 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.952e-05, allocations: 2.312 kB / 251 MB, free: 7.602 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01348/0.01351, allocations: 15.6 MB / 266.6 MB, free: 7.934 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.0251, allocations: 5.082 MB / 271.7 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003298/0.0284, allocations: 139.2 kB / 271.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007044/0.03544, allocations: 4.793 MB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007074/0.04251, allocations: 2.717 MB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002451/0.04497, allocations: 1.298 MB / 280.7 MB, free: 9.859 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.05547, allocations: 8.499 MB / 289.2 MB, free: 1.344 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007214/0.06268, allocations: 5.251 MB / 294.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007093/0.06977, allocations: 3.863 MB / 298.3 MB, free: 8.137 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005763/0.07554, allocations: 3.854 MB / 302.1 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001598/0.07713, allocations: 0.5195 MB / 302.7 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.07953, allocations: 1.463 MB / 304.1 MB, free: 2.289 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002831/0.08236, allocations: 3.23 MB / 307.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003236/0.08559, allocations: 2.037 MB / 309.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008199/0.09379, allocations: 6.905 MB / 316.3 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.0938, allocations: 0 / 316.3 MB, free: 6.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0938, allocations: 4 kB / 316.3 MB, free: 6.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002766/0.09408, allocations: 0 / 316.3 MB, free: 6.074 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.01317/0.1073, allocations: 8.294 MB / 324.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.1073, allocations: 15.98 kB / 324.6 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009067/0.1164, allocations: 3.862 MB / 328.5 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007151/0.1235, allocations: 4.262 MB / 332.7 MB, free: 5.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002292/0.1238, allocations: 333.1 kB / 333.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008291/0.1246, allocations: 468 kB / 333.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.1397, allocations: 8.817 MB / 342.3 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/0.1399, allocations: 67.47 kB / 342.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005349/0.1404, allocations: 215.8 kB / 342.6 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004082/0.1445, allocations: 2.836 MB / 345.4 MB, free: 7.465 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01479/0.1593, allocations: 5.321 MB / 350.8 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1734/0.3327, allocations: 59.23 MB / 410 MB, free: 43.24 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008066/0.3408, allocations: 3.825 MB / 413.8 MB, free: 39.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.3427, allocations: 1.493 MB / 415.3 MB, free: 37.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00956/0.3523, allocations: 7.624 MB / 422.9 MB, free: 30.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.3523, allocations: 78.92 kB / 423 MB, free: 30.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=326): time 7.244e-06/0.3523, allocations: 0 / 423 MB, free: 30.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=572): time 0.49/0.8423, allocations: 199.3 MB / 0.6078 GB, free: 29.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.083e-05/0.8424, allocations: 269.4 kB / 0.608 GB, free: 29.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00542/0.8478, allocations: 4.548 MB / 0.6125 GB, free: 26.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001679/0.8495, allocations: 114.7 kB / 0.6126 GB, free: 26.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001836/0.8514, allocations: 4.277 MB / 0.6167 GB, free: 22.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002176/0.8535, allocations: 2.203 MB / 0.6189 GB, free: 20.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1529/1.006, allocations: 2.106 MB / 0.621 GB, free: 120.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.022e-05/1.006, allocations: 481.4 kB / 0.6214 GB, free: 119.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008065/1.015, allocations: 3.838 MB / 0.6252 GB, free: 119.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01154/1.026, allocations: 10.07 MB / 0.635 GB, free: 112.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01928/1.045, allocations: 15.24 MB / 0.6499 GB, free: 104.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001856/1.046, allocations: 41.56 kB / 0.6499 GB, free: 104.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3282/1.374, allocations: 112.6 MB / 0.7598 GB, free: 101.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.459e-05/1.374, allocations: 65.81 kB / 0.7599 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/1.374, allocations: 140.6 kB / 0.76 GB, free: 101.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0844/1.458, allocations: 57.05 MB / 0.8158 GB, free: 74.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/1.462, allocations: 1.563 MB / 0.8173 GB, free: 72.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1019/1.564, allocations: 61.49 MB / 0.8773 GB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01448/1.578, allocations: 1.815 MB / 0.8791 GB, free: 9.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002931/1.581, allocations: 0.5388 MB / 0.8796 GB, free: 9.359 MB / 378.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.005676/1.587, allocations: 0.8256 MB / 0.8804 GB, free: 8.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003326/1.59, allocations: 0.7118 MB / 0.8811 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3418/1.932, allocations: 109.5 MB / 0.9881 GB, free: 46.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.42e-05/1.932, allocations: 60 kB / 0.9881 GB, free: 45.99 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001316/1.932, allocations: 56 kB / 0.9882 GB, free: 45.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.733e-05/1.932, allocations: 31.89 kB / 0.9882 GB, free: 45.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3614/2.294, allocations: 161.1 MB / 1.146 GB, free: 31.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.728e-05/2.294, allocations: 11.61 kB / 1.146 GB, free: 31.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/2.295, allocations: 328.6 kB / 1.146 GB, free: 31.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2376/2.532, allocations: 55.91 MB / 1.2 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001753/2.534, allocations: 98.78 kB / 1.201 GB, free: 108.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09646/2.631, allocations: 56.18 MB / 1.255 GB, free: 64.05 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/2.631, allocations: 10.81 kB / 1.255 GB, free: 64.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3408/2.971, allocations: 113 MB / 1.366 GB, free: 78.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006205/2.978, allocations: 2.683 MB / 1.368 GB, free: 77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002084/2.98, allocations: 96.06 kB / 1.368 GB, free: 76.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006403/2.986, allocations: 1.577 MB / 1.37 GB, free: 75.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003222/2.989, allocations: 0.5232 MB / 1.371 GB, free: 75.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005966/2.99, allocations: 141.2 kB / 1.371 GB, free: 74.92 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002955/2.993, allocations: 2.101 MB / 1.373 GB, free: 73.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/2.993, allocations: 0.8438 kB / 1.373 GB, free: 73.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01149/3.004, allocations: 4.119 MB / 1.377 GB, free: 69.45 MB / 394.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.001305/3.006, allocations: 262.2 kB / 1.377 GB, free: 69.29 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.03058/3.036, allocations: 20.19 MB / 1.397 GB, free: 51.78 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/3.036, allocations: 0 / 1.397 GB, free: 51.78 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02227/3.059, allocations: 14.01 MB / 1.41 GB, free: 39.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/3.063, allocations: 0.727 MB / 1.411 GB, free: 39 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02604/3.089, allocations: 19.07 MB / 1.43 GB, free: 22.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003114/3.093, allocations: 2.24 MB / 1.432 GB, free: 20.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002907/3.095, allocations: 1.721 MB / 1.434 GB, free: 19.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008219/3.096, allocations: 294.5 kB / 1.434 GB, free: 19.03 MB / 394.7 MB Notification: Performance of SimCode: time 2.876e-06/3.096, allocations: 0 / 1.434 GB, free: 19.03 MB / 394.7 MB Notification: Performance of Templates: time 0.4889/3.585, allocations: 294.3 MB / 1.721 GB, free: 15.77 MB / 410.7 MB " [Timeout remaining time 656] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.827883782796562]