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.0009994/0.0009994, allocations: 91.5 kB / 21.2 MB, free: 3.379 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.001049/0.001049, allocations: 156.5 kB / 24.55 MB, free: 24 kB / 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.996/0.996, allocations: 177 MB / 204.8 MB, free: 5.199 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 1.613e-06/1.613e-06, allocations: 0 / 272.9 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.448e-05, allocations: 2.312 kB / 272.9 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01242/0.01244, allocations: 15.46 MB / 288.4 MB, free: 1.738 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1567/0.1691, allocations: 5.052 MB / 293.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002429/0.1715, allocations: 135.6 kB / 293.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00607/0.1776, allocations: 4.779 MB / 298.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005689/0.1833, allocations: 2.673 MB / 301 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.1855, allocations: 1.29 MB / 302.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00889/0.1944, allocations: 9.206 MB / 311.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005478/0.1998, allocations: 5.215 MB / 316.7 MB, free: 4.062 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004635/0.2045, allocations: 3.824 MB / 320.5 MB, free: 472 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004467/0.2089, allocations: 3.819 MB / 324.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.2102, allocations: 0.5195 MB / 324.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.2129, allocations: 1.466 MB / 326.4 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002349/0.2152, allocations: 3.194 MB / 329.5 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002467/0.2177, allocations: 2.015 MB / 331.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007264/0.225, allocations: 6.827 MB / 338.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.1e-05/0.225, allocations: 0 / 338.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.225, allocations: 4 kB / 338.4 MB, free: 15.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002311/0.2252, allocations: 0 / 338.4 MB, free: 15.42 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.01096/0.2362, allocations: 8.3 MB / 346.7 MB, free: 7.172 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.2362, allocations: 11.98 kB / 346.7 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008631/0.2449, allocations: 3.977 MB / 350.7 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006383/0.2512, allocations: 4.185 MB / 354.9 MB, free: 15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002073/0.2515, allocations: 344.1 kB / 355.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006319/0.2521, allocations: 462.8 kB / 355.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01205/0.2641, allocations: 8.811 MB / 364.5 MB, free: 4.363 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001375/0.2643, allocations: 71.45 kB / 364.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005818/0.2649, allocations: 219.9 kB / 364.7 MB, free: 4.086 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003142/0.268, allocations: 2.836 MB / 367.6 MB, free: 1.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01096/0.279, allocations: 5.322 MB / 372.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2043/0.4832, allocations: 59.18 MB / 432.1 MB, free: 102.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01088/0.4941, allocations: 3.826 MB / 435.9 MB, free: 102.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002567/0.4967, allocations: 1.497 MB / 437.4 MB, free: 102.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01106/0.5077, allocations: 7.601 MB / 445 MB, free: 101.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.432e-05/0.5078, allocations: 69.47 kB / 445.1 MB, free: 101.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 5.31e-06/0.5078, allocations: 0 / 445.1 MB, free: 101.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4697/0.9775, allocations: 199.3 MB / 0.6293 GB, free: 76.63 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.9776, allocations: 265.7 kB / 0.6295 GB, free: 76.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004514/0.9821, allocations: 4.477 MB / 0.6339 GB, free: 73.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001345/0.9835, allocations: 109.5 kB / 0.634 GB, free: 73.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/0.9851, allocations: 4.285 MB / 0.6382 GB, free: 71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001898/0.987, allocations: 2.196 MB / 0.6403 GB, free: 69.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002829/0.9898, allocations: 2.112 MB / 0.6424 GB, free: 67.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.473e-05/0.9899, allocations: 480.7 kB / 0.6428 GB, free: 67.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004776/0.9947, allocations: 3.836 MB / 0.6466 GB, free: 63.98 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006471/1.001, allocations: 10.08 MB / 0.6564 GB, free: 51.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/1.015, allocations: 15.24 MB / 0.6713 GB, free: 33.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.925e-05/1.015, allocations: 43.94 kB / 0.6714 GB, free: 33.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3336/1.349, allocations: 112.6 MB / 0.7814 GB, free: 52.98 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.831e-05/1.349, allocations: 64 kB / 0.7814 GB, free: 52.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/1.349, allocations: 139.9 kB / 0.7816 GB, free: 52.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08505/1.434, allocations: 57.06 MB / 0.8373 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003881/1.438, allocations: 1.563 MB / 0.8388 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2712/1.709, allocations: 61.52 MB / 0.8989 GB, free: 89.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009076/1.718, allocations: 1.808 MB / 0.9007 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/1.72, allocations: 0.5405 MB / 0.9012 GB, free: 89.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * 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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.002859/1.723, allocations: 0.8261 MB / 0.902 GB, free: 89.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00162/1.724, allocations: 0.7203 MB / 0.9027 GB, free: 88.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3439/2.068, allocations: 109.6 MB / 1.01 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.977e-05/2.068, allocations: 58.11 kB / 1.01 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001301/2.068, allocations: 64.44 kB / 1.01 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.935e-05/2.068, allocations: 25.17 kB / 1.01 GB, free: 102.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3838/2.452, allocations: 161.1 MB / 1.167 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-05/2.452, allocations: 7.094 kB / 1.167 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001319/2.454, allocations: 330.3 kB / 1.168 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.08167/2.535, allocations: 55.92 MB / 1.222 GB, free: 92.74 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001575/2.537, allocations: 104 kB / 1.222 GB, free: 92.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0954/2.632, allocations: 56.21 MB / 1.277 GB, free: 36.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/2.632, allocations: 11.28 kB / 1.277 GB, free: 36.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3422/2.974, allocations: 113 MB / 1.388 GB, free: 60.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/2.976, allocations: 0.5591 MB / 1.388 GB, free: 59.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001517/2.978, allocations: 106.3 kB / 1.388 GB, free: 59.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005235/2.983, allocations: 1.559 MB / 1.39 GB, free: 58.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002663/2.986, allocations: 0.5103 MB / 1.39 GB, free: 57.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000481/2.986, allocations: 142.6 kB / 1.39 GB, free: 57.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002527/2.989, allocations: 2.06 MB / 1.392 GB, free: 56.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/2.989, allocations: 0 / 1.392 GB, free: 56.19 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01159/3, allocations: 4.091 MB / 1.396 GB, free: 52.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001194/3.001, allocations: 252.7 kB / 1.397 GB, free: 52.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02977/3.031, allocations: 20.21 MB / 1.416 GB, free: 34.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/3.031, allocations: 0.6562 kB / 1.416 GB, free: 34.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02094/3.052, allocations: 14.02 MB / 1.43 GB, free: 22.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004513/3.057, allocations: 0.7296 MB / 1.431 GB, free: 21.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1585/3.215, allocations: 19 MB / 1.449 GB, free: 117.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003386/3.219, allocations: 2.235 MB / 1.451 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003202/3.222, allocations: 1.717 MB / 1.453 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007244/3.222, allocations: 291.5 kB / 1.453 GB, free: 117.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.385e-06/3.222, allocations: 0 / 1.453 GB, free: 117.6 MB / 426.7 MB Notification: Performance of Templates: time 0.3704/3.593, allocations: 293.4 MB / 1.74 GB, free: 2.84 MB / 426.7 MB " [Timeout remaining time 656] 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: 9.757108523044735]