Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001601/0.001601, allocations: 112.6 kB / 18.78 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 215.9 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.456/1.456, allocations: 230.4 MB / 251.1 MB, free: 8.453 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 67.81 kB / 369 MB, free: 6.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2549, allocations: 53.31 MB / 422.3 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.02293/0.2779, allocations: 20.53 MB / 442.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.2915, allocations: 6.203 MB / 449 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.2949, allocations: 167.4 kB / 449.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01237/0.3072, allocations: 6.405 MB / 455.6 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009854/0.3171, allocations: 3.506 MB / 459.1 MB, free: 2.879 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00423/0.3213, allocations: 1.658 MB / 460.8 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01833/0.3397, allocations: 12.95 MB / 473.7 MB, free: 4.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009589/0.3492, allocations: 6.772 MB / 480.5 MB, free: 13.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007182/0.3564, allocations: 3.774 MB / 484.3 MB, free: 9.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008529/0.365, allocations: 5.336 MB / 489.6 MB, free: 4.254 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002104/0.3671, allocations: 0.7499 MB / 490.3 MB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004013/0.3711, allocations: 1.744 MB / 492.1 MB, free: 1.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005338/0.3764, allocations: 4.504 MB / 496.6 MB, free: 13.24 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00757/0.384, allocations: 4.635 MB / 0.4895 GB, free: 8.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01809/0.4021, allocations: 14.17 MB / 0.5033 GB, free: 10.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4021, allocations: 0 / 0.5033 GB, free: 10.36 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4021, allocations: 0 / 0.5033 GB, free: 10.36 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004706/0.4026, allocations: 3.938 kB / 0.5033 GB, free: 10.36 MB / 430.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.02317/0.4257, allocations: 10.27 MB / 0.5133 GB, free: 15.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.4258, allocations: 8.031 kB / 0.5134 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04147/0.4672, allocations: 5.331 MB / 0.5186 GB, free: 10.63 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01934/0.4866, allocations: 8.126 MB / 0.5265 GB, free: 2.445 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004441/0.487, allocations: 444 kB / 0.5269 GB, free: 2.012 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00214/0.4891, allocations: 0.6167 MB / 0.5275 GB, free: 1.395 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4515/0.9407, allocations: 17.12 MB / 0.5442 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004476/0.9411, allocations: 98.36 kB / 0.5443 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001315/0.9425, allocations: 282.4 kB / 0.5446 GB, free: 103.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004411/0.9469, allocations: 2.855 MB / 0.5474 GB, free: 103.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02493/0.9718, allocations: 14.03 MB / 0.5611 GB, free: 98.7 MB / 462.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.07738/1.049, allocations: 69.78 MB / 0.6292 GB, free: 30.15 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0186/1.068, allocations: 7.944 MB / 0.637 GB, free: 22.07 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004768/1.073, allocations: 4.355 MB / 0.6413 GB, free: 17.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0172/1.09, allocations: 12.78 MB / 0.6537 GB, free: 4.887 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/1.09, allocations: 68.56 kB / 0.6538 GB, free: 4.812 MB / 462.1 MB Notification: Performance of pre-optimization done (n=293): time 5.38e-06/1.09, allocations: 3.938 kB / 0.6538 GB, free: 4.809 MB / 462.1 MB Notification: Performance of matching and sorting (n=359): time 0.1929/1.283, allocations: 52.76 MB / 0.7053 GB, free: 476 kB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003027/1.283, allocations: 405.8 kB / 0.7057 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01246/1.295, allocations: 7.276 MB / 0.7128 GB, free: 8.84 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001142/1.297, allocations: 81.7 kB / 0.7129 GB, free: 8.754 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004694/1.301, allocations: 5.386 MB / 0.7182 GB, free: 3.52 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00221/1.304, allocations: 1.387 MB / 0.7195 GB, free: 2.121 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0032/1.307, allocations: 1.921 MB / 0.7214 GB, free: 192 kB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001442/1.307, allocations: 309.1 kB / 0.7217 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007676/1.315, allocations: 4.707 MB / 0.7263 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01399/1.329, allocations: 9.534 MB / 0.7356 GB, free: 15.29 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2763/1.605, allocations: 15.01 MB / 0.7503 GB, free: 177.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000215/1.605, allocations: 47.16 kB / 0.7503 GB, free: 177.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03992/1.645, allocations: 20.41 MB / 0.7702 GB, free: 172.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.282e-05/1.645, allocations: 74.62 kB / 0.7703 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001884/1.645, allocations: 164.9 kB / 0.7705 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01943/1.665, allocations: 7.334 MB / 0.7776 GB, free: 171.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006245/1.671, allocations: 1.998 MB / 0.7796 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03984/1.711, allocations: 36.59 MB / 0.8153 GB, free: 138.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009864/1.721, allocations: 0.6015 MB / 0.8159 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001649/1.722, allocations: 0.5 MB / 0.8164 GB, free: 137.3 MB / 0.545 GB 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.005509/1.728, allocations: 3.596 MB / 0.8199 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001462/1.729, allocations: 0.6945 MB / 0.8206 GB, free: 133.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0246/1.754, allocations: 13.85 MB / 0.8341 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.792e-05/1.754, allocations: 36 kB / 0.8341 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.967e-05/1.754, allocations: 20.94 kB / 0.8341 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.329e-05/1.754, allocations: 19.94 kB / 0.8342 GB, free: 119.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04181/1.796, allocations: 27.61 MB / 0.8611 GB, free: 91.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-05/1.796, allocations: 4 kB / 0.8611 GB, free: 91.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00208/1.798, allocations: 467.3 kB / 0.8616 GB, free: 91.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/1.815, allocations: 6.972 MB / 0.8684 GB, free: 84.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007593/1.816, allocations: 71.98 kB / 0.8685 GB, free: 84.03 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03818/1.854, allocations: 35.36 MB / 0.903 GB, free: 48.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.854, allocations: 15.94 kB / 0.903 GB, free: 48.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03105/1.885, allocations: 19.65 MB / 0.9222 GB, free: 28.68 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/1.887, allocations: 0.7414 MB / 0.9229 GB, free: 27.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001644/1.889, allocations: 67.94 kB / 0.923 GB, free: 27.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003817/1.893, allocations: 327.6 kB / 0.9233 GB, free: 27.53 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001069/1.894, allocations: 250.7 kB / 0.9235 GB, free: 27.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002888/1.894, allocations: 92 kB / 0.9236 GB, free: 27.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006214/1.9, allocations: 4.646 MB / 0.9281 GB, free: 22.58 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.9, allocations: 0 / 0.9281 GB, free: 22.58 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009555/1.91, allocations: 2.209 MB / 0.9303 GB, free: 20.38 MB / 0.545 GB 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.0008562/1.911, allocations: 216.1 kB / 0.9305 GB, free: 20.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01772/1.928, allocations: 11.52 MB / 0.9418 GB, free: 8.617 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/1.928, allocations: 0 / 0.9418 GB, free: 8.617 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008015/1.936, allocations: 4.904 MB / 0.9465 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006738/1.943, allocations: 1.008 MB / 0.9475 GB, free: 2.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2631/2.206, allocations: 20.75 MB / 0.9678 GB, free: 188.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007679/2.214, allocations: 5.733 MB / 0.9734 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.005956/2.22, allocations: 2.689 MB / 0.976 GB, free: 187.2 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/2.221, allocations: 400.8 kB / 0.9764 GB, free: 187.1 MB / 0.5607 GB Notification: Performance of SimCode: time 2.185e-06/2.221, allocations: 3.938 kB / 0.9764 GB, free: 187.1 MB / 0.5607 GB Notification: Performance of Templates: time 0.1514/2.372, allocations: 100.9 MB / 1.075 GB, free: 96.73 MB / 0.5607 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches