Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.001321/0.001321, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.0009684/0.0009684, allocations: 164.8 kB / 25.61 MB, free: 8.91 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.9191/0.9191, allocations: 177.1 MB / 206 MB, free: 4.504 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.14e-05, allocations: 2.312 kB / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01066/0.01068, allocations: 14.05 MB / 288.2 MB, free: 6.309 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007854/0.01853, allocations: 4.716 MB / 293 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00155/0.02008, allocations: 107.5 kB / 293.1 MB, free: 1.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003377/0.02346, allocations: 3.332 MB / 296.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004315/0.02778, allocations: 2.702 MB / 299.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.02927, allocations: 1.119 MB / 300.2 MB, free: 10.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007004/0.03627, allocations: 7.814 MB / 308 MB, free: 2.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004315/0.04058, allocations: 4.231 MB / 312.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004996/0.04558, allocations: 4.44 MB / 316.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003816/0.0494, allocations: 3.562 MB / 320.3 MB, free: 6.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006642/0.05006, allocations: 495.9 kB / 320.8 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.05189, allocations: 1.467 MB / 322.2 MB, free: 4.203 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001986/0.05387, allocations: 3.05 MB / 325.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002097/0.05597, allocations: 1.846 MB / 327.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006825/0.06279, allocations: 6.854 MB / 334 MB, free: 8.414 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.0628, allocations: 0 / 334 MB, free: 8.414 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.0628, allocations: 0 / 334 MB, free: 8.414 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001894/0.06299, allocations: 0 / 334 MB, free: 8.414 MB / 314.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.00966/0.07265, allocations: 7.39 MB / 341.4 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.07269, allocations: 8.031 kB / 341.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1315/0.2042, allocations: 2.779 MB / 344.1 MB, free: 64.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006434/0.2107, allocations: 3.056 MB / 347.2 MB, free: 64.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002696/0.2109, allocations: 316.6 kB / 347.5 MB, free: 64.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.212, allocations: 432 kB / 347.9 MB, free: 64.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/0.2226, allocations: 8.083 MB / 356 MB, free: 60.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001381/0.2228, allocations: 59.41 kB / 356.1 MB, free: 60.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/0.2232, allocations: 201.5 kB / 356.3 MB, free: 60.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002196/0.2254, allocations: 2.855 MB / 359.1 MB, free: 57.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007914/0.2333, allocations: 3.944 MB / 363.1 MB, free: 54.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03638/0.2697, allocations: 59.26 MB / 422.3 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005468/0.2751, allocations: 2.573 MB / 424.9 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.2762, allocations: 0.859 MB / 425.8 MB, free: 6.441 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.2863, allocations: 6.919 MB / 432.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.2863, allocations: 63.39 kB / 432.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=269): time 4.569e-06/0.2863, allocations: 0 / 432.7 MB, free: 15.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=300): time 0.02644/0.3128, allocations: 10.31 MB / 443.1 MB, free: 5.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.3129, allocations: 213.8 kB / 443.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004547/0.3174, allocations: 4.814 MB / 448.1 MB, free: 360 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002309/0.3176, allocations: 65.7 kB / 448.1 MB, free: 288 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002833/0.3205, allocations: 4.867 MB / 453 MB, free: 11.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/0.3216, allocations: 1.225 MB / 454.2 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002227/0.3238, allocations: 1.938 MB / 456.2 MB, free: 8.188 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3239, allocations: 476.8 kB / 456.6 MB, free: 7.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.3257, allocations: 1.032 MB / 457.7 MB, free: 6.684 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00534/0.331, allocations: 8.763 MB / 466.4 MB, free: 10.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008091/0.3391, allocations: 10.6 MB / 477 MB, free: 12.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/0.3392, allocations: 52 kB / 477.1 MB, free: 12.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.01104/0.3503, allocations: 7.564 MB / 484.7 MB, free: 4.699 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.038e-05/0.3503, allocations: 82.34 kB / 484.7 MB, free: 4.621 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/0.3505, allocations: 181.3 kB / 484.9 MB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002339/0.3528, allocations: 0.8389 MB / 485.8 MB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003733/0.3566, allocations: 1.973 MB / 487.7 MB, free: 1.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.151/0.5076, allocations: 5.556 MB / 493.3 MB, free: 111.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00566/0.5132, allocations: 367.6 kB / 493.6 MB, free: 111.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001182/0.5144, allocations: 452.1 kB / 494.1 MB, free: 111.4 MB / 394.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.002429/0.5168, allocations: 0.8645 MB / 494.9 MB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009612/0.5178, allocations: 0.55 MB / 495.5 MB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004014/0.5218, allocations: 2.42 MB / 497.9 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.305e-05/0.5219, allocations: 56.08 kB / 498 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.5219, allocations: 3.906 kB / 498 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.5219, allocations: 19.53 kB / 498 MB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01024/0.5321, allocations: 7.125 MB / 0.4933 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.5321, allocations: 10.75 kB / 0.4933 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.5333, allocations: 398.3 kB / 0.4937 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001644/0.5349, allocations: 0.5715 MB / 0.4942 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.5351, allocations: 56.83 kB / 0.4943 GB, free: 110.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002942/0.538, allocations: 4.594 MB / 0.4988 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.538, allocations: 7.5 kB / 0.4988 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/0.5426, allocations: 3.685 MB / 0.5024 GB, free: 105.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007282/0.5434, allocations: 456.7 kB / 0.5028 GB, free: 105.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004127/0.5438, allocations: 56.42 kB / 0.5029 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009852/0.5448, allocations: 53.09 kB / 0.5029 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/0.5451, allocations: 174.8 kB / 0.5031 GB, free: 105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.5452, allocations: 61.03 kB / 0.5031 GB, free: 104.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001701/0.5469, allocations: 1.903 MB / 0.505 GB, free: 104.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.5469, allocations: 3.875 kB / 0.505 GB, free: 104.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00497/0.5518, allocations: 1.563 MB / 0.5065 GB, free: 104.4 MB / 394.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.0004231/0.5523, allocations: 212.9 kB / 0.5067 GB, free: 104.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004888/0.5572, allocations: 4.329 MB / 0.511 GB, free: 102.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.5572, allocations: 4 kB / 0.511 GB, free: 102.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.5584, allocations: 1.17 MB / 0.5121 GB, free: 101.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.5604, allocations: 0.5313 MB / 0.5126 GB, free: 101 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/0.5725, allocations: 11.49 MB / 0.5238 GB, free: 90.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001361/0.5738, allocations: 1.836 MB / 0.5256 GB, free: 88.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001862/0.5757, allocations: 0.7078 MB / 0.5263 GB, free: 87.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/0.5768, allocations: 0.7871 MB / 0.5271 GB, free: 87.02 MB / 394.7 MB Notification: Performance of SimCode: time 2.184e-06/0.5768, allocations: 0 / 0.5271 GB, free: 87.02 MB / 394.7 MB Notification: Performance of Templates: time 0.06555/0.6424, allocations: 52.05 MB / 0.5779 GB, free: 35.68 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.735758200287819]