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.001429/0.001429, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.001826/0.001826, allocations: 159 kB / 25.74 MB, free: 8.93 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.9069/0.9069, allocations: 158.6 MB / 187.5 MB, free: 2.52 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.482e-06/1.482e-06, allocations: 0 / 251.1 MB, free: 7.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.607e-05/2.755e-05, allocations: 2.312 kB / 251.1 MB, free: 7.766 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01532/0.01535, allocations: 15.53 MB / 266.7 MB, free: 8.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.0254, allocations: 5.078 MB / 271.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002916/0.02831, allocations: 139.2 kB / 271.9 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006971/0.03528, allocations: 4.77 MB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006798/0.04208, allocations: 2.709 MB / 279.3 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00245/0.04453, allocations: 1.322 MB / 280.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01596/0.06049, allocations: 8.484 MB / 289.2 MB, free: 1.602 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006326/0.06682, allocations: 5.251 MB / 294.4 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004712/0.07153, allocations: 3.863 MB / 298.3 MB, free: 8.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003339/0.07487, allocations: 3.842 MB / 302.1 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004648/0.07533, allocations: 0.5234 MB / 302.6 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.07693, allocations: 1.467 MB / 304.1 MB, free: 2.551 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.07874, allocations: 3.234 MB / 307.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001447/0.08018, allocations: 2.037 MB / 309.4 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004877/0.08506, allocations: 6.902 MB / 316.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.08507, allocations: 0 / 316.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08507, allocations: 0 / 316.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.466e-05/0.08511, allocations: 0 / 316.3 MB, free: 6.34 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.009128/0.09424, allocations: 8.294 MB / 324.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.09428, allocations: 11.98 kB / 324.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00813/0.1024, allocations: 3.866 MB / 328.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/0.1075, allocations: 4.266 MB / 332.7 MB, free: 5.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.1077, allocations: 337.1 kB / 333 MB, free: 5.387 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005199/0.1082, allocations: 468 kB / 333.5 MB, free: 4.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01017/0.1183, allocations: 8.814 MB / 342.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001134/0.1185, allocations: 71.41 kB / 342.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003791/0.1188, allocations: 211.8 kB / 342.6 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002964/0.1218, allocations: 2.836 MB / 345.4 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009652/0.1314, allocations: 5.329 MB / 350.7 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1637/0.2952, allocations: 59.22 MB / 410 MB, free: 27.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009738/0.3049, allocations: 3.822 MB / 413.8 MB, free: 27.03 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002045/0.307, allocations: 1.501 MB / 415.3 MB, free: 26.55 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00911/0.3161, allocations: 7.629 MB / 422.9 MB, free: 19.27 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.3161, allocations: 71.19 kB / 423 MB, free: 19.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=326): time 7.154e-06/0.3161, allocations: 0 / 423 MB, free: 19.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=572): time 0.4867/0.8028, allocations: 199.3 MB / 0.6077 GB, free: 37.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.8029, allocations: 269.4 kB / 0.608 GB, free: 37.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004796/0.8077, allocations: 4.556 MB / 0.6124 GB, free: 33.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001635/0.8094, allocations: 118 kB / 0.6126 GB, free: 33.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.8114, allocations: 4.275 MB / 0.6167 GB, free: 30.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002317/0.8137, allocations: 2.199 MB / 0.6189 GB, free: 28.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002916/0.8167, allocations: 2.117 MB / 0.6209 GB, free: 27.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.8167, allocations: 476.8 kB / 0.6214 GB, free: 27.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004749/0.8215, allocations: 3.841 MB / 0.6252 GB, free: 23.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1504/0.9719, allocations: 10.07 MB / 0.635 GB, free: 112.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01632/0.9882, allocations: 15.25 MB / 0.6499 GB, free: 105.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.855e-05/0.9883, allocations: 36.72 kB / 0.6499 GB, free: 105.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.1794/1.168, allocations: 112.6 MB / 0.7598 GB, free: 14.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000112/1.168, allocations: 67.28 kB / 0.7599 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001686/1.168, allocations: 136 kB / 0.76 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.245/1.413, allocations: 57.05 MB / 0.8157 GB, free: 92.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003178/1.416, allocations: 1.564 MB / 0.8173 GB, free: 90.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0986/1.515, allocations: 61.48 MB / 0.8773 GB, free: 29.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008517/1.523, allocations: 1.822 MB / 0.8791 GB, free: 28.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.525, allocations: 0.531 MB / 0.8796 GB, free: 27.57 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.002809/1.527, allocations: 0.8293 MB / 0.8804 GB, free: 26.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/1.529, allocations: 0.7241 MB / 0.8811 GB, free: 26.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3146/1.844, allocations: 109.5 MB / 0.9881 GB, free: 48.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.464e-05/1.844, allocations: 60.23 kB / 0.9881 GB, free: 48.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001233/1.844, allocations: 60 kB / 0.9882 GB, free: 48.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.874e-05/1.844, allocations: 27.89 kB / 0.9882 GB, free: 48.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3293/2.173, allocations: 161.1 MB / 1.146 GB, free: 50.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.792e-05/2.173, allocations: 4 kB / 1.146 GB, free: 50.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/2.174, allocations: 331.2 kB / 1.146 GB, free: 50.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2235/2.398, allocations: 55.91 MB / 1.2 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001209/2.399, allocations: 99 kB / 1.201 GB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08918/2.488, allocations: 56.17 MB / 1.255 GB, free: 90.42 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/2.488, allocations: 10.62 kB / 1.255 GB, free: 90.41 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2999/2.788, allocations: 113 MB / 1.366 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004257/2.792, allocations: 2.687 MB / 1.368 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001203/2.794, allocations: 95.91 kB / 1.368 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004739/2.798, allocations: 1.569 MB / 1.37 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002779/2.801, allocations: 0.5191 MB / 1.37 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004455/2.802, allocations: 144.3 kB / 1.371 GB, free: 100.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002406/2.804, allocations: 2.1 MB / 1.373 GB, free: 99.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.804, allocations: 0 / 1.373 GB, free: 99.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00896/2.813, allocations: 4.122 MB / 1.377 GB, free: 99.84 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.0008893/2.814, allocations: 269.3 kB / 1.377 GB, free: 99.76 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02696/2.841, allocations: 20.19 MB / 1.397 GB, free: 86.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/2.841, allocations: 1.203 kB / 1.397 GB, free: 86.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01942/2.86, allocations: 14.01 MB / 1.41 GB, free: 74.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003762/2.864, allocations: 0.7393 MB / 1.411 GB, free: 73.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02227/2.886, allocations: 19.06 MB / 1.43 GB, free: 57.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002057/2.888, allocations: 2.254 MB / 1.432 GB, free: 55.72 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002447/2.891, allocations: 1.718 MB / 1.434 GB, free: 54.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005572/2.891, allocations: 290.6 kB / 1.434 GB, free: 53.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/2.891, allocations: 0 / 1.434 GB, free: 53.75 MB / 410.7 MB Notification: Performance of Templates: time 0.4635/3.355, allocations: 294.2 MB / 1.721 GB, free: 43.75 MB / 410.7 MB " [Timeout remaining time 657] 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.281156183918938]