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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001438/0.001438, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 60.62 kB / 307 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.11, allocations: 50.55 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.1811/0.2912, allocations: 20.43 MB / 378 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.3041, allocations: 6.188 MB / 384.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004809/0.309, allocations: 165.8 kB / 384.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.3204, allocations: 6.327 MB / 390.6 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009096/0.3295, allocations: 3.393 MB / 394 MB, free: 1.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00419/0.3337, allocations: 1.66 MB / 395.7 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01914/0.3528, allocations: 12.96 MB / 408.7 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.3659, allocations: 8.062 MB / 416.7 MB, free: 104 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00782/0.3737, allocations: 3.727 MB / 420.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008037/0.3818, allocations: 4.947 MB / 425.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002517/0.3843, allocations: 0.746 MB / 426.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004784/0.3891, allocations: 1.698 MB / 427.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005927/0.3951, allocations: 4.337 MB / 432.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007277/0.4024, allocations: 4.639 MB / 436.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01639/0.4188, allocations: 13.78 MB / 450.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4188, allocations: 0 / 450.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4188, allocations: 0 / 450.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003053/0.4191, allocations: 0 / 450.6 MB, free: 14.12 MB / 366.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.02568/0.4448, allocations: 10.01 MB / 460.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/0.4449, allocations: 8.031 kB / 460.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0481/0.493, allocations: 5.275 MB / 465.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02061/0.5136, allocations: 7.892 MB / 473.8 MB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004368/0.5141, allocations: 452.2 kB / 474.2 MB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002082/0.5162, allocations: 0.6126 MB / 474.8 MB, free: 5.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03316/0.5494, allocations: 17.13 MB / 492 MB, free: 3.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003119/0.5497, allocations: 103.1 kB / 492.1 MB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009659/0.5507, allocations: 279.8 kB / 492.3 MB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004838/0.5555, allocations: 2.858 MB / 495.2 MB, free: 288 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.032/0.5875, allocations: 14.03 MB / 0.4973 GB, free: 2.23 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.4222/1.01, allocations: 69.97 MB / 0.5656 GB, free: 96.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02047/1.03, allocations: 8.207 MB / 0.5736 GB, free: 93.91 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005794/1.036, allocations: 4.625 MB / 0.5782 GB, free: 91.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02113/1.057, allocations: 12.77 MB / 0.5906 GB, free: 85.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/1.057, allocations: 67.5 kB / 0.5907 GB, free: 85.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=293): time 5.74e-06/1.057, allocations: 0 / 0.5907 GB, free: 85.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=359): time 0.1839/1.241, allocations: 52.42 MB / 0.6419 GB, free: 39.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/1.242, allocations: 410.2 kB / 0.6423 GB, free: 38.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009107/1.251, allocations: 7.26 MB / 0.6494 GB, free: 31.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.252, allocations: 81.7 kB / 0.6494 GB, free: 31.65 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002582/1.254, allocations: 5.204 MB / 0.6545 GB, free: 26.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001464/1.256, allocations: 1.328 MB / 0.6558 GB, free: 25.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002253/1.258, allocations: 1.904 MB / 0.6577 GB, free: 23.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.008e-05/1.258, allocations: 305.1 kB / 0.658 GB, free: 22.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005075/1.263, allocations: 4.711 MB / 0.6626 GB, free: 18.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007099/1.27, allocations: 9.538 MB / 0.6719 GB, free: 6.312 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02018/1.29, allocations: 15 MB / 0.6865 GB, free: 4.977 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001349/1.291, allocations: 48 kB / 0.6866 GB, free: 4.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04876/1.339, allocations: 20.46 MB / 0.7066 GB, free: 424 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001251/1.34, allocations: 76 kB / 0.7066 GB, free: 348 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000223/1.34, allocations: 168.9 kB / 0.7068 GB, free: 180 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.219/1.559, allocations: 7.348 MB / 0.714 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006749/1.566, allocations: 2 MB / 0.7159 GB, free: 150.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04378/1.609, allocations: 36.59 MB / 0.7517 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00837/1.618, allocations: 0.5942 MB / 0.7522 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.62, allocations: 0.5035 MB / 0.7527 GB, free: 134.2 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.006088/1.626, allocations: 3.586 MB / 0.7562 GB, free: 131.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002744/1.628, allocations: 0.6569 MB / 0.7569 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02797/1.656, allocations: 13.93 MB / 0.7705 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.003e-05/1.656, allocations: 43.88 kB / 0.7705 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.463e-05/1.657, allocations: 20 kB / 0.7705 GB, free: 117.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.368e-05/1.657, allocations: 15.94 kB / 0.7705 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0478/1.704, allocations: 27.84 MB / 0.7977 GB, free: 89.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.914e-05/1.704, allocations: 8 kB / 0.7977 GB, free: 89.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00218/1.707, allocations: 469.2 kB / 0.7982 GB, free: 88.95 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01918/1.726, allocations: 6.988 MB / 0.805 GB, free: 82.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001069/1.727, allocations: 64 kB / 0.8051 GB, free: 81.96 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04023/1.767, allocations: 35.35 MB / 0.8396 GB, free: 46.46 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.767, allocations: 6 kB / 0.8396 GB, free: 46.45 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03297/1.8, allocations: 19.69 MB / 0.8588 GB, free: 26.77 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/1.802, allocations: 0.7051 MB / 0.8595 GB, free: 26.04 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001503/1.804, allocations: 69.16 kB / 0.8596 GB, free: 25.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003462/1.807, allocations: 323.5 kB / 0.8599 GB, free: 25.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009438/1.808, allocations: 254.7 kB / 0.8601 GB, free: 25.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002695/1.809, allocations: 95.98 kB / 0.8602 GB, free: 25.32 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005848/1.815, allocations: 4.642 MB / 0.8648 GB, free: 20.71 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.815, allocations: 0 / 0.8648 GB, free: 20.71 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009027/1.824, allocations: 2.199 MB / 0.8669 GB, free: 18.51 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 (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.0007292/1.824, allocations: 220 kB / 0.8671 GB, free: 18.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.2179/2.042, allocations: 15.34 MB / 0.8821 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/2.042, allocations: 1.719 kB / 0.8821 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.053, allocations: 5.268 MB / 0.8872 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0067/2.06, allocations: 1.023 MB / 0.8882 GB, free: 147.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04045/2.1, allocations: 20.52 MB / 0.9083 GB, free: 140 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00725/2.108, allocations: 5.728 MB / 0.9139 GB, free: 138.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007233/2.115, allocations: 2.697 MB / 0.9165 GB, free: 137.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/2.116, allocations: 399.9 kB / 0.9169 GB, free: 137.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/2.116, allocations: 0 / 0.9169 GB, free: 137.9 MB / 478.1 MB Notification: Performance of Templates: time 0.1632/2.279, allocations: 103.3 MB / 1.018 GB, free: 39.44 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches