Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.003241/0.003241, allocations: 84.06 kB / 21.19 MB, free: 3.379 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.0009673/0.0009673, allocations: 141.1 kB / 24.54 MB, free: 28 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.013/1.013, allocations: 173.4 MB / 201.1 MB, free: 9.328 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/2.982e-05, allocations: 6.25 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01157/0.01159, allocations: 14.59 MB / 282.6 MB, free: 7.766 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008986/0.02058, allocations: 4.741 MB / 287.3 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.02286, allocations: 107.5 kB / 287.4 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.139/0.1619, allocations: 3.402 MB / 290.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006641/0.1685, allocations: 2.741 MB / 293.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00218/0.1707, allocations: 1.108 MB / 294.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009235/0.1799, allocations: 7.67 MB / 302.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005402/0.1853, allocations: 4.24 MB / 306.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006748/0.1921, allocations: 3.402 MB / 310 MB, free: 9.684 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004394/0.1965, allocations: 3.637 MB / 313.6 MB, free: 7.957 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.1977, allocations: 0.4892 MB / 314.1 MB, free: 7.953 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002243/0.2, allocations: 1.483 MB / 315.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001766/0.2017, allocations: 3.098 MB / 318.7 MB, free: 3.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002165/0.2039, allocations: 1.881 MB / 320.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007165/0.2111, allocations: 6.962 MB / 327.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2111, allocations: 0 / 327.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2111, allocations: 0 / 327.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002447/0.2113, allocations: 0 / 327.5 MB, free: 11.41 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.01016/0.2215, allocations: 7.961 MB / 335.5 MB, free: 3.52 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.2215, allocations: 8.922 kB / 335.5 MB, free: 3.512 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009358/0.2309, allocations: 4.69 MB / 340.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00546/0.2363, allocations: 3.662 MB / 343.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.2365, allocations: 315.5 kB / 344.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006037/0.2371, allocations: 434.2 kB / 344.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.2489, allocations: 9.001 MB / 353.6 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.249, allocations: 65.58 kB / 353.7 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004099/0.2494, allocations: 206.5 kB / 353.9 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00294/0.2523, allocations: 3.213 MB / 357.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.2646, allocations: 5.209 MB / 362.3 MB, free: 8.484 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05942/0.324, allocations: 60.06 MB / 422.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.3341, allocations: 3.056 MB / 425.4 MB, free: 8.023 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002633/0.3367, allocations: 1.169 MB / 426.6 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1451/0.4818, allocations: 8.25 MB / 434.8 MB, free: 114.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.386e-05/0.4818, allocations: 68.58 kB / 434.9 MB, free: 114.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 6.763e-06/0.4818, allocations: 1.531 kB / 434.9 MB, free: 114.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.05985/0.5417, allocations: 27.2 MB / 462.1 MB, free: 110 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.5418, allocations: 211.1 kB / 462.3 MB, free: 109.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006007/0.5478, allocations: 4.716 MB / 467 MB, free: 106.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006075/0.5484, allocations: 69.14 kB / 467.1 MB, free: 106.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.5506, allocations: 4.744 MB / 471.8 MB, free: 103 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001314/0.552, allocations: 1.343 MB / 473.2 MB, free: 101.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002272/0.5542, allocations: 1.941 MB / 475.1 MB, free: 99.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.5543, allocations: 480.7 kB / 475.6 MB, free: 99.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003092/0.5574, allocations: 1.661 MB / 477.2 MB, free: 97.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005383/0.5628, allocations: 9.098 MB / 486.3 MB, free: 85.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01012/0.5729, allocations: 11.73 MB / 498.1 MB, free: 70.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001278/0.573, allocations: 48 kB / 498.1 MB, free: 70.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.02665/0.5997, allocations: 12.32 MB / 0.4985 GB, free: 57.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.43e-05/0.5997, allocations: 80 kB / 0.4985 GB, free: 57.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001447/0.5999, allocations: 172.9 kB / 0.4987 GB, free: 57.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01267/0.6126, allocations: 4.867 MB / 0.5035 GB, free: 52.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005131/0.6177, allocations: 2.102 MB / 0.5055 GB, free: 50.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.6295, allocations: 9.378 MB / 0.5147 GB, free: 41.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005398/0.6349, allocations: 0.6086 MB / 0.5153 GB, free: 40.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008859/0.6358, allocations: 0.5078 MB / 0.5158 GB, free: 39.96 MB / 378.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.002213/0.638, allocations: 0.8676 MB / 0.5166 GB, free: 39.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008486/0.6389, allocations: 0.5593 MB / 0.5172 GB, free: 38.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/0.6525, allocations: 7.254 MB / 0.5242 GB, free: 31.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.99e-05/0.6526, allocations: 55.75 kB / 0.5243 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.6526, allocations: 12 kB / 0.5243 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.993e-05/0.6526, allocations: 15.94 kB / 0.5243 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02521/0.6778, allocations: 15.75 MB / 0.5397 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-05/0.6778, allocations: 4 kB / 0.5397 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.6796, allocations: 0.5817 MB / 0.5403 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01075/0.6903, allocations: 4.268 MB / 0.5444 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003825/0.6907, allocations: 52 kB / 0.5445 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009274/0.7, allocations: 8.165 MB / 0.5525 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.7, allocations: 15.97 kB / 0.5525 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1706/0.8706, allocations: 8.346 MB / 0.5606 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.8721, allocations: 472.1 kB / 0.5611 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007557/0.8728, allocations: 55.45 kB / 0.5611 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001919/0.8748, allocations: 302.9 kB / 0.5614 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006158/0.8754, allocations: 203.6 kB / 0.5616 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002244/0.8756, allocations: 83.66 kB / 0.5617 GB, free: 109.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003504/0.8791, allocations: 2.018 MB / 0.5637 GB, free: 109.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8791, allocations: 3.906 kB / 0.5637 GB, free: 109.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007112/0.8862, allocations: 1.896 MB / 0.5655 GB, free: 109.1 MB / 394.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.0007599/0.887, allocations: 238 kB / 0.5658 GB, free: 109 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0101/0.8971, allocations: 5.874 MB / 0.5715 GB, free: 108.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/0.8971, allocations: 3.625 kB / 0.5715 GB, free: 108.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004229/0.9013, allocations: 1.964 MB / 0.5734 GB, free: 108.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002859/0.9042, allocations: 0.5404 MB / 0.5739 GB, free: 108.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/0.921, allocations: 12.51 MB / 0.5862 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001622/0.9226, allocations: 1.881 MB / 0.588 GB, free: 103.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003852/0.9265, allocations: 2.366 MB / 0.5903 GB, free: 103.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001011/0.9275, allocations: 341.9 kB / 0.5906 GB, free: 103.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.753e-06/0.9275, allocations: 0 / 0.5906 GB, free: 103.5 MB / 394.7 MB Notification: Performance of Templates: time 0.07922/1.007, allocations: 75.05 MB / 0.6639 GB, free: 33.84 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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: 5.064223773777485]