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.0009061/0.0009061, 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.001138/0.001138, allocations: 174 kB / 24.92 MB, free: 8.766 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.8935/0.8935, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.352e-06/1.352e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.332e-05/1.467e-05, allocations: 2.312 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009715/0.009729, allocations: 14.06 MB / 287.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1096/0.1193, allocations: 4.903 MB / 292.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.121, allocations: 109.3 kB / 292.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003661/0.1246, allocations: 3.378 MB / 295.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005063/0.1297, allocations: 2.726 MB / 298.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.1315, allocations: 1.114 MB / 299.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006438/0.138, allocations: 7.785 MB / 307.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003665/0.1417, allocations: 4.344 MB / 311.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00408/0.1457, allocations: 4.397 MB / 316.3 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002823/0.1486, allocations: 3.407 MB / 319.7 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005633/0.1491, allocations: 492 kB / 320.1 MB, free: 0.582 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.1507, allocations: 1.456 MB / 321.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00188/0.1525, allocations: 3.056 MB / 324.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.1543, allocations: 1.839 MB / 326.5 MB, free: 10.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005321/0.1596, allocations: 6.857 MB / 333.4 MB, free: 3.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1596, allocations: 3.938 kB / 333.4 MB, free: 3.922 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1596, allocations: 4 kB / 333.4 MB, free: 3.918 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002397/0.1598, allocations: 0 / 333.4 MB, free: 3.918 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.007125/0.167, allocations: 6.55 MB / 339.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.167, allocations: 8.031 kB / 339.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004401/0.1714, allocations: 1.825 MB / 341.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.1744, allocations: 2.808 MB / 344.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/0.1745, allocations: 324.3 kB / 344.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005099/0.175, allocations: 431 kB / 345.3 MB, free: 8.676 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00679/0.1818, allocations: 7.325 MB / 352.6 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.254e-05/0.1819, allocations: 66.45 kB / 352.7 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003704/0.1823, allocations: 199.8 kB / 352.9 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002291/0.1846, allocations: 2.861 MB / 355.7 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005527/0.1901, allocations: 3.932 MB / 359.7 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02923/0.2193, allocations: 43.36 MB / 403 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004828/0.2242, allocations: 2.581 MB / 405.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007926/0.2249, allocations: 0.7119 MB / 406.3 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007615/0.2326, allocations: 6.597 MB / 412.9 MB, free: 2.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.2326, allocations: 64.5 kB / 413 MB, free: 2.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 4.047e-06/0.2326, allocations: 0 / 413 MB, free: 2.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.01953/0.2521, allocations: 9.324 MB / 422.3 MB, free: 9.332 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.172e-05/0.2522, allocations: 209.9 kB / 422.5 MB, free: 9.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00317/0.2554, allocations: 4.335 MB / 426.8 MB, free: 4.738 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/0.2555, allocations: 69.69 kB / 426.9 MB, free: 4.664 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001619/0.2571, allocations: 4.34 MB / 431.3 MB, free: 284 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1101/0.3672, allocations: 1.156 MB / 432.4 MB, free: 114.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002285/0.3695, allocations: 1.662 MB / 434.1 MB, free: 114.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.532e-05/0.3696, allocations: 306.2 kB / 434.4 MB, free: 113.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002767/0.3723, allocations: 1.257 MB / 435.6 MB, free: 113.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/0.3763, allocations: 6.265 MB / 441.9 MB, free: 107.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006493/0.3828, allocations: 8.211 MB / 450.1 MB, free: 100.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.927e-05/0.3829, allocations: 51.19 kB / 450.2 MB, free: 100.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.008913/0.3918, allocations: 6.437 MB / 456.6 MB, free: 98.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/0.3919, allocations: 81.81 kB / 456.7 MB, free: 98.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.392, allocations: 180.7 kB / 456.8 MB, free: 98.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.3937, allocations: 0.836 MB / 457.7 MB, free: 98.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002995/0.3967, allocations: 1.979 MB / 459.7 MB, free: 98.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003494/0.4002, allocations: 4.352 MB / 464 MB, free: 95.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.4029, allocations: 374.5 kB / 464.4 MB, free: 95.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003619/0.4032, allocations: 443.3 kB / 464.8 MB, free: 95.36 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.001379/0.4046, allocations: 0.828 MB / 465.6 MB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004411/0.4051, allocations: 322.2 kB / 466 MB, free: 94.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00268/0.4077, allocations: 2.11 MB / 468.1 MB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.773e-05/0.4078, allocations: 59.34 kB / 468.1 MB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4078, allocations: 6.875 kB / 468.1 MB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.4078, allocations: 10.78 kB / 468.1 MB, free: 93.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007519/0.4153, allocations: 6.333 MB / 474.5 MB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.4153, allocations: 8 kB / 474.5 MB, free: 88.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009804/0.4163, allocations: 397.5 kB / 474.9 MB, free: 87.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.4179, allocations: 0.7955 MB / 475.7 MB, free: 87.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.418, allocations: 54.81 kB / 475.7 MB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002402/0.4204, allocations: 3.435 MB / 479.2 MB, free: 83.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.4204, allocations: 11.94 kB / 479.2 MB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.4237, allocations: 3.083 MB / 482.2 MB, free: 80.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003263/0.424, allocations: 437.1 kB / 482.7 MB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003448/0.4244, allocations: 48 kB / 482.7 MB, free: 80.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008526/0.4252, allocations: 48.03 kB / 482.8 MB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.4254, allocations: 182.8 kB / 482.9 MB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.4255, allocations: 59.98 kB / 483 MB, free: 79.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000976/0.4265, allocations: 1.588 MB / 484.6 MB, free: 78.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.4265, allocations: 0 / 484.6 MB, free: 78.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003365/0.4299, allocations: 1.562 MB / 486.2 MB, free: 76.86 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.0003266/0.4302, allocations: 202.5 kB / 486.4 MB, free: 76.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003308/0.4335, allocations: 3.893 MB / 490.2 MB, free: 72.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001406/0.4337, allocations: 116.3 kB / 490.4 MB, free: 72.78 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/0.4345, allocations: 0.9578 MB / 491.3 MB, free: 71.83 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.4363, allocations: 0.8783 MB / 492.2 MB, free: 70.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008997/0.4453, allocations: 11.33 MB / 0.4917 GB, free: 59.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/0.4465, allocations: 1.815 MB / 0.4935 GB, free: 57.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001489/0.4479, allocations: 0.7145 MB / 0.4942 GB, free: 56.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/0.449, allocations: 0.7374 MB / 0.4949 GB, free: 56.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.449, allocations: 0 / 0.4949 GB, free: 56.21 MB / 378.7 MB Notification: Performance of Templates: time 0.05569/0.5047, allocations: 50.75 MB / 0.5445 GB, free: 5.809 MB / 378.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.163263632915914]