Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009296/0.0009297, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.6 MB / 244.7 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00071/0.00071, allocations: 100.5 kB / 296.8 MB, free: 6.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002216/0.0002217, allocations: 15.98 kB / 356.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2048, allocations: 51.29 MB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a): time 0.08247/0.2873, allocations: 93.86 MB / 0.4901 GB, free: 13.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2336/0.521, allocations: 19.13 MB / 0.5088 GB, free: 252 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01678/0.5378, allocations: 470.7 kB / 0.5093 GB, free: 252 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01436/0.5522, allocations: 4.902 MB / 0.5141 GB, free: 196 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03474/0.5869, allocations: 14.58 MB / 0.5283 GB, free: 12.56 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006306/0.5933, allocations: 1.456 MB / 0.5297 GB, free: 12.17 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.4269/1.02, allocations: 179.2 MB / 0.7048 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0142/1.034, allocations: 9.805 MB / 0.7143 GB, free: 120 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006164/1.041, allocations: 2.918 MB / 0.7172 GB, free: 120 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008426/1.049, allocations: 4.43 MB / 0.7215 GB, free: 120 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.003256/1.052, allocations: 275.2 kB / 0.7218 GB, free: 120 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005625/1.058, allocations: 1.287 MB / 0.723 GB, free: 120 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.005616/1.064, allocations: 3.68 MB / 0.7266 GB, free: 119.4 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.007684/1.071, allocations: 3.66 MB / 0.7302 GB, free: 118.7 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01008/1.082, allocations: 10.57 MB / 0.7405 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/1.082, allocations: 0 / 0.7405 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.264e-06/1.082, allocations: 0 / 0.7405 GB, free: 109.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004988/1.082, allocations: 4 kB / 0.7405 GB, free: 109.5 MB / 0.4948 GB 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.01658/1.099, allocations: 8.022 MB / 0.7484 GB, free: 102 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/1.099, allocations: 16.03 kB / 0.7484 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03875/1.138, allocations: 5.349 MB / 0.7536 GB, free: 96.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01642/1.154, allocations: 7.714 MB / 0.7611 GB, free: 90.99 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003447/1.154, allocations: 428.5 kB / 0.7615 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002103/1.156, allocations: 0.5816 MB / 0.7621 GB, free: 90.37 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02922/1.186, allocations: 16.58 MB / 0.7783 GB, free: 77.32 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004708/1.186, allocations: 100.8 kB / 0.7784 GB, free: 77.23 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001799/1.188, allocations: 264.9 kB / 0.7786 GB, free: 77.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003856/1.192, allocations: 2.76 MB / 0.7813 GB, free: 74.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.025/1.217, allocations: 13.65 MB / 0.7947 GB, free: 65.14 MB / 0.4948 GB 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.07487/1.292, allocations: 68.12 MB / 0.8612 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01811/1.31, allocations: 7.92 MB / 0.8689 GB, free: 11.59 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005865/1.316, allocations: 4.51 MB / 0.8733 GB, free: 7.074 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3474/1.663, allocations: 12.41 MB / 0.8855 GB, free: 215.4 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/1.663, allocations: 67.81 kB / 0.8855 GB, free: 215.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=280): time 5.851e-06/1.663, allocations: 0.5 kB / 0.8855 GB, free: 215.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=339): time 0.1586/1.822, allocations: 50.97 MB / 0.9353 GB, free: 181.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.218e-05/1.822, allocations: 402.1 kB / 0.9357 GB, free: 181.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008816/1.831, allocations: 7.08 MB / 0.9426 GB, free: 174.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009464/1.832, allocations: 77.7 kB / 0.9427 GB, free: 174.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002588/1.835, allocations: 5.023 MB / 0.9476 GB, free: 169.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001597/1.836, allocations: 1.252 MB / 0.9488 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007469/1.837, allocations: 185.4 kB / 0.949 GB, free: 167.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003638/1.837, allocations: 0.6864 MB / 0.9496 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005699/1.843, allocations: 4.515 MB / 0.954 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007556/1.851, allocations: 9.229 MB / 0.9631 GB, free: 151 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/1.865, allocations: 14.5 MB / 0.9772 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/1.865, allocations: 48 kB / 0.9773 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03538/1.901, allocations: 19.69 MB / 0.9965 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.302e-05/1.901, allocations: 72 kB / 0.9966 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001256/1.901, allocations: 163.9 kB / 0.9967 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01871/1.919, allocations: 7.016 MB / 1.004 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005881/1.925, allocations: 1.926 MB / 1.005 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03812/1.964, allocations: 33.21 MB / 1.038 GB, free: 71.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007294/1.971, allocations: 0.589 MB / 1.038 GB, free: 71.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00144/1.972, allocations: 0.4889 MB / 1.039 GB, free: 70.57 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 733 * Number of states: 0 () * Number of discrete variables: 66 (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 (1048): * Single equations (assignments): 1042 * 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,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.007836/1.98, allocations: 3.47 MB / 1.042 GB, free: 67.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/1.982, allocations: 0.6363 MB / 1.043 GB, free: 66.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0255/2.007, allocations: 13.3 MB / 1.056 GB, free: 53.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.964e-05/2.007, allocations: 32.62 kB / 1.056 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.331e-05/2.007, allocations: 20 kB / 1.056 GB, free: 53.02 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.934e-05/2.008, allocations: 15.94 kB / 1.056 GB, free: 53 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04591/2.053, allocations: 26.71 MB / 1.082 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.134e-05/2.054, allocations: 8 kB / 1.082 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001922/2.055, allocations: 413.4 kB / 1.082 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2127/2.268, allocations: 6.688 MB / 1.089 GB, free: 195.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008707/2.269, allocations: 60.09 kB / 1.089 GB, free: 195.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04137/2.31, allocations: 31.93 MB / 1.12 GB, free: 183 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/2.311, allocations: 13.12 kB / 1.12 GB, free: 183 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0315/2.342, allocations: 18.75 MB / 1.139 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/2.344, allocations: 0.6877 MB / 1.139 GB, free: 169.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001758/2.346, allocations: 71.27 kB / 1.139 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003703/2.349, allocations: 311.5 kB / 1.14 GB, free: 169.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001014/2.35, allocations: 240.6 kB / 1.14 GB, free: 169.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000314/2.351, allocations: 91.59 kB / 1.14 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006726/2.357, allocations: 4.512 MB / 1.144 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.71e-07/2.357, allocations: 7.156 kB / 1.144 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008567/2.366, allocations: 2.138 MB / 1.146 GB, free: 162.5 MB / 0.5105 GB 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 (214): * Single equations (assignments): 208 * 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.0008933/2.367, allocations: 216.7 kB / 1.147 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01613/2.383, allocations: 11.52 MB / 1.158 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/2.383, allocations: 4 kB / 1.158 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007484/2.391, allocations: 4.98 MB / 1.163 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01212/2.403, allocations: 0.9392 MB / 1.164 GB, free: 144.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03431/2.437, allocations: 22.95 MB / 1.186 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006249/2.443, allocations: 5.445 MB / 1.191 GB, free: 116.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00163/2.445, allocations: 447.4 kB / 1.192 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of SimCode: time 9.92e-07/2.445, allocations: 0 / 1.192 GB, free: 116.2 MB / 0.5105 GB Notification: Performance of Templates: time 0.4152/2.86, allocations: 205.3 MB / 1.392 GB, free: 102.2 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1a/Engine1a.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches