Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0007735/0.0007735, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001805, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006909/0.0006909, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008897/0.001581, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9974/0.9974, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09817/1.096, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.833e-05/1.974e-05, allocations: 5.688 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01172/0.01174, allocations: 15.12 MB / 259.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.02247, allocations: 5.301 MB / 265.1 MB, free: 9.719 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002167/0.02463, allocations: 139.2 kB / 265.3 MB, free: 9.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004456/0.02909, allocations: 4.504 MB / 269.8 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003972/0.03306, allocations: 2.643 MB / 272.4 MB, free: 2.406 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.03462, allocations: 1.201 MB / 273.6 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1327/0.1673, allocations: 8.406 MB / 282 MB, free: 1.363 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004968/0.1722, allocations: 4.676 MB / 286.7 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006663/0.1789, allocations: 5.038 MB / 291.7 MB, free: 68 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003578/0.1825, allocations: 3.492 MB / 295.2 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009177/0.1834, allocations: 0.5106 MB / 295.7 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001985/0.1854, allocations: 1.488 MB / 297.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00194/0.1873, allocations: 2.842 MB / 300.1 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.1895, allocations: 1.617 MB / 301.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005025/0.1945, allocations: 6.264 MB / 307.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.556e-05/0.1945, allocations: 0 / 307.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1945, allocations: 0 / 307.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003131/0.1949, allocations: 4 kB / 307.9 MB, free: 6.043 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.009482/0.2043, allocations: 8.405 MB / 316.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.2044, allocations: 8.031 kB / 316.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004073/0.2084, allocations: 1.602 MB / 318 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003731/0.2122, allocations: 3.275 MB / 321.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001569/0.2123, allocations: 341.6 kB / 321.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005187/0.2129, allocations: 464 kB / 322 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007758/0.2206, allocations: 7.051 MB / 329.1 MB, free: 1.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/0.2207, allocations: 75.41 kB / 329.1 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003448/0.2211, allocations: 210.9 kB / 329.4 MB, free: 1.133 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001921/0.223, allocations: 2.184 MB / 331.5 MB, free: 14.97 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005546/0.2285, allocations: 3.629 MB / 335.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03252/0.2611, allocations: 43.02 MB / 378.2 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006083/0.2671, allocations: 2.781 MB / 381 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007669/0.2679, allocations: 0.6528 MB / 381.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007686/0.2756, allocations: 6.233 MB / 387.9 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.2756, allocations: 60.56 kB / 387.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of pre-optimization done (n=237): time 4.298e-06/0.2756, allocations: 0 / 387.9 MB, free: 7.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=347): time 0.09947/0.3751, allocations: 27.78 MB / 415.7 MB, free: 11.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.3752, allocations: 166.2 kB / 415.9 MB, free: 11.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004025/0.3792, allocations: 4.35 MB / 420.2 MB, free: 8.121 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003366/0.3796, allocations: 77.7 kB / 420.3 MB, free: 8.039 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.3813, allocations: 4.001 MB / 424.3 MB, free: 4.254 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008746/0.3822, allocations: 1.317 MB / 425.6 MB, free: 3.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/0.3837, allocations: 1.613 MB / 427.2 MB, free: 1.57 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.005e-05/0.3838, allocations: 305.1 kB / 427.5 MB, free: 1.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1241/0.5079, allocations: 1.775 MB / 429.3 MB, free: 123.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004363/0.5123, allocations: 6.31 MB / 435.6 MB, free: 117.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007259/0.5196, allocations: 9.174 MB / 444.8 MB, free: 111.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.829e-05/0.5196, allocations: 47.44 kB / 444.8 MB, free: 111.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=1133) (initialization): time 0.02889/0.5485, allocations: 10.65 MB / 455.5 MB, free: 109.6 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.55e-05/0.5486, allocations: 72.78 kB / 455.5 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.5487, allocations: 169.5 kB / 455.7 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01752/0.5663, allocations: 9.545 MB / 465.2 MB, free: 109 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00328/0.5695, allocations: 1.886 MB / 467.1 MB, free: 107.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02765/0.5972, allocations: 18.45 MB / 485.6 MB, free: 90.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005096/0.6023, allocations: 356.4 kB / 485.9 MB, free: 89.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005919/0.6029, allocations: 417.9 kB / 486.3 MB, free: 89.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 734 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (934): * Single equations (assignments): 927 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,77,47.9%), (5,46,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of prepare postOptimizeDAE: time 0.002109/0.605, allocations: 0.7864 MB / 487.1 MB, free: 88.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007421/0.6057, allocations: 381.1 kB / 487.5 MB, free: 88.42 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02278/0.6285, allocations: 7.176 MB / 494.7 MB, free: 81.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.586e-05/0.6285, allocations: 32.88 kB / 494.7 MB, free: 81.17 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.418e-05/0.6286, allocations: 24.88 kB / 494.7 MB, free: 81.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-05/0.6286, allocations: 19.94 kB / 494.7 MB, free: 81.13 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0333/0.6619, allocations: 15.98 MB / 0.4988 GB, free: 65.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.214e-05/0.6619, allocations: 16 kB / 0.4988 GB, free: 65.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.6633, allocations: 0.5605 MB / 0.4993 GB, free: 65.38 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.6644, allocations: 489.4 kB / 0.4998 GB, free: 65.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01601/0.6805, allocations: 9.065 MB / 0.5086 GB, free: 56.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004124/0.6809, allocations: 66.67 kB / 0.5087 GB, free: 56.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02367/0.7045, allocations: 15.13 MB / 0.5235 GB, free: 40.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.7045, allocations: 15.94 kB / 0.5235 GB, free: 40.83 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02629/0.7308, allocations: 8.806 MB / 0.5321 GB, free: 31.78 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001133/0.732, allocations: 71.98 kB / 0.5322 GB, free: 31.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001722/0.7337, allocations: 71.98 kB / 0.5322 GB, free: 31.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001017/0.7347, allocations: 306.9 kB / 0.5325 GB, free: 31.33 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002153/0.7349, allocations: 79.98 kB / 0.5326 GB, free: 31.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001668/0.7366, allocations: 1.686 MB / 0.5342 GB, free: 29.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7366, allocations: 0 / 0.5342 GB, free: 29.58 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006591/0.7432, allocations: 2.445 MB / 0.5366 GB, free: 27.14 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (167): * Single equations (assignments): 160 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,68,39.6%), (7,42,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,33)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005843/0.7438, allocations: 218.2 kB / 0.5368 GB, free: 26.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0115/0.7553, allocations: 6.543 MB / 0.5432 GB, free: 20.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002722/0.7555, allocations: 154.1 kB / 0.5434 GB, free: 20.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007388/0.7629, allocations: 3.923 MB / 0.5472 GB, free: 16.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004244/0.7672, allocations: 4.525 MB / 0.5516 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1345/0.9017, allocations: 13.47 MB / 0.5648 GB, free: 103.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001881/0.9035, allocations: 1.929 MB / 0.5667 GB, free: 103.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00171/0.9052, allocations: 0.6472 MB / 0.5673 GB, free: 103.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.9063, allocations: 0.7233 MB / 0.568 GB, free: 103.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/0.9063, allocations: 0.5625 kB / 0.568 GB, free: 103.5 MB / 394.7 MB Notification: Performance of Templates: time 0.2287/1.135, allocations: 137.9 MB / 0.7027 GB, free: 119.8 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Fourbar1/Fourbar1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.873141405172646]