Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 114.1 kB / 17.69 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 192 kB / 18.63 MB, free: 4.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009805/0.0009806, allocations: 42.47 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09366, allocations: 49.44 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.182/0.2757, allocations: 20.5 MB / 372 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.2873, allocations: 6.198 MB / 378.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004566/0.2919, allocations: 165.5 kB / 378.4 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0107/0.3027, allocations: 6.35 MB / 384.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008272/0.311, allocations: 3.43 MB / 388.1 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003772/0.3148, allocations: 1.663 MB / 389.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01518/0.33, allocations: 12.66 MB / 402.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009649/0.3397, allocations: 8.062 MB / 410.5 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006544/0.3463, allocations: 3.752 MB / 414.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007348/0.3537, allocations: 4.955 MB / 419.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002327/0.356, allocations: 0.7461 MB / 420 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005143/0.3612, allocations: 1.71 MB / 421.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006262/0.3675, allocations: 4.356 MB / 426 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009764/0.3773, allocations: 4.66 MB / 430.7 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.018/0.3953, allocations: 14.17 MB / 444.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3954, allocations: 0 / 444.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3954, allocations: 0 / 444.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004225/0.3958, allocations: 4 kB / 444.9 MB, free: 5.633 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.02525/0.4211, allocations: 10.03 MB / 454.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.4211, allocations: 12.03 kB / 454.9 MB, free: 11.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04162/0.4628, allocations: 5.273 MB / 460.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0211/0.4839, allocations: 8.25 MB / 468.5 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004389/0.4844, allocations: 455.7 kB / 468.9 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002786/0.4872, allocations: 0.6101 MB / 469.5 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0312/0.5184, allocations: 17.13 MB / 486.6 MB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000289/0.5187, allocations: 95.17 kB / 486.7 MB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009061/0.5196, allocations: 281.2 kB / 487 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004478/0.5241, allocations: 2.855 MB / 489.9 MB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02985/0.554, allocations: 14.04 MB / 0.4921 GB, free: 9.934 MB / 414.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.4074/0.9614, allocations: 69.68 MB / 0.5601 GB, free: 101 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01921/0.9806, allocations: 8.223 MB / 0.5682 GB, free: 99.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004574/0.9852, allocations: 4.637 MB / 0.5727 GB, free: 97.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02081/1.006, allocations: 12.77 MB / 0.5852 GB, free: 91.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.135e-05/1.006, allocations: 70.78 kB / 0.5852 GB, free: 91.73 MB / 446.1 MB Notification: Performance of pre-optimization done (n=294): time 5.47e-06/1.006, allocations: 0 / 0.5852 GB, free: 91.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=360): time 0.1706/1.177, allocations: 52.49 MB / 0.6365 GB, free: 47.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.969e-05/1.177, allocations: 402.2 kB / 0.6369 GB, free: 46.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008906/1.186, allocations: 7.276 MB / 0.644 GB, free: 39.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009638/1.187, allocations: 81.7 kB / 0.6441 GB, free: 39.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002758/1.19, allocations: 5.201 MB / 0.6491 GB, free: 34.18 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001684/1.191, allocations: 1.331 MB / 0.6504 GB, free: 32.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002621/1.194, allocations: 1.915 MB / 0.6523 GB, free: 30.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/1.194, allocations: 305.1 kB / 0.6526 GB, free: 30.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005318/1.199, allocations: 4.711 MB / 0.6572 GB, free: 25.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007589/1.207, allocations: 9.546 MB / 0.6665 GB, free: 14.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01629/1.223, allocations: 15 MB / 0.6812 GB, free: 12.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001512/1.223, allocations: 52 kB / 0.6812 GB, free: 12.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.0443/1.268, allocations: 20.46 MB / 0.7012 GB, free: 8.191 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001966/1.268, allocations: 80.2 kB / 0.7013 GB, free: 8.113 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002641/1.268, allocations: 168 kB / 0.7014 GB, free: 7.949 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02195/1.29, allocations: 7.311 MB / 0.7086 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2025/1.493, allocations: 1.997 MB / 0.7105 GB, free: 154 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04787/1.541, allocations: 36.53 MB / 0.7462 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008366/1.549, allocations: 0.609 MB / 0.7468 GB, free: 139.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001747/1.551, allocations: 0.4972 MB / 0.7473 GB, free: 139.4 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 (1082): * Single equations (assignments): 1076 * 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,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.006167/1.557, allocations: 3.604 MB / 0.7508 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/1.559, allocations: 0.6515 MB / 0.7515 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0266/1.585, allocations: 13.95 MB / 0.7651 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.808e-05/1.585, allocations: 36 kB / 0.7651 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.51e-05/1.585, allocations: 27.53 kB / 0.7651 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-05/1.585, allocations: 15.94 kB / 0.7651 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04775/1.633, allocations: 27.7 MB / 0.7922 GB, free: 102.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.836e-05/1.633, allocations: 7.828 kB / 0.7922 GB, free: 102.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002141/1.635, allocations: 463.3 kB / 0.7926 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01861/1.654, allocations: 6.978 MB / 0.7995 GB, free: 94.71 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/1.655, allocations: 65.31 kB / 0.7995 GB, free: 94.65 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04081/1.696, allocations: 35.33 MB / 0.834 GB, free: 59.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.856e-06/1.696, allocations: 11.94 kB / 0.834 GB, free: 59.17 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0323/1.728, allocations: 19.71 MB / 0.8533 GB, free: 39.59 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004909/1.733, allocations: 1.425 MB / 0.8547 GB, free: 38.15 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002572/1.736, allocations: 65.98 kB / 0.8547 GB, free: 38.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004973/1.741, allocations: 319.5 kB / 0.855 GB, free: 37.78 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001413/1.742, allocations: 262.2 kB / 0.8553 GB, free: 37.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006853/1.743, allocations: 95.98 kB / 0.8554 GB, free: 37.43 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007411/1.75, allocations: 4.65 MB / 0.8599 GB, free: 32.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.71e-07/1.75, allocations: 0 / 0.8599 GB, free: 32.82 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009629/1.76, allocations: 2.226 MB / 0.8621 GB, free: 30.6 MB / 478.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 (232): * Single equations (assignments): 226 * 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.001033/1.761, allocations: 218.2 kB / 0.8623 GB, free: 30.39 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01712/1.778, allocations: 12.03 MB / 0.8741 GB, free: 18.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.054e-05/1.778, allocations: 8.062 kB / 0.8741 GB, free: 18.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1953/1.974, allocations: 5.279 MB / 0.8792 GB, free: 154.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007133/1.981, allocations: 1.025 MB / 0.8802 GB, free: 154.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04104/2.022, allocations: 20.3 MB / 0.9001 GB, free: 149 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01119/2.033, allocations: 5.723 MB / 0.9056 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008546/2.042, allocations: 2.701 MB / 0.9083 GB, free: 147.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002143/2.044, allocations: 402.1 kB / 0.9087 GB, free: 147.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.252e-06/2.044, allocations: 0 / 0.9087 GB, free: 147.1 MB / 478.1 MB Notification: Performance of Templates: time 0.149/2.193, allocations: 95.37 MB / 1.002 GB, free: 59.8 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches