Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.001767/0.001767, allocations: 84.92 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002177/0.002177, allocations: 164.5 kB / 23.95 MB, free: 4.168 MB / 14.72 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 1.452/1.452, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] 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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 325.1 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.393e-05/2.559e-05, allocations: 7.5 kB / 325.1 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02142/0.02144, allocations: 17.67 MB / 342.8 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01497/0.03641, allocations: 6.012 MB / 348.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005189/0.0416, allocations: 202.8 kB / 349 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01344/0.05504, allocations: 6.487 MB / 355.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009797/0.06484, allocations: 3.618 MB / 359.1 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004478/0.06932, allocations: 1.887 MB / 361 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02165/0.09096, allocations: 15.09 MB / 376.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01235/0.1033, allocations: 7.799 MB / 383.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01538/0.1187, allocations: 5.793 MB / 389.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009957/0.1287, allocations: 5.815 MB / 395.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002378/0.131, allocations: 0.7773 MB / 396.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004184/0.1352, allocations: 1.697 MB / 397.9 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005749/0.141, allocations: 4.746 MB / 402.7 MB, free: 7.309 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00528/0.1462, allocations: 2.91 MB / 405.6 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01862/0.1649, allocations: 14.53 MB / 420.1 MB, free: 5.816 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1649, allocations: 0 / 420.1 MB, free: 5.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1649, allocations: 0 / 420.1 MB, free: 5.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004879/0.1654, allocations: 0 / 420.1 MB, free: 5.816 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.02902/0.1944, allocations: 10.45 MB / 430.6 MB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1944, allocations: 8.031 kB / 430.6 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05018/0.2446, allocations: 5.562 MB / 436.2 MB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/0.2655, allocations: 7.96 MB / 444.1 MB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004129/0.266, allocations: 448 kB / 444.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00176/0.2677, allocations: 0.6094 MB / 445.2 MB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03349/0.3012, allocations: 17.45 MB / 462.6 MB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/0.3015, allocations: 99.31 kB / 462.7 MB, free: 9.922 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009722/0.3025, allocations: 283.8 kB / 463 MB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004988/0.3075, allocations: 2.854 MB / 465.8 MB, free: 6.785 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3029/0.6104, allocations: 14.02 MB / 479.9 MB, free: 114.5 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07369/0.6841, allocations: 64.53 MB / 0.5316 GB, free: 61.48 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/0.703, allocations: 7.81 MB / 0.5393 GB, free: 53.68 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004441/0.7075, allocations: 4.361 MB / 0.5435 GB, free: 49.31 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01572/0.7232, allocations: 11.49 MB / 0.5547 GB, free: 37.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.7232, allocations: 68.5 kB / 0.5548 GB, free: 37.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=293): time 6.132e-06/0.7232, allocations: 0 / 0.5548 GB, free: 37.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=359): time 0.196/0.9192, allocations: 54.91 MB / 0.6084 GB, free: 15.56 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002294/0.9194, allocations: 394.2 kB / 0.6088 GB, free: 15.09 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01312/0.9325, allocations: 7.464 MB / 0.6161 GB, free: 7.832 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001145/0.9337, allocations: 89.7 kB / 0.6162 GB, free: 7.738 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005096/0.9388, allocations: 5.377 MB / 0.6214 GB, free: 2.516 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002281/0.9411, allocations: 1.369 MB / 0.6228 GB, free: 1.164 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003824/0.9449, allocations: 1.902 MB / 0.6246 GB, free: 15.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.945, allocations: 301.1 kB / 0.6249 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0073/0.9523, allocations: 4.711 MB / 0.6295 GB, free: 10.23 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2037/1.156, allocations: 9.759 MB / 0.639 GB, free: 146.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/1.176, allocations: 15 MB / 0.6537 GB, free: 137.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002843/1.176, allocations: 46.53 kB / 0.6537 GB, free: 137.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.0433/1.22, allocations: 20.37 MB / 0.6736 GB, free: 131.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001112/1.22, allocations: 76.75 kB / 0.6737 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001811/1.22, allocations: 163.9 kB / 0.6739 GB, free: 131.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02196/1.242, allocations: 7.322 MB / 0.681 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00655/1.248, allocations: 2.004 MB / 0.683 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04006/1.288, allocations: 35.83 MB / 0.718 GB, free: 90.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008597/1.297, allocations: 0.7178 MB / 0.7187 GB, free: 90.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001422/1.298, allocations: 0.5 MB / 0.7191 GB, free: 89.55 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[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 (1081): * Single equations (assignments): 1075 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.005251/1.304, allocations: 3.589 MB / 0.7227 GB, free: 86.05 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00153/1.305, allocations: 0.6411 MB / 0.7233 GB, free: 85.77 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02601/1.331, allocations: 13.8 MB / 0.7368 GB, free: 71.89 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.216e-05/1.331, allocations: 36 kB / 0.7368 GB, free: 71.86 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.712e-05/1.331, allocations: 23.94 kB / 0.7368 GB, free: 71.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.228e-05/1.331, allocations: 15.94 kB / 0.7368 GB, free: 71.82 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04226/1.374, allocations: 25.46 MB / 0.7617 GB, free: 46.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.383e-05/1.374, allocations: 4 kB / 0.7617 GB, free: 46.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00227/1.376, allocations: 470.8 kB / 0.7621 GB, free: 45.63 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02019/1.396, allocations: 6.956 MB / 0.7689 GB, free: 38.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008973/1.397, allocations: 64 kB / 0.769 GB, free: 38.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03847/1.435, allocations: 34.68 MB / 0.8029 GB, free: 3.859 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.435, allocations: 11.94 kB / 0.8029 GB, free: 3.848 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2268/1.662, allocations: 19.58 MB / 0.822 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002218/1.664, allocations: 0.6979 MB / 0.8227 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001801/1.666, allocations: 67.69 kB / 0.8227 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004964/1.671, allocations: 420.7 kB / 0.8231 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001209/1.672, allocations: 270 kB / 0.8234 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003523/1.673, allocations: 96.89 kB / 0.8235 GB, free: 154.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006549/1.679, allocations: 4.619 MB / 0.828 GB, free: 153.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/1.679, allocations: 0.5625 kB / 0.828 GB, free: 153.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008379/1.688, allocations: 2.49 MB / 0.8304 GB, free: 153 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.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 (231): * Single equations (assignments): 225 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007544/1.688, allocations: 231.9 kB / 0.8307 GB, free: 152.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01748/1.706, allocations: 11.51 MB / 0.8419 GB, free: 148.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/1.706, allocations: 0 / 0.8419 GB, free: 148.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008332/1.714, allocations: 4.909 MB / 0.8467 GB, free: 146.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006253/1.721, allocations: 0.9153 MB / 0.8476 GB, free: 146.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03229/1.753, allocations: 20.75 MB / 0.8679 GB, free: 130.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006405/1.759, allocations: 5.254 MB / 0.873 GB, free: 126 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005777/1.765, allocations: 2.67 MB / 0.8756 GB, free: 123.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.767, allocations: 400.4 kB / 0.876 GB, free: 123.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.714e-06/1.767, allocations: 0 / 0.876 GB, free: 123.2 MB / 494.1 MB Notification: Performance of Templates: time 0.143/1.91, allocations: 99.02 MB / 0.9727 GB, free: 24.96 MB / 494.1 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",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.016689825803041]