Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.001159/0.001159, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001315/0.001315, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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 1.015/1.015, allocations: 173.3 MB / 201.1 MB, free: 8.945 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.Fourbar1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.304e-06/2.304e-06, allocations: 0 / 268 MB, free: 6.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.482e-05/3.713e-05, allocations: 2.312 kB / 268 MB, free: 6.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.01452/0.01456, allocations: 15.49 MB / 283.5 MB, free: 6.699 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008615/0.02317, allocations: 5.061 MB / 288.6 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.02442, allocations: 139.2 kB / 288.7 MB, free: 1.484 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1254/0.1498, allocations: 4.778 MB / 293.5 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.1553, allocations: 2.7 MB / 296.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.1569, allocations: 1.3 MB / 297.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00767/0.1646, allocations: 8.955 MB / 306.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004793/0.1693, allocations: 5.224 MB / 311.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004456/0.1738, allocations: 3.828 MB / 315.5 MB, free: 6.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.1767, allocations: 3.831 MB / 319.3 MB, free: 3.262 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005693/0.1773, allocations: 0.5222 MB / 319.8 MB, free: 2.742 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.1788, allocations: 1.467 MB / 321.3 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.1805, allocations: 3.225 MB / 324.5 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001932/0.1824, allocations: 2.034 MB / 326.6 MB, free: 12.27 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005513/0.1879, allocations: 6.879 MB / 333.4 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1879, allocations: 0 / 333.4 MB, free: 5.812 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1879, allocations: 4 kB / 333.4 MB, free: 5.809 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001092/0.188, allocations: 4 kB / 333.4 MB, free: 5.805 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.008796/0.1968, allocations: 8.261 MB / 341.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.1969, allocations: 8.922 kB / 341.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007902/0.2048, allocations: 3.869 MB / 345.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005252/0.21, allocations: 4.183 MB / 349.8 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.2102, allocations: 337.3 kB / 350.1 MB, free: 5.445 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006145/0.2108, allocations: 466.4 kB / 350.5 MB, free: 5.035 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.2219, allocations: 8.82 MB / 359.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.222, allocations: 71.92 kB / 359.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003814/0.2224, allocations: 213.8 kB / 359.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003002/0.2254, allocations: 2.826 MB / 362.5 MB, free: 8.199 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01179/0.2372, allocations: 5.329 MB / 367.8 MB, free: 3.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04457/0.2818, allocations: 59.19 MB / 427 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008261/0.29, allocations: 3.836 MB / 430.8 MB, free: 2.719 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001861/0.2919, allocations: 1.5 MB / 432.3 MB, free: 1.199 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1481/0.44, allocations: 7.599 MB / 439.9 MB, free: 116.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.495e-05/0.44, allocations: 75.92 kB / 440 MB, free: 116.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=326): time 5.791e-06/0.44, allocations: 3.828 kB / 440 MB, free: 116.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=572): time 0.4613/0.9013, allocations: 199.2 MB / 0.6243 GB, free: 67.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.9014, allocations: 266.1 kB / 0.6245 GB, free: 66.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005127/0.9066, allocations: 4.493 MB / 0.6289 GB, free: 63.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001556/0.9081, allocations: 115 kB / 0.629 GB, free: 63.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.9098, allocations: 4.283 MB / 0.6332 GB, free: 61.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00172/0.9115, allocations: 2.193 MB / 0.6353 GB, free: 59.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002816/0.9144, allocations: 2.115 MB / 0.6374 GB, free: 58.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.244e-05/0.9144, allocations: 476.8 kB / 0.6379 GB, free: 57.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004741/0.9191, allocations: 3.841 MB / 0.6416 GB, free: 54.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007185/0.9263, allocations: 10.07 MB / 0.6514 GB, free: 41.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01688/0.9432, allocations: 15.25 MB / 0.6663 GB, free: 24.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.241e-05/0.9433, allocations: 43.94 kB / 0.6664 GB, free: 24.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3455/1.289, allocations: 112.6 MB / 0.7763 GB, free: 56.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.966e-05/1.289, allocations: 68.56 kB / 0.7764 GB, free: 56.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/1.289, allocations: 140 kB / 0.7765 GB, free: 56.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08328/1.372, allocations: 57.04 MB / 0.8322 GB, free: 3.504 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/1.376, allocations: 1.567 MB / 0.8337 GB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2516/1.627, allocations: 61.48 MB / 0.8938 GB, free: 94.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008971/1.636, allocations: 1.806 MB / 0.8955 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001107/1.637, allocations: 0.5338 MB / 0.896 GB, free: 94.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.002768/1.64, allocations: 0.832 MB / 0.8969 GB, free: 94.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/1.642, allocations: 0.7121 MB / 0.8976 GB, free: 93.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3138/1.956, allocations: 109.5 MB / 1.005 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.108e-05/1.956, allocations: 62.14 kB / 1.005 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001068/1.956, allocations: 56.03 kB / 1.005 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.19e-05/1.956, allocations: 29.94 kB / 1.005 GB, free: 107.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.363/2.319, allocations: 161.1 MB / 1.162 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-05/2.319, allocations: 7.5 kB / 1.162 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/2.32, allocations: 335.3 kB / 1.162 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07858/2.399, allocations: 55.9 MB / 1.217 GB, free: 62.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001202/2.4, allocations: 107.4 kB / 1.217 GB, free: 62.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2427/2.642, allocations: 56.17 MB / 1.272 GB, free: 99.92 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.246e-06/2.642, allocations: 8 kB / 1.272 GB, free: 99.92 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1789/2.821, allocations: 113 MB / 1.382 GB, free: 29.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/2.823, allocations: 0.5719 MB / 1.383 GB, free: 28.73 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/2.824, allocations: 95.84 kB / 1.383 GB, free: 28.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004623/2.829, allocations: 1.559 MB / 1.384 GB, free: 27.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002689/2.831, allocations: 0.5253 MB / 1.385 GB, free: 26.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004866/2.832, allocations: 139.4 kB / 1.385 GB, free: 26.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002342/2.834, allocations: 2.056 MB / 1.387 GB, free: 25.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/2.834, allocations: 0 / 1.387 GB, free: 25.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01077/2.845, allocations: 4.118 MB / 1.391 GB, free: 21.23 MB / 410.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.000888/2.846, allocations: 270.2 kB / 1.391 GB, free: 21.05 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.02828/2.874, allocations: 20.18 MB / 1.411 GB, free: 3.039 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/2.874, allocations: 4 kB / 1.411 GB, free: 3.035 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1601/3.034, allocations: 14 MB / 1.425 GB, free: 128.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/3.039, allocations: 0.7394 MB / 1.425 GB, free: 128.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02309/3.062, allocations: 19.01 MB / 1.444 GB, free: 123.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002048/3.064, allocations: 2.239 MB / 1.446 GB, free: 123.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002548/3.066, allocations: 1.723 MB / 1.448 GB, free: 123.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005349/3.067, allocations: 293.5 kB / 1.448 GB, free: 123.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.224e-06/3.067, allocations: 0 / 1.448 GB, free: 123.3 MB / 426.7 MB Notification: Performance of Templates: time 0.4912/3.558, allocations: 293.5 MB / 1.735 GB, free: 120 MB / 426.7 MB " [Timeout remaining time 656] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.363957492168993]