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.001152/0.001152, allocations: 83.69 kB / 21.18 MB, free: 3.395 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.001075/0.001075, allocations: 165 kB / 24.56 MB, free: 24 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 0.931/0.931, allocations: 177.1 MB / 205 MB, free: 4.77 MB / 186.7 MB " [Timeout remaining time 179] 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.403e-06/1.403e-06, allocations: 0 / 273 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.876e-05/2.016e-05, allocations: 6.312 kB / 273 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01077/0.01079, allocations: 14.52 MB / 287.5 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1318/0.1425, allocations: 4.741 MB / 292.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002457/0.145, allocations: 108.5 kB / 292.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005074/0.1501, allocations: 3.394 MB / 295.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006035/0.1561, allocations: 2.705 MB / 298.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00205/0.1582, allocations: 1.11 MB / 299.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008814/0.167, allocations: 7.816 MB / 307.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004678/0.1717, allocations: 4.226 MB / 311.6 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006321/0.178, allocations: 4.444 MB / 316 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004016/0.182, allocations: 3.564 MB / 319.6 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.1831, allocations: 488 kB / 320.1 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002397/0.1855, allocations: 1.463 MB / 321.5 MB, free: 15.49 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002935/0.1884, allocations: 3.049 MB / 324.6 MB, free: 12.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002666/0.1911, allocations: 1.848 MB / 326.4 MB, free: 10.74 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008631/0.1997, allocations: 6.852 MB / 333.3 MB, free: 4.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.1997, allocations: 0 / 333.3 MB, free: 4.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1997, allocations: 3.938 kB / 333.3 MB, free: 4.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002318/0.2, allocations: 4 kB / 333.3 MB, free: 4.16 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.01275/0.2127, allocations: 7.914 MB / 341.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.2128, allocations: 12.03 kB / 341.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009495/0.2223, allocations: 4.581 MB / 345.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005593/0.2279, allocations: 3.496 MB / 349.3 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.228, allocations: 315.4 kB / 349.6 MB, free: 4.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000849/0.2289, allocations: 425.3 kB / 350 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.2421, allocations: 9.008 MB / 359 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/0.2422, allocations: 67.45 kB / 359.1 MB, free: 9.504 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005154/0.2427, allocations: 202.3 kB / 359.3 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002777/0.2455, allocations: 3.169 MB / 362.5 MB, free: 6.211 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01145/0.2569, allocations: 5.107 MB / 367.6 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04954/0.3065, allocations: 60.21 MB / 427.8 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006158/0.3126, allocations: 2.829 MB / 430.6 MB, free: 388 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1365/0.4492, allocations: 1.021 MB / 431.6 MB, free: 112.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/0.4611, allocations: 7.443 MB / 439.1 MB, free: 111.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.4612, allocations: 62.33 kB / 439.1 MB, free: 111.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=269): time 6.673e-06/0.4612, allocations: 2.094 kB / 439.1 MB, free: 111.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=300): time 0.02794/0.4891, allocations: 15.38 MB / 454.5 MB, free: 108 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.4892, allocations: 211.9 kB / 454.7 MB, free: 107.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004059/0.4932, allocations: 4.856 MB / 459.6 MB, free: 106.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001788/0.4934, allocations: 65.55 kB / 459.6 MB, free: 106.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001736/0.4951, allocations: 4.825 MB / 464.5 MB, free: 103 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000665/0.4958, allocations: 1.214 MB / 465.7 MB, free: 102 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/0.4972, allocations: 1.901 MB / 467.6 MB, free: 100.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.447e-05/0.4972, allocations: 476.8 kB / 468 MB, free: 99.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.4987, allocations: 1.151 MB / 469.2 MB, free: 98.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003137/0.5019, allocations: 8.852 MB / 478 MB, free: 86.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006142/0.508, allocations: 10.95 MB / 489 MB, free: 72.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/0.5081, allocations: 52 kB / 489.1 MB, free: 72.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01054/0.5186, allocations: 8.343 MB / 497.4 MB, free: 64.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.431e-05/0.5187, allocations: 84 kB / 497.5 MB, free: 64.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001015/0.5188, allocations: 180 kB / 497.7 MB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/0.521, allocations: 1.028 MB / 498.7 MB, free: 63.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003535/0.5245, allocations: 2.113 MB / 0.4891 GB, free: 61.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004707/0.5292, allocations: 5.859 MB / 0.4948 GB, free: 55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00419/0.5334, allocations: 0.5735 MB / 0.4953 GB, free: 54.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006102/0.534, allocations: 0.5093 MB / 0.4958 GB, free: 53.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1107): * Single equations (assignments): 1099 * 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,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002135/0.5362, allocations: 0.8664 MB / 0.4967 GB, free: 53.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007323/0.5369, allocations: 0.5438 MB / 0.4972 GB, free: 52.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003829/0.5407, allocations: 2.833 MB / 0.5 GB, free: 49.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.82e-05/0.5408, allocations: 55.98 kB / 0.5 GB, free: 49.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.5408, allocations: 4 kB / 0.5 GB, free: 49.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.5408, allocations: 11.95 kB / 0.5 GB, free: 49.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/0.5536, allocations: 9.285 MB / 0.5091 GB, free: 40.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.5536, allocations: 4 kB / 0.5091 GB, free: 40.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.5548, allocations: 0.5226 MB / 0.5096 GB, free: 39.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001718/0.5565, allocations: 0.7668 MB / 0.5104 GB, free: 38.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.5567, allocations: 52 kB / 0.5104 GB, free: 38.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003106/0.5598, allocations: 4.837 MB / 0.5152 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.5598, allocations: 11.94 kB / 0.5152 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005254/0.5651, allocations: 4.241 MB / 0.5193 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008332/0.5659, allocations: 472.6 kB / 0.5198 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004207/0.5663, allocations: 49.31 kB / 0.5198 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.5674, allocations: 231.7 kB / 0.52 GB, free: 28.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002726/0.5677, allocations: 181.5 kB / 0.5202 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5678, allocations: 77.95 kB / 0.5203 GB, free: 28.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002236/0.5701, allocations: 2.056 MB / 0.5223 GB, free: 26.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.5701, allocations: 0 / 0.5223 GB, free: 26.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004831/0.5749, allocations: 1.558 MB / 0.5238 GB, free: 24.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * 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 (236): * Single equations (assignments): 228 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004426/0.5753, allocations: 224.9 kB / 0.524 GB, free: 24.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005809/0.5811, allocations: 4.689 MB / 0.5286 GB, free: 19.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.5812, allocations: 8.125 kB / 0.5286 GB, free: 19.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.5825, allocations: 1.281 MB / 0.5299 GB, free: 18.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.5847, allocations: 0.5378 MB / 0.5304 GB, free: 18.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.5988, allocations: 11.55 MB / 0.5417 GB, free: 6.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/0.6004, allocations: 1.834 MB / 0.5434 GB, free: 4.402 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004064/0.6044, allocations: 2.383 MB / 0.5458 GB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.6055, allocations: 332.5 kB / 0.5461 GB, free: 1.691 MB / 378.7 MB Notification: Performance of SimCode: time 1.643e-06/0.6055, allocations: 0 / 0.5461 GB, free: 1.691 MB / 378.7 MB Notification: Performance of Templates: time 0.2081/0.8136, allocations: 48.17 MB / 0.5931 GB, free: 100.1 MB / 394.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.4080128101632]