Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 175.5 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007376/0.0007377, allocations: 82.42 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003213/0.0003213, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2184, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.0711/0.2896, allocations: 93.91 MB / 469 MB, free: 2.566 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0417/0.3313, allocations: 19.14 MB / 488.1 MB, free: 15.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01648/0.3478, allocations: 466.8 kB / 488.6 MB, free: 14.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01462/0.3625, allocations: 4.907 MB / 493.5 MB, free: 9.977 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2331/0.5956, allocations: 14.61 MB / 0.4962 GB, free: 5.148 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006224/0.6019, allocations: 1.468 MB / 0.4976 GB, free: 5.113 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.11/0.7119, allocations: 98.27 MB / 0.5936 GB, free: 14.75 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01402/0.726, allocations: 9.941 MB / 0.6033 GB, free: 7.516 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005787/0.7318, allocations: 2.937 MB / 0.6062 GB, free: 5.496 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006732/0.7386, allocations: 4.459 MB / 0.6105 GB, free: 2.254 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.7403, allocations: 276 kB / 0.6108 GB, free: 1.984 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00361/0.7439, allocations: 1.286 MB / 0.612 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004881/0.7488, allocations: 3.711 MB / 0.6157 GB, free: 14.19 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006455/0.7553, allocations: 3.674 MB / 0.6193 GB, free: 12.83 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.7666, allocations: 10.6 MB / 0.6296 GB, free: 3.621 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.7667, allocations: 6.344 kB / 0.6296 GB, free: 3.617 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.7667, allocations: 0 / 0.6296 GB, free: 3.617 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003641/0.767, allocations: 0 / 0.6296 GB, free: 3.617 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2386 * Number of variables: 2386 Notification: Performance of Generate backend data structure: time 0.01605/0.7831, allocations: 8.025 MB / 0.6375 GB, free: 12.19 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.7832, allocations: 12.03 kB / 0.6375 GB, free: 12.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03762/0.8208, allocations: 5.352 MB / 0.6427 GB, free: 7.016 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01796/0.8388, allocations: 8.191 MB / 0.6507 GB, free: 1.066 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.8391, allocations: 427.2 kB / 0.6511 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.8411, allocations: 0.5896 MB / 0.6517 GB, free: 452 kB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02759/0.8687, allocations: 16.58 MB / 0.6679 GB, free: 3.504 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000283/0.869, allocations: 101.3 kB / 0.668 GB, free: 3.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007004/0.8698, allocations: 266.9 kB / 0.6682 GB, free: 3.336 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003989/0.8738, allocations: 2.764 MB / 0.6709 GB, free: 1.055 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.342/1.216, allocations: 13.63 MB / 0.6842 GB, free: 204.6 MB / 490.8 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.07359/1.289, allocations: 68.05 MB / 0.7507 GB, free: 140.9 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01702/1.306, allocations: 7.919 MB / 0.7584 GB, free: 132.9 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004826/1.311, allocations: 4.503 MB / 0.7628 GB, free: 128.4 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01684/1.328, allocations: 12.42 MB / 0.7749 GB, free: 115.9 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/1.328, allocations: 72.5 kB / 0.775 GB, free: 115.8 MB / 490.8 MB Notification: Performance of pre-optimization done (n=280): time 6.192e-06/1.328, allocations: 0 / 0.775 GB, free: 115.8 MB / 490.8 MB Notification: Performance of matching and sorting (n=340): time 0.1554/1.484, allocations: 50.07 MB / 0.8239 GB, free: 65.99 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/1.484, allocations: 402.1 kB / 0.8243 GB, free: 65.51 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009175/1.493, allocations: 7.136 MB / 0.8313 GB, free: 58.39 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009492/1.494, allocations: 78.33 kB / 0.8313 GB, free: 58.31 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002843/1.497, allocations: 5.033 MB / 0.8362 GB, free: 53.28 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.499, allocations: 1.267 MB / 0.8375 GB, free: 52.03 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005571/1.499, allocations: 183.9 kB / 0.8377 GB, free: 51.85 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0003665/1.5, allocations: 0.6942 MB / 0.8383 GB, free: 51.14 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005428/1.505, allocations: 4.511 MB / 0.8427 GB, free: 46.62 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007387/1.512, allocations: 9.228 MB / 0.8518 GB, free: 35.11 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01455/1.527, allocations: 14.51 MB / 0.8659 GB, free: 18.32 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001142/1.527, allocations: 44 kB / 0.866 GB, free: 18.27 MB / 490.8 MB Notification: Performance of matching and sorting (n=1185) (initialization): time 0.2372/1.764, allocations: 19.7 MB / 0.8852 GB, free: 182.6 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000113/1.764, allocations: 74.31 kB / 0.8853 GB, free: 182.6 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002064/1.765, allocations: 158 kB / 0.8854 GB, free: 182.6 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02096/1.786, allocations: 7.038 MB / 0.8923 GB, free: 182.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006765/1.792, allocations: 1.929 MB / 0.8942 GB, free: 182.6 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03985/1.832, allocations: 33.21 MB / 0.9266 GB, free: 168.3 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007614/1.84, allocations: 0.597 MB / 0.9272 GB, free: 168.1 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001613/1.842, allocations: 0.4898 MB / 0.9277 GB, free: 168 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (1049): * Single equations (assignments): 1043 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 94,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00618/1.848, allocations: 3.482 MB / 0.9311 GB, free: 165.1 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00162/1.849, allocations: 0.6414 MB / 0.9317 GB, free: 164.8 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02412/1.874, allocations: 13.31 MB / 0.9447 GB, free: 151.5 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-05/1.874, allocations: 36 kB / 0.9447 GB, free: 151.5 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.956e-05/1.874, allocations: 16 kB / 0.9447 GB, free: 151.4 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-05/1.874, allocations: 22.94 kB / 0.9448 GB, free: 151.4 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04305/1.917, allocations: 26.73 MB / 0.9709 GB, free: 124.4 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.714e-05/1.917, allocations: 8 kB / 0.9709 GB, free: 124.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/1.919, allocations: 423.3 kB / 0.9713 GB, free: 124 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/1.936, allocations: 6.673 MB / 0.9778 GB, free: 117.4 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006762/1.937, allocations: 65.02 kB / 0.9779 GB, free: 117.3 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0363/1.973, allocations: 31.95 MB / 1.009 GB, free: 85.23 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.973, allocations: 11.94 kB / 1.009 GB, free: 85.21 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0296/2.003, allocations: 18.73 MB / 1.027 GB, free: 66.69 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003607/2.006, allocations: 1.395 MB / 1.029 GB, free: 65.33 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/2.008, allocations: 63.98 kB / 1.029 GB, free: 65.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00338/2.011, allocations: 315.5 kB / 1.029 GB, free: 64.96 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007825/2.012, allocations: 242.7 kB / 1.029 GB, free: 64.73 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002686/2.012, allocations: 95.91 kB / 1.029 GB, free: 64.64 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006357/2.019, allocations: 4.564 MB / 1.034 GB, free: 60.1 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.01e-07/2.019, allocations: 0 / 1.034 GB, free: 60.1 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008133/2.027, allocations: 2.147 MB / 1.036 GB, free: 57.96 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (215): * Single equations (assignments): 209 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006663/2.027, allocations: 211.4 kB / 1.036 GB, free: 57.76 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01598/2.043, allocations: 11.51 MB / 1.047 GB, free: 46.27 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/2.043, allocations: 0 / 1.047 GB, free: 46.27 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007542/2.051, allocations: 4.999 MB / 1.052 GB, free: 41.23 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0124/2.063, allocations: 0.9246 MB / 1.053 GB, free: 40.32 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.198/2.262, allocations: 23.02 MB / 1.076 GB, free: 178.9 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008612/2.27, allocations: 5.472 MB / 1.081 GB, free: 177.9 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001851/2.272, allocations: 443 kB / 1.081 GB, free: 177.9 MB / 490.8 MB Notification: Performance of SimCode: time 1.162e-06/2.272, allocations: 0 / 1.081 GB, free: 177.9 MB / 490.8 MB Notification: Performance of Templates: time 0.4146/2.687, allocations: 206 MB / 1.283 GB, free: 164.6 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches