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.0009425/0.0009425, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.0009564/0.0009564, allocations: 165 kB / 24.56 MB, free: 12 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.9585/0.9585, allocations: 177.1 MB / 205 MB, free: 5.613 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.282e-06/1.282e-06, allocations: 0 / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.804e-05, allocations: 2.312 kB / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01237/0.01238, allocations: 15.45 MB / 288.4 MB, free: 2.012 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1359/0.1483, allocations: 5.056 MB / 293.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002633/0.151, allocations: 138.9 kB / 293.6 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006027/0.157, allocations: 4.769 MB / 298.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004813/0.1618, allocations: 2.682 MB / 301.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.1636, allocations: 1.288 MB / 302.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007353/0.171, allocations: 9.214 MB / 311.6 MB, free: 8.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00494/0.1759, allocations: 5.218 MB / 316.8 MB, free: 4.168 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005757/0.1817, allocations: 5.392 MB / 322.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00369/0.1854, allocations: 3.673 MB / 325.9 MB, free: 11.82 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009674/0.1863, allocations: 0.5078 MB / 326.4 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001923/0.1883, allocations: 1.449 MB / 327.8 MB, free: 9.898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002185/0.1904, allocations: 3.177 MB / 331 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00231/0.1927, allocations: 1.995 MB / 333 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005912/0.1987, allocations: 6.773 MB / 339.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1987, allocations: 0 / 339.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1987, allocations: 0 / 339.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001779/0.1988, allocations: 4 kB / 339.8 MB, free: 14.42 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.01026/0.2091, allocations: 8.343 MB / 348.1 MB, free: 6.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.2091, allocations: 8.031 kB / 348.1 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008417/0.2176, allocations: 3.889 MB / 352 MB, free: 2.277 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004196/0.2218, allocations: 3.96 MB / 356 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.2219, allocations: 338.5 kB / 356.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005065/0.2224, allocations: 463 kB / 356.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/0.2328, allocations: 8.757 MB / 365.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.2329, allocations: 67.48 kB / 365.6 MB, free: 3.535 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003675/0.2333, allocations: 215.8 kB / 365.8 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002021/0.2353, allocations: 2.497 MB / 368.3 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008498/0.2438, allocations: 4.708 MB / 373 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1507/0.3945, allocations: 59.7 MB / 432.7 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008571/0.403, allocations: 3.151 MB / 435.8 MB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002011/0.405, allocations: 0.9494 MB / 436.8 MB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.4152, allocations: 7.295 MB / 444.1 MB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/0.4152, allocations: 67.39 kB / 444.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 5.861e-06/0.4152, allocations: 0 / 444.1 MB, free: 101.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.1313/0.5465, allocations: 76.94 MB / 0.5089 GB, free: 42.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.5466, allocations: 243.5 kB / 0.5091 GB, free: 41.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004769/0.5513, allocations: 4.878 MB / 0.5139 GB, free: 37.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004764/0.5518, allocations: 77.7 kB / 0.5139 GB, free: 37.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001682/0.5535, allocations: 4.6 MB / 0.5184 GB, free: 32.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009217/0.5544, allocations: 1.383 MB / 0.5198 GB, free: 31.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001692/0.5561, allocations: 1.854 MB / 0.5216 GB, free: 29.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.514e-05/0.5562, allocations: 480.7 kB / 0.5221 GB, free: 29.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002401/0.5586, allocations: 1.872 MB / 0.5239 GB, free: 27.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00411/0.5627, allocations: 8.829 MB / 0.5325 GB, free: 15.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007579/0.5702, allocations: 11.65 MB / 0.5439 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.954e-05/0.5703, allocations: 44 kB / 0.5439 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.1858/0.7561, allocations: 32.15 MB / 0.5753 GB, free: 119.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.7562, allocations: 74.03 kB / 0.5754 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001857/0.7564, allocations: 164.6 kB / 0.5755 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02554/0.782, allocations: 17.04 MB / 0.5922 GB, free: 116.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003193/0.7852, allocations: 1.753 MB / 0.5939 GB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04763/0.8328, allocations: 27.98 MB / 0.6212 GB, free: 93.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006534/0.8393, allocations: 1.034 MB / 0.6222 GB, free: 92.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000754/0.8401, allocations: 492 kB / 0.6227 GB, free: 92.36 MB / 410.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.002137/0.8422, allocations: 0.8288 MB / 0.6235 GB, free: 91.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/0.8433, allocations: 0.6057 MB / 0.6241 GB, free: 91.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0476/0.8909, allocations: 27.66 MB / 0.6511 GB, free: 63.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.095e-05/0.8909, allocations: 36 kB / 0.6511 GB, free: 63.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-05/0.891, allocations: 28 kB / 0.6512 GB, free: 63.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-05/0.891, allocations: 15.94 kB / 0.6512 GB, free: 63.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05807/0.9491, allocations: 44.92 MB / 0.6951 GB, free: 16.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.118e-05/0.9492, allocations: 8 kB / 0.6951 GB, free: 16.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008893/0.95, allocations: 339.5 kB / 0.6954 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1668/1.117, allocations: 16.43 MB / 0.7114 GB, free: 113.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007306/1.118, allocations: 70.8 kB / 0.7115 GB, free: 113.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03627/1.154, allocations: 23.83 MB / 0.7348 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.154, allocations: 12.12 kB / 0.7348 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04771/1.202, allocations: 29.76 MB / 0.7638 GB, free: 94.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.203, allocations: 0.5185 MB / 0.7644 GB, free: 94.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006117/1.204, allocations: 71.98 kB / 0.7644 GB, free: 94.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002232/1.206, allocations: 0.6519 MB / 0.7651 GB, free: 93.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/1.207, allocations: 312.1 kB / 0.7654 GB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002236/1.207, allocations: 98.11 kB / 0.7654 GB, free: 93.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002306/1.21, allocations: 2.177 MB / 0.7676 GB, free: 90.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.21, allocations: 3.938 kB / 0.7676 GB, free: 90.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006109/1.216, allocations: 2.469 MB / 0.77 GB, free: 88.42 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.0005639/1.216, allocations: 225.7 kB / 0.7702 GB, free: 88.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01399/1.23, allocations: 10.78 MB / 0.7807 GB, free: 77.76 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.23, allocations: 4 kB / 0.7807 GB, free: 77.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008928/1.239, allocations: 6.588 MB / 0.7872 GB, free: 71.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/1.242, allocations: 0.6755 MB / 0.7878 GB, free: 70.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01645/1.259, allocations: 13.94 MB / 0.8014 GB, free: 56.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/1.26, allocations: 1.954 MB / 0.8033 GB, free: 54.42 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00252/1.263, allocations: 1.86 MB / 0.8052 GB, free: 52.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004901/1.263, allocations: 300.5 kB / 0.8054 GB, free: 52.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/1.263, allocations: 4 kB / 0.8054 GB, free: 52.27 MB / 410.7 MB Notification: Performance of Templates: time 0.2484/1.511, allocations: 137.5 MB / 0.9398 GB, free: 57.39 MB / 410.7 MB " [Timeout remaining time 658] 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: 5.94201839203015]