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.000935/0.000935, allocations: 85.05 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.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.0009338/0.0009338, allocations: 152.2 kB / 24.9 MB, free: 9.164 MB / 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 0.9032/0.9032, allocations: 173.4 MB / 201.5 MB, free: 9.172 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.583e-06/1.583e-06, allocations: 0 / 268.5 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.443e-05/2.601e-05, allocations: 2.312 kB / 268.5 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0144/0.01443, allocations: 14.16 MB / 282.7 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01154/0.02597, allocations: 4.902 MB / 287.6 MB, free: 2.965 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003226/0.02919, allocations: 119.4 kB / 287.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1262/0.1554, allocations: 3.331 MB / 291 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005747/0.1611, allocations: 2.729 MB / 293.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.163, allocations: 1.11 MB / 294.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007425/0.1704, allocations: 7.644 MB / 302.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003927/0.1744, allocations: 4.129 MB / 306.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004029/0.1784, allocations: 4.35 MB / 311 MB, free: 9.402 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002602/0.181, allocations: 3.411 MB / 314.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005339/0.1815, allocations: 488 kB / 314.9 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.1831, allocations: 1.511 MB / 316.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001248/0.1844, allocations: 3.084 MB / 319.5 MB, free: 2.777 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.186, allocations: 1.872 MB / 321.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005471/0.1914, allocations: 6.94 MB / 328.3 MB, free: 10.49 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1914, allocations: 4 kB / 328.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1914, allocations: 0 / 328.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002323/0.1917, allocations: 4 kB / 328.3 MB, free: 10.48 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.007082/0.1987, allocations: 6.579 MB / 334.9 MB, free: 4.414 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.1988, allocations: 12.92 kB / 334.9 MB, free: 4.402 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00461/0.2034, allocations: 1.824 MB / 336.7 MB, free: 2.664 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003113/0.2065, allocations: 2.828 MB / 339.5 MB, free: 24 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.2067, allocations: 319.4 kB / 339.8 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005029/0.2072, allocations: 427.8 kB / 340.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007172/0.2143, allocations: 7.317 MB / 347.6 MB, free: 7.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-05/0.2144, allocations: 62.83 kB / 347.6 MB, free: 7.781 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003558/0.2148, allocations: 207.1 kB / 347.8 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/0.217, allocations: 2.855 MB / 350.7 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006303/0.2233, allocations: 3.935 MB / 354.6 MB, free: 1.133 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.033/0.2563, allocations: 43.37 MB / 398 MB, free: 5.422 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004991/0.2613, allocations: 2.587 MB / 400.6 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000826/0.2621, allocations: 0.7081 MB / 401.3 MB, free: 2.074 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008073/0.2702, allocations: 6.593 MB / 407.9 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.2703, allocations: 68.5 kB / 408 MB, free: 11.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 4.318e-06/0.2703, allocations: 0 / 408 MB, free: 11.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02001/0.2903, allocations: 9.31 MB / 417.3 MB, free: 2.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.411e-05/0.2903, allocations: 209.9 kB / 417.5 MB, free: 1.863 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003688/0.294, allocations: 4.339 MB / 421.8 MB, free: 13.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.2942, allocations: 69.69 kB / 421.9 MB, free: 13.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.2959, allocations: 4.344 MB / 426.2 MB, free: 9.047 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008192/0.2967, allocations: 1.163 MB / 427.4 MB, free: 7.875 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001353/0.2981, allocations: 1.661 MB / 429.1 MB, free: 6.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.375e-05/0.2981, allocations: 309 kB / 429.4 MB, free: 5.895 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.2999, allocations: 1.252 MB / 430.6 MB, free: 4.633 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1282/0.4281, allocations: 6.264 MB / 436.9 MB, free: 110.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006875/0.435, allocations: 8.217 MB / 445.1 MB, free: 103.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/0.4351, allocations: 50.97 kB / 445.1 MB, free: 103.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.009645/0.4448, allocations: 6.439 MB / 451.6 MB, free: 101.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.569e-05/0.4448, allocations: 83.91 kB / 451.7 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001423/0.445, allocations: 178.7 kB / 451.8 MB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001794/0.4468, allocations: 0.8332 MB / 452.7 MB, free: 101.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003489/0.4503, allocations: 2.074 MB / 454.7 MB, free: 101.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.4537, allocations: 4.361 MB / 459.1 MB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003282/0.457, allocations: 371.6 kB / 459.5 MB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000396/0.4574, allocations: 446 kB / 459.9 MB, free: 98.62 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.00178/0.4592, allocations: 0.8312 MB / 460.7 MB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004721/0.4597, allocations: 329.9 kB / 461.1 MB, free: 98.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002873/0.4625, allocations: 2.107 MB / 463.2 MB, free: 98.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-05/0.4626, allocations: 47.08 kB / 463.2 MB, free: 98.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4626, allocations: 7.844 kB / 463.2 MB, free: 98.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.4626, allocations: 10.78 kB / 463.2 MB, free: 98.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008147/0.4707, allocations: 6.342 MB / 469.6 MB, free: 95.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.4708, allocations: 4 kB / 469.6 MB, free: 95.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.4721, allocations: 0.6688 MB / 470.2 MB, free: 95.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00148/0.4736, allocations: 0.5744 MB / 470.8 MB, free: 94.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001569/0.4738, allocations: 48 kB / 470.9 MB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/0.4763, allocations: 3.443 MB / 474.3 MB, free: 91.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4763, allocations: 8 kB / 474.3 MB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003467/0.4798, allocations: 3.08 MB / 477.4 MB, free: 88.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005341/0.4803, allocations: 441.9 kB / 477.8 MB, free: 88.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00036/0.4807, allocations: 49.25 kB / 477.9 MB, free: 88.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000877/0.4816, allocations: 57.08 kB / 477.9 MB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.4818, allocations: 169.6 kB / 478.1 MB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.482, allocations: 64 kB / 478.2 MB, free: 88.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001149/0.4831, allocations: 1.593 MB / 479.7 MB, free: 86.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4831, allocations: 0 / 479.7 MB, free: 86.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004316/0.4874, allocations: 1.593 MB / 481.3 MB, free: 85.25 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.0003823/0.4878, allocations: 214.6 kB / 481.5 MB, free: 85.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004066/0.4919, allocations: 3.889 MB / 485.4 MB, free: 81.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001515/0.492, allocations: 112.5 kB / 485.5 MB, free: 81.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009458/0.493, allocations: 0.9669 MB / 486.5 MB, free: 80.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.4952, allocations: 0.864 MB / 487.4 MB, free: 79.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.5063, allocations: 11.34 MB / 498.7 MB, free: 67.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.5076, allocations: 1.817 MB / 0.4888 GB, free: 66.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001734/0.5093, allocations: 0.7112 MB / 0.4895 GB, free: 65.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/0.5104, allocations: 0.7433 MB / 0.4902 GB, free: 64.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.502e-06/0.5104, allocations: 0 / 0.4902 GB, free: 64.57 MB / 378.7 MB Notification: Performance of Templates: time 0.05979/0.5702, allocations: 50.91 MB / 0.5399 GB, free: 13.99 MB / 378.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 -s gbode -gbm=radauIIA3 -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: 4.083820213098079]