Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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.0009674/0.0009674, allocations: 81.91 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.001593/0.001593, allocations: 165.2 kB / 24.82 MB, free: 9.324 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.9344/0.9344, allocations: 177 MB / 205.1 MB, free: 5.473 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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5028,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.291e-05/1.413e-05, allocations: 2.312 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1472/0.1472, allocations: 19.18 MB / 292.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009002/0.1562, allocations: 6.084 MB / 298.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00263/0.1588, allocations: 205 kB / 298.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007163/0.166, allocations: 6.714 MB / 305.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006781/0.1728, allocations: 3.631 MB / 309.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00291/0.1757, allocations: 1.926 MB / 311.1 MB, free: 7.938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0114/0.1871, allocations: 15.09 MB / 326.2 MB, free: 12.19 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00863/0.1957, allocations: 8.081 MB / 334.3 MB, free: 4.023 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01233/0.2081, allocations: 8.657 MB / 342.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007111/0.2152, allocations: 5.924 MB / 348.9 MB, free: 5.414 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00208/0.2173, allocations: 0.7852 MB / 349.6 MB, free: 4.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.2209, allocations: 1.705 MB / 351.3 MB, free: 2.922 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004147/0.225, allocations: 4.789 MB / 356.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004244/0.2293, allocations: 2.933 MB / 359.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.2395, allocations: 9.305 MB / 368.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2395, allocations: 0 / 368.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2395, allocations: 0 / 368.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003127/0.2398, allocations: 4 kB / 368.4 MB, free: 1.836 MB / 314.7 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.01316/0.253, allocations: 10.31 MB / 378.7 MB, free: 7.438 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.253, allocations: 15.98 kB / 378.7 MB, free: 7.422 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01971/0.2727, allocations: 5.084 MB / 383.8 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009537/0.2823, allocations: 5.488 MB / 389.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003713/0.2826, allocations: 448 kB / 389.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001432/0.2841, allocations: 0.6093 MB / 390.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/0.3015, allocations: 9.644 MB / 400 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002745/0.3018, allocations: 95.28 kB / 400.1 MB, free: 484 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007266/0.3025, allocations: 283.7 kB / 400.3 MB, free: 200 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002952/0.3055, allocations: 2.609 MB / 402.9 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/0.3176, allocations: 4.198 MB / 407.1 MB, free: 9.371 MB / 362.7 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.2818/0.5994, allocations: 71.07 MB / 478.2 MB, free: 59.26 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008999/0.6084, allocations: 3.42 MB / 481.6 MB, free: 59.08 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001595/0.61, allocations: 0.9419 MB / 482.6 MB, free: 59.02 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01189/0.6219, allocations: 7.159 MB / 489.7 MB, free: 57.25 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/0.6219, allocations: 67.61 kB / 489.8 MB, free: 57.19 MB / 378.8 MB Notification: Performance of pre-optimization done (n=260): time 5.55e-06/0.6219, allocations: 3.75 kB / 489.8 MB, free: 57.19 MB / 378.8 MB Notification: Performance of matching and sorting (n=316): time 0.04609/0.668, allocations: 18.44 MB / 0.4963 GB, free: 46.66 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.6681, allocations: 401.3 kB / 0.4967 GB, free: 46.18 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005171/0.6733, allocations: 6.26 MB / 0.5028 GB, free: 40.93 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000472/0.6738, allocations: 81.67 kB / 0.5029 GB, free: 40.84 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.676, allocations: 5.813 MB / 0.5086 GB, free: 35.55 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001186/0.6772, allocations: 1.271 MB / 0.5098 GB, free: 34.27 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001513/0.6787, allocations: 2.021 MB / 0.5118 GB, free: 32.23 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 4.247e-05/0.6787, allocations: 476.8 kB / 0.5123 GB, free: 31.76 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.6802, allocations: 0.9589 MB / 0.5132 GB, free: 30.8 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/0.6832, allocations: 8.75 MB / 0.5217 GB, free: 18.65 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005596/0.6888, allocations: 10.28 MB / 0.5318 GB, free: 5.359 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.341e-05/0.6889, allocations: 52 kB / 0.5318 GB, free: 5.309 MB / 378.8 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.01024/0.6991, allocations: 7.818 MB / 0.5395 GB, free: 13.44 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.371e-05/0.6992, allocations: 80 kB / 0.5395 GB, free: 13.36 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001617/0.6994, allocations: 176 kB / 0.5397 GB, free: 13.19 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003115/0.7025, allocations: 1.32 MB / 0.541 GB, free: 11.86 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003913/0.7064, allocations: 2.035 MB / 0.543 GB, free: 9.82 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006737/0.7131, allocations: 6.944 MB / 0.5498 GB, free: 2.645 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005376/0.7185, allocations: 391.7 kB / 0.5501 GB, free: 2.262 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009736/0.7195, allocations: 440 kB / 0.5506 GB, free: 1.832 MB / 394.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 802 * 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 (1132): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(2,100.0%), (2,100.0%)} * 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 {(5,46,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002785/0.7223, allocations: 0.9086 MB / 0.5514 GB, free: 0.9141 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001475/0.7238, allocations: 0.7185 MB / 0.5521 GB, free: 196 kB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.7279, allocations: 2.63 MB / 0.5547 GB, free: 13.49 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/0.7279, allocations: 32 kB / 0.5547 GB, free: 13.46 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.7279, allocations: 12 kB / 0.5548 GB, free: 13.45 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.728, allocations: 19.94 kB / 0.5548 GB, free: 13.43 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01965/0.7476, allocations: 10.96 MB / 0.5655 GB, free: 2.027 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.89e-05/0.7476, allocations: 20 kB / 0.5655 GB, free: 2.008 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001449/0.7491, allocations: 476 kB / 0.5659 GB, free: 1.543 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003549/0.7526, allocations: 1.088 MB / 0.567 GB, free: 456 kB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000204/0.7528, allocations: 76.83 kB / 0.5671 GB, free: 380 kB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007374/0.7602, allocations: 6.46 MB / 0.5734 GB, free: 9.684 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-05/0.7602, allocations: 31.88 kB / 0.5734 GB, free: 9.652 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00748/0.7677, allocations: 4.745 MB / 0.5781 GB, free: 4.367 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/0.7693, allocations: 0.679 MB / 0.5787 GB, free: 3.684 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006738/0.77, allocations: 79.98 kB / 0.5788 GB, free: 3.605 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.7718, allocations: 88.02 kB / 0.5789 GB, free: 3.52 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004681/0.7723, allocations: 277.1 kB / 0.5791 GB, free: 3.25 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001813/0.7725, allocations: 87.98 kB / 0.5792 GB, free: 3.164 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.003597/0.7761, allocations: 2.715 MB / 0.5819 GB, free: 480 kB / 426.8 MB Notification: Performance of sort global known variables: time 9e-08/0.7761, allocations: 0 / 0.5819 GB, free: 480 kB / 426.8 MB Notification: Performance of remove unused functions: time 0.1624/0.9385, allocations: 2.088 MB / 0.5839 GB, free: 137.5 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * 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 (260): * Single equations (assignments): 253 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(2,100.0%), (2,100.0%)} * 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 {(5,42,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006508/0.9392, allocations: 253.8 kB / 0.5842 GB, free: 137.4 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.007775/0.9469, allocations: 4.59 MB / 0.5886 GB, free: 136.9 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.758e-05/0.9469, allocations: 3.688 kB / 0.5886 GB, free: 136.9 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002221/0.9492, allocations: 1.516 MB / 0.5901 GB, free: 136.5 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004075/0.9532, allocations: 0.9896 MB / 0.5911 GB, free: 136.5 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/0.9722, allocations: 14.94 MB / 0.6057 GB, free: 129.9 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002719/0.9749, allocations: 2.393 MB / 0.608 GB, free: 129.6 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.002662/0.9776, allocations: 0.8768 MB / 0.6089 GB, free: 129.5 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001688/0.9793, allocations: 1.14 MB / 0.61 GB, free: 129.5 MB / 426.8 MB Notification: Performance of SimCode: time 1.744e-06/0.9793, allocations: 0 / 0.61 GB, free: 129.5 MB / 426.8 MB Notification: Performance of Templates: time 0.08641/1.066, allocations: 72.75 MB / 0.681 GB, free: 63.09 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.1557026309892535]