Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.0009326/0.0009326, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.0009684/0.0009684, allocations: 164.3 kB / 24.91 MB, free: 8.766 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 0.9173/0.9173, allocations: 177 MB / 205.2 MB, free: 5.453 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.Fourbar2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.313e-05/1.429e-05, allocations: 6.312 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.009568/0.009583, allocations: 14.07 MB / 287.5 MB, free: 3.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1033/0.1128, allocations: 4.9 MB / 292.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001597/0.1144, allocations: 109.6 kB / 292.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.1181, allocations: 3.376 MB / 295.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003761/0.1218, allocations: 2.716 MB / 298.6 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.1231, allocations: 1.124 MB / 299.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00561/0.1287, allocations: 7.778 MB / 307.5 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002849/0.1316, allocations: 4.341 MB / 311.8 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.1352, allocations: 4.411 MB / 316.2 MB, free: 4.328 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.1378, allocations: 3.399 MB / 319.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005129/0.1383, allocations: 488 kB / 320.1 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.14, allocations: 1.456 MB / 321.5 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001672/0.1416, allocations: 3.055 MB / 324.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001322/0.143, allocations: 1.846 MB / 326.4 MB, free: 10.53 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004652/0.1476, allocations: 6.855 MB / 333.3 MB, free: 3.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1476, allocations: 0 / 333.3 MB, free: 3.984 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1476, allocations: 3.938 kB / 333.3 MB, free: 3.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.664e-05/0.1477, allocations: 4 kB / 333.3 MB, free: 3.977 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.006308/0.154, allocations: 6.547 MB / 339.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.154, allocations: 11.98 kB / 339.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004473/0.1585, allocations: 1.822 MB / 341.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003083/0.1616, allocations: 2.816 MB / 344.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.1617, allocations: 317.3 kB / 344.8 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005204/0.1622, allocations: 435.1 kB / 345.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006957/0.1692, allocations: 7.324 MB / 352.6 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.981e-05/0.1693, allocations: 55.52 kB / 352.6 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003712/0.1697, allocations: 203.8 kB / 352.8 MB, free: 412 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002308/0.172, allocations: 2.861 MB / 355.7 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005619/0.1776, allocations: 3.927 MB / 359.6 MB, free: 9.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.2096, allocations: 43.37 MB / 403 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004932/0.2145, allocations: 2.598 MB / 405.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008734/0.2154, allocations: 0.705 MB / 406.3 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008234/0.2237, allocations: 6.593 MB / 412.9 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.2237, allocations: 64.56 kB / 412.9 MB, free: 2.652 MB / 362.7 MB Notification: Performance of pre-optimization done (n=269): time 4.879e-06/0.2237, allocations: 0 / 412.9 MB, free: 2.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02034/0.244, allocations: 9.325 MB / 422.3 MB, free: 9.371 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.2441, allocations: 209.9 kB / 422.5 MB, free: 9.125 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/0.2475, allocations: 4.327 MB / 426.8 MB, free: 4.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.2476, allocations: 69.7 kB / 426.9 MB, free: 4.711 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001751/0.2494, allocations: 4.348 MB / 431.2 MB, free: 324 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.1095/0.3589, allocations: 1.154 MB / 432.4 MB, free: 115.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001941/0.3608, allocations: 1.664 MB / 434 MB, free: 115.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 2.537e-05/0.3609, allocations: 305.4 kB / 434.3 MB, free: 115.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.363, allocations: 1.254 MB / 435.6 MB, free: 115.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003418/0.3664, allocations: 6.268 MB / 441.8 MB, free: 108.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006896/0.3733, allocations: 8.21 MB / 450.1 MB, free: 101.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001547/0.3735, allocations: 55.75 kB / 450.1 MB, free: 101.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.008404/0.3819, allocations: 6.439 MB / 456.5 MB, free: 100 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.3819, allocations: 80.69 kB / 456.6 MB, free: 100 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/0.3821, allocations: 180.7 kB / 456.8 MB, free: 100 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.3839, allocations: 0.8286 MB / 457.6 MB, free: 100 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003194/0.3871, allocations: 1.978 MB / 459.6 MB, free: 99.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003574/0.3907, allocations: 4.351 MB / 464 MB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003124/0.3938, allocations: 370.3 kB / 464.3 MB, free: 96.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004039/0.3942, allocations: 449.8 kB / 464.8 MB, free: 96.77 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.001624/0.3958, allocations: 0.8316 MB / 465.6 MB, free: 96.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000442/0.3963, allocations: 318.5 kB / 465.9 MB, free: 96.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002723/0.399, allocations: 2.112 MB / 468 MB, free: 94.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.852e-05/0.3991, allocations: 55.44 kB / 468.1 MB, free: 94.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3991, allocations: 4 kB / 468.1 MB, free: 94.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.3991, allocations: 18.83 kB / 468.1 MB, free: 94.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007947/0.407, allocations: 6.331 MB / 474.4 MB, free: 89.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/0.407, allocations: 7.75 kB / 474.4 MB, free: 89.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.408, allocations: 393.7 kB / 474.8 MB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001624/0.4097, allocations: 0.8041 MB / 475.6 MB, free: 88.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.4098, allocations: 47.8 kB / 475.7 MB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.4122, allocations: 3.432 MB / 479.1 MB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4122, allocations: 11.94 kB / 479.1 MB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00338/0.4156, allocations: 3.079 MB / 482.2 MB, free: 82.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004755/0.4161, allocations: 431 kB / 482.6 MB, free: 81.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/0.4165, allocations: 53.16 kB / 482.7 MB, free: 81.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008893/0.4174, allocations: 50.73 kB / 482.7 MB, free: 81.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.4176, allocations: 185.5 kB / 482.9 MB, free: 81.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.4177, allocations: 64.03 kB / 483 MB, free: 81.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001092/0.4188, allocations: 1.582 MB / 484.5 MB, free: 80.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4188, allocations: 0 / 484.5 MB, free: 80.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004167/0.423, allocations: 1.559 MB / 486.1 MB, free: 78.53 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.0003588/0.4233, allocations: 200.8 kB / 486.3 MB, free: 78.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003963/0.4273, allocations: 3.89 MB / 490.2 MB, free: 74.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001487/0.4274, allocations: 116.5 kB / 490.3 MB, free: 74.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008742/0.4283, allocations: 0.9733 MB / 491.3 MB, free: 73.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001947/0.4302, allocations: 0.8636 MB / 492.1 MB, free: 72.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00989/0.4401, allocations: 11.34 MB / 0.4917 GB, free: 61.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.4414, allocations: 1.818 MB / 0.4934 GB, free: 59.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001529/0.4429, allocations: 0.7109 MB / 0.4941 GB, free: 58.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.444, allocations: 0.7355 MB / 0.4949 GB, free: 57.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.444, allocations: 0 / 0.4949 GB, free: 57.91 MB / 378.7 MB Notification: Performance of Templates: time 0.05828/0.5022, allocations: 50.75 MB / 0.5444 GB, free: 7.48 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.000142267905176]