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.001523/0.001523, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001471/0.001471, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.543/1.543, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.12e-05/3.281e-05, allocations: 6.25 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.02027/0.0203, allocations: 13.8 MB / 281.1 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.03394, allocations: 4.944 MB / 286.1 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002932/0.03687, allocations: 135.2 kB / 286.2 MB, free: 3.762 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1423/0.1792, allocations: 4.624 MB / 290.8 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007776/0.1869, allocations: 2.699 MB / 293.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003206/0.1901, allocations: 1.291 MB / 294.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01222/0.2024, allocations: 8.971 MB / 303.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007861/0.2102, allocations: 5.202 MB / 309 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007796/0.218, allocations: 3.81 MB / 312.8 MB, free: 8.172 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005145/0.2232, allocations: 3.762 MB / 316.6 MB, free: 5.387 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.2244, allocations: 0.5283 MB / 317.1 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0029/0.2273, allocations: 1.48 MB / 318.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002423/0.2297, allocations: 3.206 MB / 321.8 MB, free: 352 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003946/0.2336, allocations: 2.033 MB / 323.8 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01645/0.2501, allocations: 10.61 MB / 334.4 MB, free: 4.199 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.2501, allocations: 8 kB / 334.4 MB, free: 4.191 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2501, allocations: 0 / 334.4 MB, free: 4.191 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003771/0.2505, allocations: 0 / 334.4 MB, free: 4.191 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.02289/0.2734, allocations: 7.866 MB / 342.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.2734, allocations: 8.922 kB / 342.3 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01709/0.2905, allocations: 3.949 MB / 346.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01273/0.3032, allocations: 4.667 MB / 350.9 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004072/0.3036, allocations: 342.2 kB / 351.3 MB, free: 3.684 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002157/0.3058, allocations: 464.2 kB / 351.7 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/0.339, allocations: 14.76 MB / 366.5 MB, free: 3.812 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002901/0.3393, allocations: 76.5 kB / 366.5 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001325/0.3406, allocations: 215.4 kB / 366.8 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006274/0.3469, allocations: 2.847 MB / 369.6 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03201/0.3789, allocations: 13.26 MB / 382.9 MB, free: 3.727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2507/0.6295, allocations: 54.84 MB / 437.7 MB, free: 90.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01749/0.647, allocations: 7.045 MB / 444.8 MB, free: 90.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005079/0.6521, allocations: 4.668 MB / 449.4 MB, free: 89.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01796/0.6701, allocations: 12.04 MB / 461.5 MB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.6701, allocations: 67.88 kB / 461.5 MB, free: 84.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=327): time 6.903e-06/0.6701, allocations: 3.656 kB / 461.5 MB, free: 84.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=573): time 1.969/2.639, allocations: 438.2 MB / 0.8786 GB, free: 55.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.022e-05/2.639, allocations: 265.7 kB / 0.8789 GB, free: 55.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006289/2.645, allocations: 5.189 MB / 0.8839 GB, free: 50.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001657/2.647, allocations: 109.7 kB / 0.884 GB, free: 50.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002231/2.649, allocations: 4.073 MB / 0.888 GB, free: 46.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002809/2.652, allocations: 2.068 MB / 0.89 GB, free: 44.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004311/2.656, allocations: 2.167 MB / 0.8922 GB, free: 42.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.642e-05/2.657, allocations: 305.1 kB / 0.8924 GB, free: 41.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01302/2.67, allocations: 11.35 MB / 0.9035 GB, free: 30.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1654/2.835, allocations: 15.55 MB / 0.9187 GB, free: 146.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03389/2.869, allocations: 27.99 MB / 0.9461 GB, free: 132.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001702/2.869, allocations: 37.78 kB / 0.9461 GB, free: 132.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.4787/3.348, allocations: 142.8 MB / 1.086 GB, free: 137.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001173/3.348, allocations: 64.91 kB / 1.086 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001698/3.348, allocations: 140.5 kB / 1.086 GB, free: 137.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1556/3.504, allocations: 76.58 MB / 1.161 GB, free: 86.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00482/3.508, allocations: 1.575 MB / 1.162 GB, free: 84.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3949/3.903, allocations: 205.3 MB / 1.363 GB, free: 38.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01444/3.918, allocations: 1.866 MB / 1.364 GB, free: 36.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003385/3.921, allocations: 0.531 MB / 1.365 GB, free: 35.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 623 * 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 (832): * Single equations (assignments): 825 * 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 {(21,163,34.9%), (17,101,42.9%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.007204/3.928, allocations: 3.09 MB / 1.368 GB, free: 32.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002941/3.931, allocations: 0.7153 MB / 1.369 GB, free: 32.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5113/4.443, allocations: 138 MB / 1.503 GB, free: 53.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.823e-05/4.443, allocations: 56 kB / 1.503 GB, free: 53.56 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002048/4.443, allocations: 61.03 kB / 1.503 GB, free: 53.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001272/4.443, allocations: 30.7 kB / 1.504 GB, free: 53.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5315/4.975, allocations: 204.2 MB / 1.703 GB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-05/4.975, allocations: 11.98 kB / 1.703 GB, free: 17.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/4.976, allocations: 347.3 kB / 1.703 GB, free: 17.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2964/5.273, allocations: 75.3 MB / 1.777 GB, free: 109.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001545/5.274, allocations: 104 kB / 1.777 GB, free: 109.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3782/5.652, allocations: 187.8 MB / 1.96 GB, free: 77.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.704e-06/5.652, allocations: 11.28 kB / 1.96 GB, free: 77.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4978/6.15, allocations: 154.6 MB / 2.111 GB, free: 73.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/6.152, allocations: 0.5746 MB / 2.112 GB, free: 73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002669/6.155, allocations: 93.62 kB / 2.112 GB, free: 72.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009436/6.164, allocations: 1.628 MB / 2.114 GB, free: 71.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004889/6.169, allocations: 0.5173 MB / 2.114 GB, free: 70.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001228/6.17, allocations: 141 kB / 2.114 GB, free: 70.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004394/6.175, allocations: 3.139 MB / 2.117 GB, free: 68.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/6.175, allocations: 3.844 kB / 2.117 GB, free: 68.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01518/6.19, allocations: 4.178 MB / 2.121 GB, free: 64.75 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 (166): * Single equations (assignments): 159 * 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 {(21,156,34.9%), (17,98,42.9%), (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.002109/6.192, allocations: 271.3 kB / 2.122 GB, free: 64.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.05514/6.247, allocations: 33.65 MB / 2.154 GB, free: 31.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/6.247, allocations: 0 / 2.154 GB, free: 31.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.181/6.428, allocations: 20.21 MB / 2.174 GB, free: 123.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007197/6.435, allocations: 0.7286 MB / 2.175 GB, free: 123.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04101/6.476, allocations: 27.67 MB / 2.202 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005923/6.482, allocations: 4.614 MB / 2.206 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004035/6.486, allocations: 1.979 MB / 2.208 GB, free: 117.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008564/6.487, allocations: 295.2 kB / 2.209 GB, free: 117.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.422e-06/6.487, allocations: 0 / 2.209 GB, free: 117.9 MB / 426.7 MB Notification: Performance of Templates: time 0.5784/7.066, allocations: 289.1 MB / 2.491 GB, free: 111.7 MB / 426.7 MB " [Timeout remaining time 653] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.72099024709314]