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.00159/0.00159, allocations: 72.08 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.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.001633/0.001633, allocations: 142.9 kB / 24.97 MB, free: 8.379 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.9775/0.9775, allocations: 173.4 MB / 201.5 MB, free: 9.285 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.472e-06/1.472e-06, allocations: 0 / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.238e-05, allocations: 2.312 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0131/0.01312, allocations: 15.44 MB / 283.5 MB, free: 7.203 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00793/0.02105, allocations: 5.054 MB / 288.6 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.02232, allocations: 135.2 kB / 288.7 MB, free: 2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1117/0.134, allocations: 4.768 MB / 293.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00544/0.1394, allocations: 2.707 MB / 296.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001796/0.1412, allocations: 1.287 MB / 297.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00735/0.1486, allocations: 8.961 MB / 306.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003987/0.1526, allocations: 5.222 MB / 311.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003834/0.1564, allocations: 3.831 MB / 315.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003339/0.1597, allocations: 3.83 MB / 319.3 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008859/0.1606, allocations: 0.5195 MB / 319.8 MB, free: 3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.1622, allocations: 1.472 MB / 321.3 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001705/0.1639, allocations: 3.226 MB / 324.5 MB, free: 14.47 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001889/0.1658, allocations: 2.029 MB / 326.5 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005486/0.1713, allocations: 6.887 MB / 333.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1713, allocations: 0 / 333.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1713, allocations: 0 / 333.4 MB, free: 6.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001603/0.1715, allocations: 0 / 333.4 MB, free: 6.066 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.009353/0.1808, allocations: 8.266 MB / 341.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1808, allocations: 16.86 kB / 341.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01453/0.1954, allocations: 3.861 MB / 345.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01021/0.2056, allocations: 4.18 MB / 349.8 MB, free: 5.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.2058, allocations: 341 kB / 350.1 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007748/0.2066, allocations: 464.9 kB / 350.5 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.2194, allocations: 8.814 MB / 359.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001706/0.2196, allocations: 77.34 kB / 359.4 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004381/0.22, allocations: 210.4 kB / 359.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003193/0.2232, allocations: 2.831 MB / 362.5 MB, free: 8.453 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.2348, allocations: 5.333 MB / 367.8 MB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0478/0.2826, allocations: 59.19 MB / 427 MB, free: 6.926 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009214/0.2918, allocations: 3.84 MB / 430.8 MB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/0.2938, allocations: 1.499 MB / 432.3 MB, free: 1.523 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1284/0.4222, allocations: 7.609 MB / 439.9 MB, free: 122.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.563e-05/0.4223, allocations: 72.95 kB / 440 MB, free: 122.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 7.935e-06/0.4223, allocations: 0 / 440 MB, free: 122.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4755/0.8978, allocations: 199.2 MB / 0.6243 GB, free: 70.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.8979, allocations: 263.6 kB / 0.6245 GB, free: 69.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004391/0.9023, allocations: 4.492 MB / 0.6289 GB, free: 66.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001405/0.9037, allocations: 114 kB / 0.629 GB, free: 66.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.9054, allocations: 4.276 MB / 0.6332 GB, free: 64.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001982/0.9073, allocations: 2.201 MB / 0.6353 GB, free: 62.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002847/0.9102, allocations: 2.107 MB / 0.6374 GB, free: 60.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.146e-05/0.9102, allocations: 483.2 kB / 0.6379 GB, free: 60.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004992/0.9152, allocations: 3.841 MB / 0.6416 GB, free: 56.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006759/0.922, allocations: 10.08 MB / 0.6514 GB, free: 43.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01382/0.9358, allocations: 15.25 MB / 0.6663 GB, free: 26.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.958e-05/0.9359, allocations: 40 kB / 0.6664 GB, free: 26.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3246/1.26, allocations: 112.6 MB / 0.7763 GB, free: 58.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.133e-05/1.261, allocations: 79.55 kB / 0.7764 GB, free: 58.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/1.261, allocations: 139.4 kB / 0.7765 GB, free: 57.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08476/1.345, allocations: 57.04 MB / 0.8322 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003444/1.349, allocations: 1.571 MB / 0.8337 GB, free: 2.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2388/1.588, allocations: 61.47 MB / 0.8938 GB, free: 82.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008395/1.596, allocations: 1.803 MB / 0.8955 GB, free: 81.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001666/1.598, allocations: 0.5307 MB / 0.8961 GB, free: 80.88 MB / 394.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.003201/1.601, allocations: 0.8294 MB / 0.8969 GB, free: 80.26 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002272/1.603, allocations: 0.7149 MB / 0.8976 GB, free: 79.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2984/1.902, allocations: 109.5 MB / 1.005 GB, free: 95.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-05/1.902, allocations: 57.95 kB / 1.005 GB, free: 95.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001191/1.902, allocations: 60.66 kB / 1.005 GB, free: 95.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.263e-05/1.902, allocations: 23.3 kB / 1.005 GB, free: 95.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3487/2.251, allocations: 161.1 MB / 1.162 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.35e-05/2.251, allocations: 7.125 kB / 1.162 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/2.252, allocations: 333.5 kB / 1.162 GB, free: 105.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08141/2.333, allocations: 55.91 MB / 1.217 GB, free: 63.94 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001378/2.334, allocations: 99.98 kB / 1.217 GB, free: 63.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.238/2.573, allocations: 56.17 MB / 1.272 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/2.573, allocations: 9.359 kB / 1.272 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1789/2.751, allocations: 113 MB / 1.382 GB, free: 30.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/2.753, allocations: 0.5645 MB / 1.383 GB, free: 29.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00196/2.755, allocations: 98.91 kB / 1.383 GB, free: 29.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00588/2.761, allocations: 1.555 MB / 1.384 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003355/2.764, allocations: 0.5214 MB / 1.385 GB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006138/2.765, allocations: 136.7 kB / 1.385 GB, free: 27.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002676/2.767, allocations: 2.052 MB / 1.387 GB, free: 26.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/2.767, allocations: 0 / 1.387 GB, free: 26.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01131/2.779, allocations: 4.123 MB / 1.391 GB, free: 22.33 MB / 410.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.001368/2.78, allocations: 267.1 kB / 1.391 GB, free: 22.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02908/2.809, allocations: 20.2 MB / 1.411 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/2.809, allocations: 0 / 1.411 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1437/2.953, allocations: 14 MB / 1.425 GB, free: 118.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005462/2.958, allocations: 0.7256 MB / 1.425 GB, free: 118.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02946/2.988, allocations: 19.02 MB / 1.444 GB, free: 113.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004721/2.993, allocations: 2.246 MB / 1.446 GB, free: 113 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005418/2.998, allocations: 1.718 MB / 1.448 GB, free: 113 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001278/2.999, allocations: 291.5 kB / 1.448 GB, free: 113 MB / 410.7 MB Notification: Performance of SimCode: time 1.994e-06/2.999, allocations: 0 / 1.448 GB, free: 113 MB / 410.7 MB Notification: Performance of Templates: time 0.4573/3.457, allocations: 293.5 MB / 1.735 GB, free: 106.8 MB / 410.7 MB " [Timeout remaining time 657] 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: 9.376035335939378]