Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001935/0.001935, allocations: 95.61 kB / 20.96 MB, free: 3.461 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.002037/0.002037, allocations: 161.6 kB / 24.27 MB, free: 156 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.547/1.547, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.033e-05/3.18e-05, allocations: 4.141 kB / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0195/0.01953, allocations: 14.44 MB / 286.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1217/0.1412, allocations: 4.726 MB / 291.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001991/0.1432, allocations: 110.6 kB / 291.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006056/0.1493, allocations: 3.379 MB / 295 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006102/0.1554, allocations: 2.69 MB / 297.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1573, allocations: 1.122 MB / 298.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008373/0.1657, allocations: 7.798 MB / 306.6 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003388/0.1691, allocations: 4.24 MB / 310.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003559/0.1727, allocations: 3.391 MB / 314.2 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003257/0.1759, allocations: 3.631 MB / 317.8 MB, free: 2.211 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006327/0.1765, allocations: 496 kB / 318.3 MB, free: 1.727 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001967/0.1785, allocations: 1.47 MB / 319.8 MB, free: 340 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002931/0.1814, allocations: 3.057 MB / 322.9 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002484/0.1839, allocations: 1.858 MB / 324.7 MB, free: 11.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01329/0.1972, allocations: 10.54 MB / 335.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1972, allocations: 0 / 335.3 MB, free: 1.371 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1972, allocations: 4 kB / 335.3 MB, free: 1.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002292/0.1975, allocations: 0 / 335.3 MB, free: 1.367 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01845/0.2159, allocations: 8.556 MB / 343.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.2159, allocations: 8.031 kB / 343.8 MB, free: 8.875 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01862/0.2346, allocations: 4.688 MB / 348.5 MB, free: 4.238 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01182/0.2464, allocations: 3.687 MB / 352.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003195/0.2467, allocations: 315.5 kB / 352.5 MB, free: 280 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/0.2481, allocations: 435.2 kB / 352.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02406/0.2721, allocations: 9.617 MB / 362.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000199/0.2723, allocations: 63.45 kB / 362.6 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006426/0.273, allocations: 199.4 kB / 362.8 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00593/0.2789, allocations: 3.223 MB / 366 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02081/0.2997, allocations: 5.836 MB / 371.9 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2732/0.5729, allocations: 68.24 MB / 440.1 MB, free: 66.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.5834, allocations: 3.092 MB / 443.2 MB, free: 66.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002466/0.5859, allocations: 1.193 MB / 444.4 MB, free: 66.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01812/0.604, allocations: 8.499 MB / 452.9 MB, free: 65.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.916e-05/0.6041, allocations: 67.55 kB / 453 MB, free: 65.06 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 8.757e-06/0.6041, allocations: 0 / 453 MB, free: 65.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.1185/0.7226, allocations: 27.41 MB / 480.4 MB, free: 52.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/0.7227, allocations: 213.5 kB / 480.6 MB, free: 51.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007409/0.7301, allocations: 5.947 MB / 486.5 MB, free: 46.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009412/0.7311, allocations: 73.7 kB / 486.6 MB, free: 46.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/0.7337, allocations: 5 MB / 491.6 MB, free: 41.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001885/0.7356, allocations: 1.441 MB / 493 MB, free: 39.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003102/0.7387, allocations: 2.271 MB / 495.3 MB, free: 37.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.389e-05/0.7388, allocations: 480.8 kB / 495.8 MB, free: 37.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00329/0.7421, allocations: 1.771 MB / 497.5 MB, free: 35.28 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005467/0.7475, allocations: 9.482 MB / 0.4951 GB, free: 22.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/0.759, allocations: 12.36 MB / 0.5072 GB, free: 6.957 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002322/0.7592, allocations: 48 kB / 0.5073 GB, free: 6.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.04073/0.8, allocations: 12.57 MB / 0.5195 GB, free: 10.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.8001, allocations: 80 kB / 0.5196 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002531/0.8004, allocations: 172 kB / 0.5198 GB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02791/0.8283, allocations: 4.92 MB / 0.5246 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008711/0.837, allocations: 2.109 MB / 0.5266 GB, free: 3.008 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02447/0.8615, allocations: 9.909 MB / 0.5363 GB, free: 8.848 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007679/0.8692, allocations: 0.6164 MB / 0.5369 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001605/0.8708, allocations: 0.5116 MB / 0.5374 GB, free: 7.723 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1094): * Single equations (assignments): 1086 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003476/0.8742, allocations: 0.9972 MB / 0.5384 GB, free: 6.711 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001583/0.8758, allocations: 0.5594 MB / 0.5389 GB, free: 6.148 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03039/0.9062, allocations: 7.348 MB / 0.5461 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001135/0.9063, allocations: 59.92 kB / 0.5462 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.708e-05/0.9064, allocations: 12 kB / 0.5462 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.617e-05/0.9064, allocations: 15.94 kB / 0.5462 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05702/0.9635, allocations: 17.21 MB / 0.563 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.026e-05/0.9635, allocations: 4 kB / 0.563 GB, free: 12.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003649/0.9672, allocations: 0.5811 MB / 0.5636 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0246/0.9918, allocations: 4.308 MB / 0.5678 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007181/0.9925, allocations: 56 kB / 0.5678 GB, free: 8.031 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02011/1.013, allocations: 8.573 MB / 0.5762 GB, free: 15.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/1.013, allocations: 11.94 kB / 0.5762 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03266/1.045, allocations: 8.604 MB / 0.5846 GB, free: 6.406 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.047, allocations: 476.6 kB / 0.5851 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001363/1.049, allocations: 52 kB / 0.5851 GB, free: 5.887 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003713/1.052, allocations: 307.5 kB / 0.5854 GB, free: 5.586 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008923/1.053, allocations: 205.4 kB / 0.5856 GB, free: 5.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003235/1.054, allocations: 91.81 kB / 0.5857 GB, free: 5.297 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005257/1.059, allocations: 2.416 MB / 0.5881 GB, free: 2.887 MB / 458.7 MB Notification: Performance of sort global known variables: time 8e-08/1.059, allocations: 0 / 0.5881 GB, free: 2.887 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009886/1.069, allocations: 1.859 MB / 0.5899 GB, free: 1.027 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000983/1.07, allocations: 222.5 kB / 0.5901 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1555/1.225, allocations: 6.308 MB / 0.5963 GB, free: 169.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.5e-05/1.225, allocations: 0.9688 kB / 0.5963 GB, free: 169.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004747/1.23, allocations: 2.08 MB / 0.5983 GB, free: 168.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003984/1.234, allocations: 0.5459 MB / 0.5988 GB, free: 168.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02403/1.258, allocations: 12.66 MB / 0.6112 GB, free: 164.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004628/1.263, allocations: 3.696 MB / 0.6148 GB, free: 164 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005724/1.268, allocations: 2.375 MB / 0.6171 GB, free: 164 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001589/1.27, allocations: 334.3 kB / 0.6174 GB, free: 163.9 MB / 458.7 MB Notification: Performance of SimCode: time 2.455e-06/1.27, allocations: 0 / 0.6174 GB, free: 163.9 MB / 458.7 MB Notification: Performance of Templates: time 0.1053/1.375, allocations: 74.9 MB / 0.6906 GB, free: 98.39 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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: 7.849202394019812]