Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002263/0.002263, allocations: 99.53 kB / 20.97 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002972/0.002972, allocations: 160.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.652/1.652, allocations: 177 MB / 204.4 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.148e-05/3.322e-05, allocations: 2.312 kB / 272.2 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.02065/0.02068, allocations: 14.44 MB / 286.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1334/0.1541, allocations: 4.726 MB / 291.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.1566, allocations: 107.6 kB / 291.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006856/0.1634, allocations: 3.387 MB / 294.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006049/0.1695, allocations: 2.696 MB / 297.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001972/0.1714, allocations: 1.114 MB / 298.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007919/0.1794, allocations: 7.802 MB / 306.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003553/0.1829, allocations: 4.24 MB / 310.7 MB, free: 7.574 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003943/0.1869, allocations: 3.395 MB / 314.1 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.1906, allocations: 3.63 MB / 317.7 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007961/0.1914, allocations: 496 kB / 318.2 MB, free: 1.711 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002197/0.1936, allocations: 1.468 MB / 319.7 MB, free: 328 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003382/0.1969, allocations: 3.057 MB / 322.7 MB, free: 13.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003063/0.2, allocations: 1.862 MB / 324.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0144/0.2144, allocations: 10.54 MB / 335.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2144, allocations: 3.938 kB / 335.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2144, allocations: 0 / 335.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.000261/0.2147, allocations: 0 / 335.1 MB, free: 1.348 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.01985/0.2345, allocations: 8.553 MB / 343.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.2346, allocations: 11.98 kB / 343.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01915/0.2537, allocations: 4.688 MB / 348.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01137/0.2651, allocations: 3.688 MB / 352.1 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003333/0.2654, allocations: 326.2 kB / 352.4 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001542/0.267, allocations: 429.8 kB / 352.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02257/0.2895, allocations: 9.612 MB / 362.4 MB, free: 5.195 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001899/0.2897, allocations: 63.45 kB / 362.5 MB, free: 5.133 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007743/0.2905, allocations: 205.4 kB / 362.7 MB, free: 4.992 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005774/0.2963, allocations: 3.215 MB / 365.9 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02222/0.3185, allocations: 5.838 MB / 371.7 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2542/0.5727, allocations: 68.24 MB / 440 MB, free: 66.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01655/0.5892, allocations: 3.093 MB / 443.1 MB, free: 66.24 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003622/0.5928, allocations: 1.192 MB / 444.3 MB, free: 66.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02069/0.6135, allocations: 8.499 MB / 452.8 MB, free: 65.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.6136, allocations: 64.64 kB / 452.8 MB, free: 64.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 6.192e-06/0.6136, allocations: 0 / 452.8 MB, free: 64.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=339): time 0.09528/0.7089, allocations: 27.41 MB / 480.2 MB, free: 52.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.709, allocations: 221.4 kB / 480.5 MB, free: 51.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006554/0.7155, allocations: 5.943 MB / 486.4 MB, free: 46.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006611/0.7162, allocations: 77.3 kB / 486.5 MB, free: 46.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/0.7183, allocations: 4.999 MB / 491.5 MB, free: 41.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001364/0.7196, allocations: 1.444 MB / 492.9 MB, free: 39.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002558/0.7222, allocations: 2.263 MB / 495.2 MB, free: 37.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.945e-05/0.7222, allocations: 476.8 kB / 495.7 MB, free: 37.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003068/0.7253, allocations: 1.771 MB / 497.4 MB, free: 35.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005353/0.7307, allocations: 9.486 MB / 0.495 GB, free: 22.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01065/0.7413, allocations: 12.37 MB / 0.5071 GB, free: 6.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001953/0.7415, allocations: 48 kB / 0.5072 GB, free: 6.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.03751/0.779, allocations: 12.57 MB / 0.5194 GB, free: 10.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000139/0.7792, allocations: 80 kB / 0.5195 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/0.7794, allocations: 176 kB / 0.5197 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02584/0.8052, allocations: 4.916 MB / 0.5245 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008096/0.8133, allocations: 2.109 MB / 0.5265 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0237/0.837, allocations: 9.897 MB / 0.5362 GB, free: 8.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008587/0.8456, allocations: 0.6164 MB / 0.5368 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002606/0.8482, allocations: 0.5078 MB / 0.5373 GB, free: 7.688 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1094): * Single equations (assignments): 1086 * 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,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004919/0.8531, allocations: 1.001 MB / 0.5383 GB, free: 6.676 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001705/0.8548, allocations: 0.5555 MB / 0.5388 GB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02943/0.8843, allocations: 7.359 MB / 0.546 GB, free: 14.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/0.8844, allocations: 55.92 kB / 0.5461 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.787e-05/0.8844, allocations: 8 kB / 0.5461 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.504e-05/0.8844, allocations: 19.88 kB / 0.5461 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05192/0.9364, allocations: 17.21 MB / 0.5629 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.326e-05/0.9364, allocations: 8.031 kB / 0.5629 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003401/0.9398, allocations: 0.5733 MB / 0.5635 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02354/0.9633, allocations: 4.304 MB / 0.5677 GB, free: 8.055 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007512/0.9641, allocations: 56 kB / 0.5677 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01967/0.9838, allocations: 8.59 MB / 0.5761 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/0.9838, allocations: 4 kB / 0.5761 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03215/1.016, allocations: 8.607 MB / 0.5845 GB, free: 6.363 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002439/1.018, allocations: 472.6 kB / 0.585 GB, free: 5.898 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001331/1.02, allocations: 52 kB / 0.585 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003403/1.023, allocations: 311.3 kB / 0.5853 GB, free: 5.547 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008646/1.024, allocations: 205.4 kB / 0.5855 GB, free: 5.344 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003142/1.024, allocations: 92.02 kB / 0.5856 GB, free: 5.254 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004659/1.029, allocations: 2.416 MB / 0.588 GB, free: 2.844 MB / 458.7 MB Notification: Performance of sort global known variables: time 7e-08/1.029, allocations: 0 / 0.588 GB, free: 2.844 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008607/1.038, allocations: 1.855 MB / 0.5898 GB, free: 0.9883 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (254): * Single equations (assignments): 246 * 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,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007426/1.038, allocations: 230.4 kB / 0.59 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1666/1.205, allocations: 6.309 MB / 0.5961 GB, free: 169.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/1.205, allocations: 2.125 kB / 0.5961 GB, free: 169.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004813/1.21, allocations: 2.076 MB / 0.5982 GB, free: 168.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004286/1.214, allocations: 0.5408 MB / 0.5987 GB, free: 168.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02631/1.24, allocations: 12.66 MB / 0.6111 GB, free: 164.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008139/1.248, allocations: 3.697 MB / 0.6147 GB, free: 164.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005949/1.254, allocations: 2.37 MB / 0.617 GB, free: 164 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001683/1.256, allocations: 342.2 kB / 0.6173 GB, free: 164 MB / 458.7 MB Notification: Performance of SimCode: time 1.833e-06/1.256, allocations: 3.781 kB / 0.6173 GB, free: 164 MB / 458.7 MB Notification: Performance of Templates: time 0.103/1.359, allocations: 74.88 MB / 0.6905 GB, free: 98.37 MB / 458.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar2/Fourbar2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.968662005034275]