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.001059/0.001059, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009559/0.0009559, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 1.037/1.037, allocations: 177.1 MB / 205 MB, free: 5.578 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.583e-06/1.583e-06, allocations: 0 / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.081e-05/3.239e-05, allocations: 6.312 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01181/0.01185, allocations: 15.44 MB / 288.4 MB, free: 1.988 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1456/0.1574, allocations: 5.058 MB / 293.5 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.1607, allocations: 136.1 kB / 293.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007712/0.1684, allocations: 4.769 MB / 298.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006724/0.1751, allocations: 2.68 MB / 301.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002686/0.1778, allocations: 1.289 MB / 302.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01291/0.1907, allocations: 9.214 MB / 311.6 MB, free: 7.855 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006651/0.1974, allocations: 5.215 MB / 316.8 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007032/0.2044, allocations: 3.816 MB / 320.6 MB, free: 448 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005332/0.2097, allocations: 3.823 MB / 324.4 MB, free: 12.9 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001647/0.2114, allocations: 0.5195 MB / 324.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002843/0.2142, allocations: 1.464 MB / 326.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002669/0.2169, allocations: 3.196 MB / 329.6 MB, free: 7.855 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003132/0.22, allocations: 2.014 MB / 331.6 MB, free: 5.93 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008351/0.2284, allocations: 6.83 MB / 338.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.2284, allocations: 3.938 kB / 338.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2284, allocations: 0 / 338.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0003128/0.2287, allocations: 4 kB / 338.5 MB, free: 15.38 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.01399/0.2427, allocations: 8.288 MB / 346.7 MB, free: 7.145 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.2427, allocations: 8.031 kB / 346.8 MB, free: 7.137 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00904/0.2518, allocations: 3.986 MB / 350.7 MB, free: 3.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006791/0.2586, allocations: 4.183 MB / 354.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.2588, allocations: 339.5 kB / 355.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.2599, allocations: 464.9 kB / 355.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01511/0.275, allocations: 8.82 MB / 364.5 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000197/0.2752, allocations: 63.53 kB / 364.6 MB, free: 4.266 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004923/0.2757, allocations: 216.2 kB / 364.8 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003267/0.2789, allocations: 2.834 MB / 367.6 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.2921, allocations: 5.325 MB / 373 MB, free: 11.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1972/0.4892, allocations: 59.18 MB / 432.1 MB, free: 102.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01019/0.4994, allocations: 3.83 MB / 436 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002682/0.5021, allocations: 1.497 MB / 437.5 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.5133, allocations: 7.604 MB / 445.1 MB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.686e-05/0.5134, allocations: 77.06 kB / 445.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 6.803e-06/0.5134, allocations: 1.375 kB / 445.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4793/0.9927, allocations: 199.3 MB / 0.6293 GB, free: 76.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.528e-05/0.9928, allocations: 271.4 kB / 0.6296 GB, free: 76.29 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004807/0.9976, allocations: 4.476 MB / 0.634 GB, free: 73.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001456/0.999, allocations: 114.2 kB / 0.6341 GB, free: 73.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001934/1.001, allocations: 4.279 MB / 0.6382 GB, free: 70.97 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002101/1.003, allocations: 2.197 MB / 0.6404 GB, free: 69.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002934/1.006, allocations: 2.109 MB / 0.6424 GB, free: 67.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.051e-05/1.006, allocations: 476.8 kB / 0.6429 GB, free: 67.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005042/1.011, allocations: 3.848 MB / 0.6467 GB, free: 63.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006356/1.017, allocations: 10.07 MB / 0.6565 GB, free: 51.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/1.03, allocations: 15.25 MB / 0.6714 GB, free: 33.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.786e-05/1.03, allocations: 43.94 kB / 0.6714 GB, free: 33.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.326/1.356, allocations: 112.6 MB / 0.7814 GB, free: 52.87 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.165e-05/1.356, allocations: 71.94 kB / 0.7815 GB, free: 52.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.357, allocations: 137 kB / 0.7816 GB, free: 52.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08426/1.441, allocations: 57.06 MB / 0.8373 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004233/1.445, allocations: 1.563 MB / 0.8389 GB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2774/1.723, allocations: 61.53 MB / 0.899 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01225/1.735, allocations: 1.804 MB / 0.9007 GB, free: 89.26 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002071/1.737, allocations: 0.5348 MB / 0.9012 GB, free: 89.18 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.003807/1.741, allocations: 0.833 MB / 0.9021 GB, free: 88.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002058/1.743, allocations: 0.7088 MB / 0.9027 GB, free: 88.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3308/2.073, allocations: 109.6 MB / 1.01 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.231e-05/2.074, allocations: 62.89 kB / 1.01 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001333/2.074, allocations: 59.53 kB / 1.01 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.964e-05/2.074, allocations: 27.11 kB / 1.01 GB, free: 102.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3652/2.439, allocations: 161.1 MB / 1.167 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.036e-05/2.439, allocations: 9 kB / 1.167 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/2.44, allocations: 332.9 kB / 1.168 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08282/2.523, allocations: 55.92 MB / 1.222 GB, free: 92.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001563/2.524, allocations: 96 kB / 1.222 GB, free: 92.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09297/2.617, allocations: 56.22 MB / 1.277 GB, free: 36.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/2.617, allocations: 7.562 kB / 1.277 GB, free: 36.26 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3337/2.951, allocations: 113 MB / 1.388 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/2.953, allocations: 0.5624 MB / 1.388 GB, free: 59.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002202/2.955, allocations: 105.7 kB / 1.388 GB, free: 59.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00588/2.961, allocations: 1.556 MB / 1.39 GB, free: 57.74 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002873/2.964, allocations: 0.519 MB / 1.39 GB, free: 57.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006071/2.965, allocations: 146.3 kB / 1.39 GB, free: 57.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002782/2.967, allocations: 2.05 MB / 1.392 GB, free: 55.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/2.967, allocations: 0 / 1.392 GB, free: 55.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01197/2.979, allocations: 4.091 MB / 1.396 GB, free: 51.79 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.001538/2.981, allocations: 258.2 kB / 1.397 GB, free: 51.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03853/3.019, allocations: 20.21 MB / 1.416 GB, free: 33.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/3.019, allocations: 0 / 1.416 GB, free: 33.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02858/3.048, allocations: 14.03 MB / 1.43 GB, free: 21.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00525/3.053, allocations: 0.728 MB / 1.431 GB, free: 21.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1549/3.208, allocations: 19 MB / 1.449 GB, free: 117.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003544/3.212, allocations: 2.241 MB / 1.452 GB, free: 117.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003177/3.215, allocations: 1.718 MB / 1.453 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008365/3.216, allocations: 294.6 kB / 1.454 GB, free: 117.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.335e-06/3.216, allocations: 0 / 1.454 GB, free: 117.3 MB / 426.7 MB Notification: Performance of Templates: time 0.3715/3.587, allocations: 293.4 MB / 1.74 GB, free: 1.895 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.902739118784666]