Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.0009099/0.0009099, allocations: 82.59 kB / 21.42 MB, free: 3.07 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.0009003/0.0009003, allocations: 169 kB / 24.82 MB, free: 9.312 MB / 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/1, allocations: 177 MB / 205.1 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 273.3 MB, free: 1.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.37e-05/3.616e-05, allocations: 5.266 kB / 273.3 MB, free: 1.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01245/0.01248, allocations: 14.95 MB / 288.3 MB, free: 2.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1359/0.1484, allocations: 5.018 MB / 293.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/0.1507, allocations: 136.1 kB / 293.4 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005634/0.1563, allocations: 4.698 MB / 298.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00426/0.1606, allocations: 2.671 MB / 300.8 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.1625, allocations: 1.295 MB / 302.1 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006732/0.1692, allocations: 9.216 MB / 311.3 MB, free: 8.312 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004077/0.1733, allocations: 5.215 MB / 316.5 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004686/0.178, allocations: 5.409 MB / 321.9 MB, free: 15.14 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00393/0.1819, allocations: 3.667 MB / 325.6 MB, free: 11.76 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001179/0.1831, allocations: 0.5078 MB / 326.1 MB, free: 11.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.1849, allocations: 1.449 MB / 327.6 MB, free: 9.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001937/0.1868, allocations: 3.177 MB / 330.7 MB, free: 6.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002186/0.189, allocations: 1.995 MB / 332.7 MB, free: 4.852 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005273/0.1943, allocations: 6.771 MB / 339.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1943, allocations: 0 / 339.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1943, allocations: 0 / 339.5 MB, free: 14.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.157e-05/0.1944, allocations: 4 kB / 339.5 MB, free: 14.37 MB / 298.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.008283/0.2027, allocations: 7.814 MB / 347.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2027, allocations: 15.98 kB / 347.3 MB, free: 6.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006852/0.2095, allocations: 2.72 MB / 350.1 MB, free: 4.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003525/0.2131, allocations: 3.524 MB / 353.6 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.2132, allocations: 341.1 kB / 353.9 MB, free: 216 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004977/0.2137, allocations: 468.1 kB / 354.4 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00801/0.2217, allocations: 7.767 MB / 362.2 MB, free: 6.719 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001078/0.2219, allocations: 75.39 kB / 362.2 MB, free: 6.645 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000339/0.2222, allocations: 207.8 kB / 362.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/0.2244, allocations: 2.316 MB / 364.7 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006794/0.2312, allocations: 3.587 MB / 368.3 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/0.2727, allocations: 58.71 MB / 427 MB, free: 3.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006253/0.2789, allocations: 2.781 MB / 429.8 MB, free: 1.137 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000873/0.2798, allocations: 0.7939 MB / 430.6 MB, free: 336 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1347/0.4145, allocations: 6.708 MB / 437.3 MB, free: 114 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.4146, allocations: 62.5 kB / 437.4 MB, free: 114 MB / 378.7 MB Notification: Performance of pre-optimization done (n=237): time 4.378e-06/0.4146, allocations: 0 / 437.4 MB, free: 114 MB / 378.7 MB Notification: Performance of matching and sorting (n=349): time 0.09019/0.5048, allocations: 32.44 MB / 469.8 MB, free: 98.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/0.5048, allocations: 243.8 kB / 470.1 MB, free: 98.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003772/0.5086, allocations: 4.82 MB / 474.9 MB, free: 94.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003173/0.5089, allocations: 77.7 kB / 475 MB, free: 94.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001602/0.5105, allocations: 4.637 MB / 479.6 MB, free: 90.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008756/0.5114, allocations: 1.401 MB / 481 MB, free: 88.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/0.5131, allocations: 1.886 MB / 482.9 MB, free: 87.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.5132, allocations: 484.7 kB / 483.3 MB, free: 86.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/0.5153, allocations: 1.68 MB / 485 MB, free: 85.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003759/0.519, allocations: 8.674 MB / 493.7 MB, free: 73.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/0.5252, allocations: 11.02 MB / 0.4929 GB, free: 59.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.818e-05/0.5252, allocations: 44 kB / 0.4929 GB, free: 59.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.02984/0.5551, allocations: 12.15 MB / 0.5048 GB, free: 47.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.618e-05/0.5551, allocations: 72 kB / 0.5049 GB, free: 47.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.5552, allocations: 168.2 kB / 0.505 GB, free: 46.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01778/0.573, allocations: 9.727 MB / 0.5145 GB, free: 37.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003079/0.5761, allocations: 1.684 MB / 0.5162 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03077/0.6069, allocations: 21.5 MB / 0.5372 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005102/0.612, allocations: 359.6 kB / 0.5375 GB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005011/0.6125, allocations: 428 kB / 0.5379 GB, free: 12.8 MB / 378.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 {(21,67,29.3%), (17,35,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001946/0.6144, allocations: 0.8259 MB / 0.5387 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008247/0.6152, allocations: 0.606 MB / 0.5393 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02528/0.6405, allocations: 7.974 MB / 0.5471 GB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-05/0.6406, allocations: 39.94 kB / 0.5471 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.562e-05/0.6406, allocations: 24 kB / 0.5472 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.603e-05/0.6407, allocations: 18.23 kB / 0.5472 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1893/0.83, allocations: 24.53 MB / 0.5711 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/0.83, allocations: 11.69 kB / 0.5711 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00069/0.8307, allocations: 289.6 kB / 0.5714 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01719/0.8479, allocations: 9.165 MB / 0.5804 GB, free: 102.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003251/0.8482, allocations: 66.62 kB / 0.5804 GB, free: 102.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02667/0.8749, allocations: 18.06 MB / 0.5981 GB, free: 94.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.8749, allocations: 17.28 kB / 0.5981 GB, free: 94.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02712/0.902, allocations: 9.873 MB / 0.6077 GB, free: 89.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.9032, allocations: 0.5036 MB / 0.6082 GB, free: 89.09 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005424/0.9037, allocations: 63.98 kB / 0.6083 GB, free: 89.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001549/0.9053, allocations: 72 kB / 0.6084 GB, free: 88.96 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009224/0.9062, allocations: 311.6 kB / 0.6087 GB, free: 88.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/0.9064, allocations: 79.98 kB / 0.6087 GB, free: 88.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00204/0.9084, allocations: 2.007 MB / 0.6107 GB, free: 86.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.9084, allocations: 3.828 kB / 0.6107 GB, free: 86.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005798/0.9142, allocations: 2.471 MB / 0.6131 GB, free: 84.33 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 {(21,60,29.3%), (17,33,35.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,27)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004727/0.9147, allocations: 226.4 kB / 0.6133 GB, free: 84.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009826/0.9245, allocations: 7.835 MB / 0.621 GB, free: 76.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.814e-06/0.9245, allocations: 4 kB / 0.621 GB, free: 76.38 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006124/0.9307, allocations: 4.149 MB / 0.625 GB, free: 72.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.9331, allocations: 0.678 MB / 0.6257 GB, free: 71.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.9469, allocations: 13.69 MB / 0.6391 GB, free: 57.74 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.9485, allocations: 1.958 MB / 0.641 GB, free: 55.76 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001427/0.95, allocations: 0.6634 MB / 0.6416 GB, free: 55.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009185/0.9509, allocations: 0.7909 MB / 0.6424 GB, free: 54.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.493e-06/0.9509, allocations: 0 / 0.6424 GB, free: 54.3 MB / 394.7 MB Notification: Performance of Templates: time 0.2427/1.194, allocations: 140.4 MB / 0.7795 GB, free: 69.68 MB / 410.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.637678085826337]