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.001447/0.001447, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001202/0.001202, allocations: 145.1 kB / 24.54 MB, free: 36 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 0.9336/0.9336, allocations: 173.3 MB / 201.1 MB, free: 9.004 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.914e-06/1.914e-06, allocations: 3.938 kB / 268 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.417e-05/2.608e-05, allocations: 2.312 kB / 268 MB, free: 6.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01646/0.01649, allocations: 14.57 MB / 282.6 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0103/0.02679, allocations: 4.752 MB / 287.3 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002749/0.02954, allocations: 107.5 kB / 287.4 MB, free: 2.785 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1201/0.1497, allocations: 3.401 MB / 290.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00621/0.1559, allocations: 2.742 MB / 293.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002056/0.1579, allocations: 1.117 MB / 294.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00836/0.1663, allocations: 7.664 MB / 302.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004664/0.1709, allocations: 4.246 MB / 306.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006052/0.177, allocations: 4.441 MB / 311 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003994/0.181, allocations: 3.574 MB / 314.6 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.1822, allocations: 493.3 kB / 315.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.1845, allocations: 1.479 MB / 316.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001789/0.1863, allocations: 3.082 MB / 319.7 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00205/0.1883, allocations: 1.878 MB / 321.5 MB, free: 1.098 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006517/0.1948, allocations: 6.941 MB / 328.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.1949, allocations: 0 / 328.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1949, allocations: 0 / 328.5 MB, free: 10.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000274/0.1951, allocations: 0 / 328.5 MB, free: 10.61 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.01051/0.2056, allocations: 7.951 MB / 336.4 MB, free: 2.742 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.2057, allocations: 12.92 kB / 336.4 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008981/0.2147, allocations: 4.583 MB / 341 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005041/0.2197, allocations: 3.489 MB / 344.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.2199, allocations: 318.8 kB / 344.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006407/0.2205, allocations: 439.5 kB / 345.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01112/0.2316, allocations: 9.012 MB / 354.3 MB, free: 296 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.2317, allocations: 52.38 kB / 354.3 MB, free: 268 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003937/0.2321, allocations: 213.7 kB / 354.5 MB, free: 116 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002606/0.2347, allocations: 3.158 MB / 357.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.246, allocations: 5.119 MB / 362.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04628/0.2922, allocations: 60.2 MB / 423 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006276/0.2985, allocations: 2.819 MB / 425.8 MB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/0.3, allocations: 1.024 MB / 426.8 MB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1281/0.428, allocations: 7.457 MB / 434.3 MB, free: 115.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/0.4281, allocations: 66.47 kB / 434.4 MB, free: 115.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=269): time 7.304e-06/0.4281, allocations: 0 / 434.4 MB, free: 115.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=300): time 0.0332/0.4613, allocations: 15.37 MB / 449.7 MB, free: 112.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.431e-05/0.4614, allocations: 219.4 kB / 450 MB, free: 112.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004869/0.4662, allocations: 4.848 MB / 454.8 MB, free: 111.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005081/0.4668, allocations: 67.58 kB / 454.9 MB, free: 111.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.4689, allocations: 4.835 MB / 459.7 MB, free: 108.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.4699, allocations: 1.214 MB / 460.9 MB, free: 108.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/0.4715, allocations: 1.901 MB / 462.8 MB, free: 107.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.561e-05/0.4716, allocations: 480.1 kB / 463.3 MB, free: 107.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.4733, allocations: 1.147 MB / 464.4 MB, free: 107.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003958/0.4772, allocations: 8.845 MB / 473.3 MB, free: 96.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007062/0.4843, allocations: 10.97 MB / 484.2 MB, free: 83.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001405/0.4844, allocations: 52 kB / 484.3 MB, free: 83.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01095/0.4954, allocations: 8.347 MB / 492.6 MB, free: 75.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.795e-05/0.4955, allocations: 84 kB / 492.7 MB, free: 75.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001425/0.4956, allocations: 181.6 kB / 492.9 MB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002189/0.4978, allocations: 1.025 MB / 493.9 MB, free: 74.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003605/0.5014, allocations: 2.109 MB / 496 MB, free: 72.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004299/0.5057, allocations: 5.847 MB / 0.4901 GB, free: 66.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003806/0.5095, allocations: 0.5809 MB / 0.4907 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004737/0.51, allocations: 0.5078 MB / 0.4912 GB, free: 65 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.001623/0.5116, allocations: 0.872 MB / 0.492 GB, free: 64.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005954/0.5122, allocations: 0.5436 MB / 0.4926 GB, free: 63.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003774/0.516, allocations: 2.839 MB / 0.4953 GB, free: 60.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.134e-05/0.516, allocations: 47.98 kB / 0.4954 GB, free: 60.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.516, allocations: 4 kB / 0.4954 GB, free: 60.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.516, allocations: 15.45 kB / 0.4954 GB, free: 60.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.528, allocations: 9.284 MB / 0.5045 GB, free: 51.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.528, allocations: 4.781 kB / 0.5045 GB, free: 51.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.5293, allocations: 0.5265 MB / 0.505 GB, free: 50.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001698/0.531, allocations: 0.7549 MB / 0.5057 GB, free: 49.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/0.5311, allocations: 60.09 kB / 0.5058 GB, free: 49.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.5342, allocations: 4.831 MB / 0.5105 GB, free: 44.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5342, allocations: 15.88 kB / 0.5105 GB, free: 44.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005063/0.5393, allocations: 4.249 MB / 0.5147 GB, free: 40.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008072/0.5401, allocations: 468.6 kB / 0.5151 GB, free: 39.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003733/0.5405, allocations: 51.94 kB / 0.5152 GB, free: 39.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.5415, allocations: 231.2 kB / 0.5154 GB, free: 39.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.5418, allocations: 177.5 kB / 0.5155 GB, free: 39.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.5419, allocations: 79.98 kB / 0.5156 GB, free: 39.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002039/0.544, allocations: 2.06 MB / 0.5176 GB, free: 37.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.544, allocations: 0 / 0.5176 GB, free: 37.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004438/0.5484, allocations: 1.593 MB / 0.5192 GB, free: 35.79 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.0004548/0.5489, allocations: 230.1 kB / 0.5194 GB, free: 35.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005865/0.5547, allocations: 4.681 MB / 0.524 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.5547, allocations: 4 kB / 0.524 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.5562, allocations: 1.291 MB / 0.5252 GB, free: 29.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.5585, allocations: 0.5464 MB / 0.5258 GB, free: 29.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01293/0.5714, allocations: 11.56 MB / 0.5371 GB, free: 17.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001393/0.5728, allocations: 1.834 MB / 0.5389 GB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0035/0.5763, allocations: 2.381 MB / 0.5412 GB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008012/0.5771, allocations: 332.5 kB / 0.5415 GB, free: 12.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.114e-06/0.5771, allocations: 0 / 0.5415 GB, free: 12.72 MB / 378.7 MB Notification: Performance of Templates: time 0.1661/0.7432, allocations: 48.31 MB / 0.5887 GB, free: 109.6 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: 4.43181340675801]