Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 99.38 kB / 16.95 MB, free: 6.453 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.001338/0.001338, allocations: 186.1 kB / 17.84 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004615, allocations: 12 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.095/0.09548, allocations: 47.58 MB / 328.4 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.2745/0.37, allocations: 103.8 MB / 432.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.06045/0.4305, allocations: 21.46 MB / 453.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02362/0.4542, allocations: 0.4987 MB / 454.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01924/0.4735, allocations: 5.342 MB / 459.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04672/0.5202, allocations: 15.79 MB / 475.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0121/0.5324, allocations: 1.706 MB / 477 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4076/0.94, allocations: 99.39 MB / 0.5628 GB, free: 64.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01712/0.9572, allocations: 12.78 MB / 0.5753 GB, free: 56.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006055/0.9633, allocations: 3.245 MB / 0.5785 GB, free: 54.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007578/0.9709, allocations: 5.075 MB / 0.5834 GB, free: 50.74 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002324/0.9732, allocations: 340 kB / 0.5838 GB, free: 50.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004407/0.9776, allocations: 1.331 MB / 0.5851 GB, free: 49.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007222/0.9849, allocations: 4.251 MB / 0.5892 GB, free: 46.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005546/0.9905, allocations: 1.844 MB / 0.591 GB, free: 45.51 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01401/1.004, allocations: 13.66 MB / 0.6044 GB, free: 33.65 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/1.005, allocations: 0 / 0.6044 GB, free: 33.65 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.645e-06/1.005, allocations: 0 / 0.6044 GB, free: 33.65 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006253/1.005, allocations: 4 kB / 0.6044 GB, free: 33.65 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02163/1.027, allocations: 9.366 MB / 0.6135 GB, free: 24.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/1.027, allocations: 14 kB / 0.6135 GB, free: 24.97 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0379/1.065, allocations: 5.535 MB / 0.6189 GB, free: 19.62 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02055/1.085, allocations: 8.988 MB / 0.6277 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000478/1.086, allocations: 0.5275 MB / 0.6282 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004798/1.091, allocations: 0.7246 MB / 0.6289 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03575/1.126, allocations: 19.53 MB / 0.648 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003298/1.127, allocations: 96.42 kB / 0.6481 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001168/1.128, allocations: 332.6 kB / 0.6484 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003951/1.132, allocations: 2.814 MB / 0.6512 GB, free: 11.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0377/1.17, allocations: 16.25 MB / 0.667 GB, free: 13.22 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.5152/1.685, allocations: 74.6 MB / 0.7399 GB, free: 157 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0213/1.706, allocations: 8.513 MB / 0.7482 GB, free: 156.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00597/1.712, allocations: 4.749 MB / 0.7528 GB, free: 156.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02043/1.733, allocations: 15.41 MB / 0.7679 GB, free: 147.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/1.733, allocations: 74.44 kB / 0.768 GB, free: 147.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=319): time 5.249e-06/1.733, allocations: 0 / 0.768 GB, free: 147.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1541/1.887, allocations: 50.63 MB / 0.8174 GB, free: 103.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/1.887, allocations: 402.7 kB / 0.8178 GB, free: 103.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01344/1.901, allocations: 7.599 MB / 0.8252 GB, free: 95.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001996/1.903, allocations: 89.7 kB / 0.8253 GB, free: 95.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004737/1.907, allocations: 5.622 MB / 0.8308 GB, free: 90.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003028/1.91, allocations: 1.531 MB / 0.8323 GB, free: 88.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/1.912, allocations: 204.7 kB / 0.8325 GB, free: 88.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005167/1.912, allocations: 0.7282 MB / 0.8332 GB, free: 87.72 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007051/1.919, allocations: 5.083 MB / 0.8381 GB, free: 82.63 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01136/1.931, allocations: 10.16 MB / 0.8481 GB, free: 70.13 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/1.942, allocations: 7.038 MB / 0.8549 GB, free: 63.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002266/1.943, allocations: 52 kB / 0.855 GB, free: 63.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.0512/1.994, allocations: 20.78 MB / 0.8753 GB, free: 42.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002942/1.994, allocations: 83.12 kB / 0.8754 GB, free: 42.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003655/1.994, allocations: 176 kB / 0.8755 GB, free: 42.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01828/2.013, allocations: 6.486 MB / 0.8819 GB, free: 35.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007361/2.02, allocations: 2.148 MB / 0.884 GB, free: 33.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04256/2.063, allocations: 31.43 MB / 0.9147 GB, free: 1.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009144/2.072, allocations: 0.6202 MB / 0.9153 GB, free: 1.336 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002211/2.074, allocations: 0.5351 MB / 0.9158 GB, free: 0.8008 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1180): * Single equations (assignments): 1175 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2532/2.327, allocations: 4.101 MB / 0.9198 GB, free: 177.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001868/2.329, allocations: 0.6939 MB / 0.9205 GB, free: 177.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02969/2.359, allocations: 13.81 MB / 0.934 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.272e-05/2.359, allocations: 45.42 kB / 0.934 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.963e-05/2.359, allocations: 23.5 kB / 0.934 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.633e-05/2.359, allocations: 21.61 kB / 0.934 GB, free: 176.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06157/2.421, allocations: 27.14 MB / 0.9605 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.785e-05/2.421, allocations: 7.844 kB / 0.9606 GB, free: 165.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00282/2.424, allocations: 0.5475 MB / 0.9611 GB, free: 165.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01688/2.441, allocations: 5.95 MB / 0.9669 GB, free: 161.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001453/2.442, allocations: 91.81 kB / 0.967 GB, free: 161.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03555/2.478, allocations: 28.19 MB / 0.9945 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.518e-06/2.478, allocations: 14.75 kB / 0.9945 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0326/2.51, allocations: 19.95 MB / 1.014 GB, free: 113.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004423/2.515, allocations: 1.543 MB / 1.016 GB, free: 111.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002061/2.517, allocations: 77.33 kB / 1.016 GB, free: 111.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/2.522, allocations: 323.4 kB / 1.016 GB, free: 111.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001117/2.523, allocations: 299.1 kB / 1.016 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000347/2.523, allocations: 117.5 kB / 1.016 GB, free: 111.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008372/2.531, allocations: 4.844 MB / 1.021 GB, free: 106.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.51e-07/2.531, allocations: 0 / 1.021 GB, free: 106.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.013/2.544, allocations: 2.413 MB / 1.023 GB, free: 103.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (292): * Single equations (assignments): 288 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 111} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001505/2.546, allocations: 262 kB / 1.024 GB, free: 103.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01918/2.565, allocations: 12.34 MB / 1.036 GB, free: 91.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/2.565, allocations: 0 / 1.036 GB, free: 91.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008437/2.574, allocations: 5.089 MB / 1.041 GB, free: 86.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009624/2.583, allocations: 1.023 MB / 1.042 GB, free: 85.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04755/2.631, allocations: 25.88 MB / 1.067 GB, free: 59.53 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/2.641, allocations: 6.397 MB / 1.073 GB, free: 53.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008403/2.65, allocations: 2.958 MB / 1.076 GB, free: 50.13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/2.652, allocations: 431.4 kB / 1.076 GB, free: 49.71 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/2.652, allocations: 4 kB / 1.076 GB, free: 49.71 MB / 494.1 MB Notification: Performance of Templates: time 0.3963/3.048, allocations: 102.4 MB / 1.176 GB, free: 123.4 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches