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.00119/0.00119, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0008794/0.0008794, allocations: 172.5 kB / 24.91 MB, free: 8.258 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 0.8957/0.8957, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.442e-06/1.442e-06, allocations: 0 / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.505e-05, allocations: 4.703 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01671/0.01673, allocations: 15.01 MB / 288.5 MB, free: 2.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1339/0.1506, allocations: 5.235 MB / 293.7 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.1532, allocations: 135.6 kB / 293.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006114/0.1593, allocations: 4.68 MB / 298.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006142/0.1655, allocations: 2.67 MB / 301.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002189/0.1677, allocations: 1.287 MB / 302.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008548/0.1762, allocations: 9.175 MB / 311.7 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005338/0.1815, allocations: 5.013 MB / 316.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006453/0.188, allocations: 5.258 MB / 322 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005191/0.1932, allocations: 3.505 MB / 325.5 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.1947, allocations: 0.5117 MB / 326 MB, free: 11.6 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002842/0.1975, allocations: 1.494 MB / 327.5 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00279/0.2003, allocations: 3.172 MB / 330.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003169/0.2035, allocations: 1.994 MB / 332.6 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007795/0.2113, allocations: 6.766 MB / 339.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.2113, allocations: 4 kB / 339.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2113, allocations: 0 / 339.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001611/0.2115, allocations: 4 kB / 339.4 MB, free: 14.68 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.009747/0.2212, allocations: 7.055 MB / 346.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2213, allocations: 8.031 kB / 346.5 MB, free: 8.008 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004572/0.2258, allocations: 1.62 MB / 348.1 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004872/0.2307, allocations: 3.282 MB / 351.4 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.2309, allocations: 333.1 kB / 351.7 MB, free: 2.676 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006453/0.2315, allocations: 464.1 kB / 352.2 MB, free: 2.223 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009813/0.2413, allocations: 7.056 MB / 359.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.2415, allocations: 71.45 kB / 359.3 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/0.2419, allocations: 219.7 kB / 359.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002218/0.2441, allocations: 2.313 MB / 361.8 MB, free: 7.613 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007745/0.2518, allocations: 3.62 MB / 365.4 MB, free: 3.945 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04091/0.2928, allocations: 43.02 MB / 408.4 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007239/0.3, allocations: 2.846 MB / 411.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.3011, allocations: 0.651 MB / 411.9 MB, free: 3.875 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009981/0.3111, allocations: 6.272 MB / 418.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.965e-05/0.3111, allocations: 64.55 kB / 418.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 4.879e-06/0.3112, allocations: 4 kB / 418.3 MB, free: 13.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=347): time 0.2065/0.5177, allocations: 27.84 MB / 446.1 MB, free: 114.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.5177, allocations: 240.6 kB / 446.4 MB, free: 114.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003975/0.5217, allocations: 4.356 MB / 450.7 MB, free: 114 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006123/0.5223, allocations: 81.11 kB / 450.8 MB, free: 114 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001233/0.5235, allocations: 3.996 MB / 454.8 MB, free: 111.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001038/0.5246, allocations: 1.324 MB / 456.1 MB, free: 110.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/0.5262, allocations: 1.607 MB / 457.7 MB, free: 110.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.852e-05/0.5263, allocations: 307.9 kB / 458 MB, free: 109.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002494/0.5288, allocations: 1.788 MB / 459.8 MB, free: 109.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003401/0.5322, allocations: 6.307 MB / 466.1 MB, free: 102.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005227/0.5374, allocations: 8.63 MB / 474.7 MB, free: 92.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.161e-05/0.5375, allocations: 48 kB / 474.8 MB, free: 92.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.02873/0.5662, allocations: 10.62 MB / 485.4 MB, free: 81.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.188e-05/0.5663, allocations: 72 kB / 485.5 MB, free: 81.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001275/0.5664, allocations: 164 kB / 485.6 MB, free: 81.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01688/0.5833, allocations: 9.506 MB / 495.2 MB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00325/0.5865, allocations: 1.77 MB / 496.9 MB, free: 69.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02793/0.6145, allocations: 18.41 MB / 0.5033 GB, free: 51.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004707/0.6192, allocations: 359.8 kB / 0.5036 GB, free: 50.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009354/0.6201, allocations: 428 kB / 0.504 GB, free: 50.38 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 {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.002291/0.6224, allocations: 0.7713 MB / 0.5048 GB, free: 49.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001068/0.6235, allocations: 375.6 kB / 0.5051 GB, free: 49.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02654/0.65, allocations: 7.168 MB / 0.5121 GB, free: 41.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-05/0.6501, allocations: 43.98 kB / 0.5122 GB, free: 41.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.698e-05/0.6501, allocations: 28 kB / 0.5122 GB, free: 41.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.279e-05/0.6502, allocations: 15.94 kB / 0.5122 GB, free: 41.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05099/0.7012, allocations: 15.96 MB / 0.5278 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/0.7012, allocations: 8 kB / 0.5278 GB, free: 25.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001966/0.7032, allocations: 0.5415 MB / 0.5283 GB, free: 25.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02383/0.727, allocations: 9.012 MB / 0.5371 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000722/0.7278, allocations: 63.72 kB / 0.5372 GB, free: 16.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03497/0.7627, allocations: 15.1 MB / 0.5519 GB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.7627, allocations: 15.94 kB / 0.552 GB, free: 0.625 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1859/0.9486, allocations: 8.73 MB / 0.5605 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.9506, allocations: 487.1 kB / 0.5609 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001775/0.9524, allocations: 70.02 kB / 0.561 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002991/0.9553, allocations: 72.67 kB / 0.5611 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001826/0.9572, allocations: 309.5 kB / 0.5614 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004903/0.9577, allocations: 75.06 kB / 0.5615 GB, free: 107 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004571/0.9622, allocations: 1.694 MB / 0.5631 GB, free: 106.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9622, allocations: 2.969 kB / 0.5631 GB, free: 106.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01128/0.9735, allocations: 2.436 MB / 0.5655 GB, free: 106.9 MB / 394.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 {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001158/0.9747, allocations: 214 kB / 0.5657 GB, free: 106.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01613/0.9908, allocations: 6.412 MB / 0.572 GB, free: 106.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.000539/0.9913, allocations: 113 kB / 0.5721 GB, free: 106 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007951/0.9993, allocations: 3.123 MB / 0.5751 GB, free: 105.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004448/1.004, allocations: 0.9562 MB / 0.576 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01593/1.02, allocations: 13.22 MB / 0.589 GB, free: 100.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002204/1.022, allocations: 1.93 MB / 0.5908 GB, free: 100.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001714/1.024, allocations: 0.6572 MB / 0.5915 GB, free: 100.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/1.025, allocations: 0.7354 MB / 0.5922 GB, free: 100.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.824e-06/1.025, allocations: 0 / 0.5922 GB, free: 100.2 MB / 394.7 MB Notification: Performance of Templates: time 0.2439/1.269, allocations: 136.6 MB / 0.7256 GB, free: 123.3 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 -s gbode -gbm=radauIIA3 -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.228692461270839]