Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00146/0.00146, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001201/0.001201, allocations: 159.9 kB / 25.6 MB, free: 8.59 MB / 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.004/1.004, allocations: 177.1 MB / 206.1 MB, free: 4.508 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 274.2 MB, free: 4.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.136e-05, allocations: 2.312 kB / 274.2 MB, free: 4.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01139/0.01141, allocations: 14.95 MB / 289.1 MB, free: 5.488 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008304/0.01971, allocations: 5.027 MB / 294.2 MB, free: 468 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002304/0.02202, allocations: 135.2 kB / 294.3 MB, free: 332 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005018/0.02703, allocations: 4.692 MB / 299 MB, free: 11.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.03341, allocations: 2.678 MB / 301.7 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002892/0.0363, allocations: 1.295 MB / 303 MB, free: 7.629 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.04634, allocations: 9.209 MB / 312.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007061/0.0534, allocations: 5.216 MB / 317.4 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01029/0.06368, allocations: 5.412 MB / 322.8 MB, free: 3.684 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005205/0.06889, allocations: 3.667 MB / 326.5 MB, free: 8 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.07041, allocations: 0.5079 MB / 327 MB, free: 15.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.0729, allocations: 1.455 MB / 328.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002855/0.07576, allocations: 3.171 MB / 331.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003309/0.07907, allocations: 1.998 MB / 333.6 MB, free: 8.859 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00771/0.08678, allocations: 6.769 MB / 340.4 MB, free: 2.066 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.08678, allocations: 0 / 340.4 MB, free: 2.066 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.08678, allocations: 4 kB / 340.4 MB, free: 2.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003074/0.08709, allocations: 0 / 340.4 MB, free: 2.062 MB / 314.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.1406/0.2277, allocations: 7.811 MB / 348.2 MB, free: 67.35 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.2278, allocations: 10.38 kB / 348.2 MB, free: 67.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008751/0.2365, allocations: 2.718 MB / 350.9 MB, free: 66.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005988/0.2425, allocations: 3.526 MB / 354.4 MB, free: 65.56 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.2427, allocations: 336.4 kB / 354.8 MB, free: 65.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000952/0.2436, allocations: 468.7 kB / 355.2 MB, free: 64.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/0.2553, allocations: 7.771 MB / 363 MB, free: 56.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001937/0.2555, allocations: 70.98 kB / 363.1 MB, free: 56.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006067/0.2561, allocations: 214.5 kB / 363.3 MB, free: 56.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001727/0.2579, allocations: 2.311 MB / 365.6 MB, free: 54.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00776/0.2656, allocations: 3.596 MB / 369.2 MB, free: 50.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04211/0.3077, allocations: 58.7 MB / 427.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007489/0.3152, allocations: 2.776 MB / 430.7 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001242/0.3165, allocations: 0.801 MB / 431.5 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.3266, allocations: 6.697 MB / 438.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.3266, allocations: 75.3 kB / 438.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=237): time 5.02e-06/0.3266, allocations: 0 / 438.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=349): time 0.105/0.4317, allocations: 32.44 MB / 470.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.4318, allocations: 240 kB / 470.9 MB, free: 11.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005556/0.4373, allocations: 4.818 MB / 475.7 MB, free: 6.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007432/0.4381, allocations: 77.7 kB / 475.8 MB, free: 6.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002426/0.4405, allocations: 4.637 MB / 480.4 MB, free: 1.492 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/0.4423, allocations: 1.403 MB / 481.8 MB, free: 80 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1378/0.58, allocations: 1.872 MB / 483.7 MB, free: 113.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.697e-05/0.5801, allocations: 484 kB / 484.2 MB, free: 113.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002911/0.583, allocations: 1.676 MB / 485.9 MB, free: 113.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004533/0.5875, allocations: 8.684 MB / 494.5 MB, free: 104.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007209/0.5947, allocations: 11 MB / 0.4937 GB, free: 95.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-05/0.5948, allocations: 47.44 kB / 0.4937 GB, free: 95.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.03359/0.6284, allocations: 12.15 MB / 0.5056 GB, free: 91.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.884e-05/0.6285, allocations: 76 kB / 0.5057 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/0.6286, allocations: 164.2 kB / 0.5058 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01937/0.648, allocations: 9.734 MB / 0.5153 GB, free: 82.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.6513, allocations: 1.684 MB / 0.517 GB, free: 81.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03326/0.6846, allocations: 21.49 MB / 0.538 GB, free: 59.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005914/0.6905, allocations: 355.8 kB / 0.5383 GB, free: 59.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007089/0.6912, allocations: 425.1 kB / 0.5387 GB, free: 59.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * 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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.002112/0.6933, allocations: 0.8234 MB / 0.5395 GB, free: 58.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001221/0.6945, allocations: 0.606 MB / 0.5401 GB, free: 57.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.028/0.7225, allocations: 7.99 MB / 0.5479 GB, free: 49.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-05/0.7226, allocations: 36 kB / 0.5479 GB, free: 49.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-05/0.7227, allocations: 28 kB / 0.548 GB, free: 49.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.777e-05/0.7227, allocations: 15.94 kB / 0.548 GB, free: 49.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04508/0.7678, allocations: 24.52 MB / 0.5719 GB, free: 22.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.022e-05/0.7678, allocations: 12 kB / 0.5719 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007985/0.7686, allocations: 296.4 kB / 0.5722 GB, free: 22.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01819/0.7868, allocations: 9.16 MB / 0.5812 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000583/0.7874, allocations: 71.98 kB / 0.5812 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03339/0.8208, allocations: 18.05 MB / 0.5989 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.8208, allocations: 11.94 kB / 0.5989 GB, free: 10.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03336/0.8542, allocations: 9.867 MB / 0.6085 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/0.8559, allocations: 0.4993 MB / 0.609 GB, free: 204 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/0.8571, allocations: 75.97 kB / 0.6091 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002043/0.8591, allocations: 67.98 kB / 0.6091 GB, free: 60 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/0.8602, allocations: 326.9 kB / 0.6095 GB, free: 15.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002439/0.8605, allocations: 73.81 kB / 0.6095 GB, free: 15.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.1629/1.023, allocations: 2.007 MB / 0.6115 GB, free: 120.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.023, allocations: 0 / 0.6115 GB, free: 120.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.009519/1.033, allocations: 2.463 MB / 0.6139 GB, free: 120.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009619/1.034, allocations: 228.3 kB / 0.6141 GB, free: 120.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01353/1.047, allocations: 7.838 MB / 0.6218 GB, free: 119.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/1.047, allocations: 0 / 0.6218 GB, free: 119.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008394/1.056, allocations: 4.149 MB / 0.6258 GB, free: 118.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.06, allocations: 0.6766 MB / 0.6265 GB, free: 118.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01779/1.077, allocations: 13.7 MB / 0.6398 GB, free: 112.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002197/1.08, allocations: 1.954 MB / 0.6418 GB, free: 111.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001809/1.081, allocations: 0.6507 MB / 0.6424 GB, free: 111.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009841/1.082, allocations: 0.7899 MB / 0.6432 GB, free: 110.8 MB / 410.7 MB Notification: Performance of SimCode: time 2.194e-06/1.082, allocations: 2.297 kB / 0.6432 GB, free: 110.8 MB / 410.7 MB Notification: Performance of Templates: time 0.2675/1.35, allocations: 143.5 MB / 0.7834 GB, free: 116 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 6.698609581682831]