Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001445, allocations: 75.7 kB / 21.69 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001013/0.001013, allocations: 166.6 kB / 24.99 MB, free: 9.328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9341/0.9341, allocations: 177 MB / 205.2 MB, free: 5.137 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 273 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.548e-05/1.664e-05, allocations: 2.312 kB / 273 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01152/0.01153, allocations: 15.4 MB / 288.4 MB, free: 1.996 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1158/0.1273, allocations: 5.041 MB / 293.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.1293, allocations: 135.4 kB / 293.6 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005371/0.1346, allocations: 4.756 MB / 298.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004101/0.1387, allocations: 2.674 MB / 301 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001888/0.1406, allocations: 1.299 MB / 302.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007466/0.1481, allocations: 9.204 MB / 311.5 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004276/0.1524, allocations: 5.222 MB / 316.7 MB, free: 4.199 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003849/0.1562, allocations: 3.814 MB / 320.5 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003879/0.1601, allocations: 3.824 MB / 324.4 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009715/0.1611, allocations: 0.5234 MB / 324.9 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001819/0.1629, allocations: 1.461 MB / 326.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.1648, allocations: 3.209 MB / 329.6 MB, free: 8.016 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002082/0.1669, allocations: 2.005 MB / 331.6 MB, free: 6.098 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006117/0.173, allocations: 6.829 MB / 338.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.173, allocations: 3.984 kB / 338.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.173, allocations: 0 / 338.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002357/0.1733, allocations: 0 / 338.4 MB, free: 15.56 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.01207/0.1853, allocations: 8.293 MB / 346.7 MB, free: 7.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1854, allocations: 15.98 kB / 346.7 MB, free: 7.301 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008381/0.1938, allocations: 3.987 MB / 350.7 MB, free: 3.352 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004932/0.1987, allocations: 4.173 MB / 354.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.1988, allocations: 341.7 kB / 355.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005297/0.1994, allocations: 464.9 kB / 355.6 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.2102, allocations: 8.82 MB / 364.5 MB, free: 4.496 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.2103, allocations: 63.52 kB / 364.5 MB, free: 4.434 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.2107, allocations: 210 kB / 364.7 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003042/0.2137, allocations: 2.833 MB / 367.6 MB, free: 1.449 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009464/0.2232, allocations: 5.327 MB / 372.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1849/0.4081, allocations: 59.18 MB / 432.1 MB, free: 107.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009079/0.4172, allocations: 3.831 MB / 435.9 MB, free: 107.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/0.4192, allocations: 1.496 MB / 437.4 MB, free: 107.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008103/0.4273, allocations: 7.6 MB / 445 MB, free: 106.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.4273, allocations: 73.52 kB / 445.1 MB, free: 106.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 4.408e-06/0.4273, allocations: 0 / 445.1 MB, free: 106.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4574/0.8847, allocations: 199.3 MB / 0.6293 GB, free: 79.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.594e-05/0.8848, allocations: 265.7 kB / 0.6295 GB, free: 78.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.8893, allocations: 4.48 MB / 0.6339 GB, free: 75.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001104/0.8904, allocations: 114.4 kB / 0.634 GB, free: 75.92 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00141/0.8918, allocations: 4.289 MB / 0.6382 GB, free: 73.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00146/0.8933, allocations: 2.186 MB / 0.6403 GB, free: 71.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00256/0.8959, allocations: 2.121 MB / 0.6424 GB, free: 70.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 3.439e-05/0.8959, allocations: 476.8 kB / 0.6428 GB, free: 69.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004683/0.9006, allocations: 3.838 MB / 0.6466 GB, free: 65.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006314/0.9069, allocations: 10.07 MB / 0.6564 GB, free: 53.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/0.9194, allocations: 15.24 MB / 0.6713 GB, free: 35.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.151e-05/0.9195, allocations: 43.84 kB / 0.6714 GB, free: 35.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.314/1.233, allocations: 112.6 MB / 0.7814 GB, free: 54.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.66e-05/1.234, allocations: 64 kB / 0.7814 GB, free: 54.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.492e-05/1.234, allocations: 143.9 kB / 0.7816 GB, free: 53.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08386/1.317, allocations: 57.06 MB / 0.8373 GB, free: 384 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003325/1.321, allocations: 1.571 MB / 0.8388 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2547/1.576, allocations: 61.51 MB / 0.8989 GB, free: 93.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007365/1.583, allocations: 1.809 MB / 0.9006 GB, free: 93.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009436/1.584, allocations: 0.5345 MB / 0.9012 GB, free: 93.22 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.002548/1.586, allocations: 0.8337 MB / 0.902 GB, free: 92.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001638/1.588, allocations: 0.7104 MB / 0.9027 GB, free: 92.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2871/1.875, allocations: 109.6 MB / 1.01 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/1.875, allocations: 59.77 kB / 1.01 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001028/1.875, allocations: 57.5 kB / 1.01 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.618e-05/1.875, allocations: 38.23 kB / 1.01 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3305/2.206, allocations: 161.1 MB / 1.167 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.647e-05/2.206, allocations: 7.656 kB / 1.167 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009593/2.207, allocations: 327.8 kB / 1.168 GB, free: 118.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0774/2.284, allocations: 55.92 MB / 1.222 GB, free: 92.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001015/2.285, allocations: 99.98 kB / 1.222 GB, free: 92.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08863/2.374, allocations: 56.21 MB / 1.277 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/2.374, allocations: 4.875 kB / 1.277 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3092/2.683, allocations: 113 MB / 1.388 GB, free: 59.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/2.685, allocations: 0.5707 MB / 1.388 GB, free: 59.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001431/2.686, allocations: 99.64 kB / 1.388 GB, free: 59.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006294/2.692, allocations: 1.558 MB / 1.39 GB, free: 58.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003445/2.696, allocations: 0.5222 MB / 1.39 GB, free: 57.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000663/2.697, allocations: 140.1 kB / 1.39 GB, free: 57.63 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002717/2.699, allocations: 2.05 MB / 1.392 GB, free: 56 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/2.699, allocations: 0 / 1.392 GB, free: 56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01039/2.71, allocations: 4.09 MB / 1.396 GB, free: 52.23 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.001006/2.711, allocations: 265.4 kB / 1.397 GB, free: 52.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03118/2.742, allocations: 20.21 MB / 1.416 GB, free: 34.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/2.742, allocations: 0 / 1.416 GB, free: 34.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01901/2.761, allocations: 14.01 MB / 1.43 GB, free: 21.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003459/2.764, allocations: 0.729 MB / 1.431 GB, free: 21.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1352/2.9, allocations: 19 MB / 1.449 GB, free: 122.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002958/2.903, allocations: 2.243 MB / 1.451 GB, free: 122.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002732/2.905, allocations: 1.716 MB / 1.453 GB, free: 122.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006788/2.906, allocations: 292.5 kB / 1.453 GB, free: 122.5 MB / 426.7 MB Notification: Performance of SimCode: time 2.174e-06/2.906, allocations: 0 / 1.453 GB, free: 122.5 MB / 426.7 MB Notification: Performance of Templates: time 0.4886/3.395, allocations: 293.4 MB / 1.74 GB, free: 122.1 MB / 426.7 MB " [Timeout remaining time 657] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.084693307988346]