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.001052/0.001052, allocations: 78.28 kB / 21.42 MB, free: 3.07 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.0018/0.0018, allocations: 152.7 kB / 24.8 MB, free: 9.273 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.9554/0.9554, allocations: 173.3 MB / 201.4 MB, free: 9.25 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.413e-06/1.413e-06, allocations: 0 / 268.4 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.369e-05, allocations: 6.25 kB / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009734/0.009747, allocations: 14.1 MB / 282.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008427/0.01817, allocations: 4.721 MB / 287.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.01919, allocations: 111.5 kB / 287.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1122/0.1314, allocations: 3.344 MB / 290.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008604/0.14, allocations: 2.741 MB / 293.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.1423, allocations: 1.11 MB / 294.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008481/0.1508, allocations: 7.667 MB / 302.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004858/0.1556, allocations: 4.248 MB / 306.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006002/0.1616, allocations: 4.456 MB / 310.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003789/0.1654, allocations: 3.569 MB / 314.5 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.1666, allocations: 491 kB / 315 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001893/0.1685, allocations: 1.481 MB / 316.4 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001526/0.17, allocations: 3.087 MB / 319.5 MB, free: 2.855 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.1717, allocations: 1.867 MB / 321.4 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00563/0.1773, allocations: 6.945 MB / 328.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1773, allocations: 3.984 kB / 328.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.1773, allocations: 0 / 328.3 MB, free: 10.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002152/0.1775, allocations: 0 / 328.3 MB, free: 10.57 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.007788/0.1853, allocations: 7.426 MB / 335.8 MB, free: 3.641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1853, allocations: 12.92 kB / 335.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006714/0.1921, allocations: 2.786 MB / 338.6 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/0.1954, allocations: 3.051 MB / 341.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.1956, allocations: 315.5 kB / 341.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005144/0.1961, allocations: 439.3 kB / 342.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008288/0.2044, allocations: 8.076 MB / 350.4 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.459e-05/0.2045, allocations: 60.34 kB / 350.5 MB, free: 4.703 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003596/0.2048, allocations: 202.5 kB / 350.7 MB, free: 4.562 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002542/0.2074, allocations: 2.866 MB / 353.5 MB, free: 1.738 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006475/0.2138, allocations: 3.945 MB / 357.5 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04376/0.2576, allocations: 59.26 MB / 416.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006816/0.2644, allocations: 2.574 MB / 419.3 MB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.2659, allocations: 0.8557 MB / 420.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.2761, allocations: 6.934 MB / 427.1 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.398e-05/0.2762, allocations: 63.39 kB / 427.2 MB, free: 7.602 MB / 378.7 MB Notification: Performance of pre-optimization done (n=269): time 5.019e-06/0.2762, allocations: 0 / 427.2 MB, free: 7.602 MB / 378.7 MB Notification: Performance of matching and sorting (n=300): time 0.1454/0.4216, allocations: 10.32 MB / 437.5 MB, free: 119.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.4217, allocations: 219.1 kB / 437.7 MB, free: 119.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004877/0.4266, allocations: 4.832 MB / 442.5 MB, free: 118.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001998/0.4268, allocations: 63.8 kB / 442.6 MB, free: 118.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001997/0.4288, allocations: 4.866 MB / 447.5 MB, free: 116 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007812/0.4296, allocations: 1.224 MB / 448.7 MB, free: 115.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001756/0.4313, allocations: 1.94 MB / 450.6 MB, free: 115.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.797e-05/0.4314, allocations: 478.3 kB / 451.1 MB, free: 114.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001513/0.4329, allocations: 1.024 MB / 452.1 MB, free: 114.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003222/0.4361, allocations: 8.771 MB / 460.9 MB, free: 104.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005533/0.4416, allocations: 10.61 MB / 471.5 MB, free: 94.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.208e-05/0.4417, allocations: 57.64 kB / 471.6 MB, free: 94.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.008134/0.4498, allocations: 7.55 MB / 479.1 MB, free: 91.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.4499, allocations: 88.41 kB / 479.2 MB, free: 91.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001325/0.45, allocations: 183.5 kB / 479.4 MB, free: 91.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001767/0.4518, allocations: 0.8352 MB / 480.2 MB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002858/0.4546, allocations: 1.977 MB / 482.2 MB, free: 89.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003591/0.4582, allocations: 5.557 MB / 487.7 MB, free: 83.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003313/0.4615, allocations: 371.5 kB / 488.1 MB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003342/0.4619, allocations: 440 kB / 488.5 MB, free: 82.81 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.001431/0.4633, allocations: 0.8821 MB / 489.4 MB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005385/0.4638, allocations: 0.5399 MB / 490 MB, free: 81.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003014/0.4669, allocations: 2.418 MB / 492.4 MB, free: 79.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.399e-05/0.4669, allocations: 55.88 kB / 492.4 MB, free: 79.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4669, allocations: 4.688 kB / 492.4 MB, free: 79.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.4669, allocations: 15.48 kB / 492.5 MB, free: 79.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008717/0.4756, allocations: 7.125 MB / 499.6 MB, free: 72.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.4756, allocations: 4 kB / 499.6 MB, free: 72.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.4766, allocations: 411.5 kB / 500 MB, free: 72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.4781, allocations: 0.5719 MB / 0.4888 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001204/0.4782, allocations: 52 kB / 0.4889 GB, free: 71.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.4808, allocations: 4.6 MB / 0.4934 GB, free: 66.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4808, allocations: 8 kB / 0.4934 GB, free: 66.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003659/0.4845, allocations: 3.699 MB / 0.497 GB, free: 62.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005571/0.485, allocations: 456.5 kB / 0.4974 GB, free: 62.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003277/0.4853, allocations: 48 kB / 0.4975 GB, free: 62.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008921/0.4862, allocations: 52 kB / 0.4975 GB, free: 62.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.4865, allocations: 173.5 kB / 0.4977 GB, free: 61.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.4866, allocations: 64.86 kB / 0.4977 GB, free: 61.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001258/0.4878, allocations: 1.907 MB / 0.4996 GB, free: 60 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4878, allocations: 0 / 0.4996 GB, free: 60 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004222/0.492, allocations: 1.594 MB / 0.5012 GB, free: 58.4 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.0003589/0.4924, allocations: 227.3 kB / 0.5014 GB, free: 58.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.4965, allocations: 4.33 MB / 0.5056 GB, free: 53.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4965, allocations: 0 / 0.5056 GB, free: 53.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009898/0.4975, allocations: 1.169 MB / 0.5067 GB, free: 52.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.499, allocations: 0.5386 MB / 0.5073 GB, free: 52.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5104, allocations: 11.49 MB / 0.5185 GB, free: 40.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.5119, allocations: 1.83 MB / 0.5203 GB, free: 38.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002125/0.514, allocations: 0.7121 MB / 0.521 GB, free: 37.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/0.5154, allocations: 0.7871 MB / 0.5217 GB, free: 37.1 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5154, allocations: 4 kB / 0.5217 GB, free: 37.1 MB / 378.7 MB Notification: Performance of Templates: time 0.1668/0.6823, allocations: 51.02 MB / 0.5716 GB, free: 118.7 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.174523788038641]