Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 191.6 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.179/1.179, allocations: 226.5 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007579/0.0007579, allocations: 98.45 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001993/0.0001994, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1785/0.1787, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.07618/0.255, allocations: 103.8 MB / 0.4999 GB, free: 3.629 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2209/0.4759, allocations: 21.47 MB / 0.5209 GB, free: 15.92 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01745/0.4934, allocations: 0.5013 MB / 0.5214 GB, free: 15.92 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01381/0.5072, allocations: 5.34 MB / 0.5266 GB, free: 15.17 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03449/0.5418, allocations: 15.78 MB / 0.542 GB, free: 8.117 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006673/0.5485, allocations: 1.775 MB / 0.5437 GB, free: 7.613 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3971/0.9456, allocations: 180.4 MB / 0.7199 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01567/0.9613, allocations: 13.81 MB / 0.7334 GB, free: 110 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005543/0.9669, allocations: 3.242 MB / 0.7366 GB, free: 108 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006491/0.9734, allocations: 5.044 MB / 0.7415 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001972/0.9754, allocations: 340 kB / 0.7418 GB, free: 104 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00412/0.9795, allocations: 1.549 MB / 0.7433 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.004458/0.984, allocations: 4.206 MB / 0.7475 GB, free: 99.61 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.006596/0.9906, allocations: 4.487 MB / 0.7518 GB, free: 97.94 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01157/1.002, allocations: 14.29 MB / 0.7658 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/1.002, allocations: 0 / 0.7658 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.515e-06/1.002, allocations: 4 kB / 0.7658 GB, free: 85.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000515/1.003, allocations: 0 / 0.7658 GB, free: 85.52 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: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.02298/1.026, allocations: 9.827 MB / 0.7754 GB, free: 76.47 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/1.026, allocations: 8.031 kB / 0.7754 GB, free: 76.46 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003874/1.03, allocations: 1.339 MB / 0.7767 GB, free: 75.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2605/1.29, allocations: 25.06 MB / 0.8012 GB, free: 51.76 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/1.308, allocations: 9.964 MB / 0.8109 GB, free: 44.67 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/1.309, allocations: 0.5259 MB / 0.8114 GB, free: 44.37 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/1.311, allocations: 0.726 MB / 0.8121 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03339/1.345, allocations: 19.14 MB / 0.8308 GB, free: 29.36 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004621/1.345, allocations: 94.45 kB / 0.8309 GB, free: 29.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002044/1.347, allocations: 328.9 kB / 0.8312 GB, free: 29.21 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003734/1.351, allocations: 2.814 MB / 0.834 GB, free: 26.94 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02867/1.38, allocations: 15.47 MB / 0.8491 GB, free: 15.66 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.4241/1.804, allocations: 72.56 MB / 0.9199 GB, free: 187.5 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01866/1.822, allocations: 8.091 MB / 0.9278 GB, free: 186.8 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004253/1.827, allocations: 4.243 MB / 0.932 GB, free: 186.2 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01652/1.843, allocations: 14.17 MB / 0.9458 GB, free: 178 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.918e-05/1.843, allocations: 70.28 kB / 0.9459 GB, free: 178 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=310): time 5.38e-06/1.843, allocations: 2.125 kB / 0.9459 GB, free: 178 MB / 0.5262 GB Notification: Performance of matching and sorting (n=416): time 0.1498/1.993, allocations: 48.74 MB / 0.9935 GB, free: 133.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.485e-05/1.993, allocations: 406.7 kB / 0.9939 GB, free: 133.5 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/2.004, allocations: 7.549 MB / 1.001 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.000814/2.005, allocations: 94.33 kB / 1.001 GB, free: 125.8 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002976/2.008, allocations: 5.789 MB / 1.007 GB, free: 120.1 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001428/2.009, allocations: 1.501 MB / 1.008 GB, free: 118.6 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005831/2.01, allocations: 187.8 kB / 1.009 GB, free: 118.4 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003207/2.01, allocations: 0.6944 MB / 1.009 GB, free: 117.7 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005168/2.015, allocations: 4.418 MB / 1.014 GB, free: 113.3 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007211/2.023, allocations: 9.365 MB / 1.023 GB, free: 101.6 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01369/2.036, allocations: 14.85 MB / 1.037 GB, free: 84.83 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001187/2.037, allocations: 52 kB / 1.037 GB, free: 84.78 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1204) (initialization): time 0.03028/2.067, allocations: 18 MB / 1.055 GB, free: 66.73 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-05/2.067, allocations: 84.25 kB / 1.055 GB, free: 66.65 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/2.067, allocations: 172 kB / 1.055 GB, free: 66.48 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01432/2.081, allocations: 5.194 MB / 1.06 GB, free: 61.28 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00551/2.087, allocations: 1.953 MB / 1.062 GB, free: 59.32 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03271/2.12, allocations: 28.25 MB / 1.09 GB, free: 30.95 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006466/2.126, allocations: 0.5459 MB / 1.09 GB, free: 30.41 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000954/2.127, allocations: 0.5039 MB / 1.091 GB, free: 29.9 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 774 * 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],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 (1047): * Single equations (assignments): 1042 * 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%) 129} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005095/2.132, allocations: 4.085 MB / 1.095 GB, free: 25.8 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/2.133, allocations: 0.7058 MB / 1.095 GB, free: 25.09 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02062/2.154, allocations: 11.87 MB / 1.107 GB, free: 13.16 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.086e-05/2.154, allocations: 47.98 kB / 1.107 GB, free: 13.12 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.117e-05/2.154, allocations: 20 kB / 1.107 GB, free: 13.1 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.125e-05/2.154, allocations: 27.88 kB / 1.107 GB, free: 13.07 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2058/2.36, allocations: 25.66 MB / 1.132 GB, free: 205.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.741e-05/2.36, allocations: 7.812 kB / 1.132 GB, free: 205.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002481/2.362, allocations: 0.5732 MB / 1.133 GB, free: 205.1 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01393/2.376, allocations: 4.824 MB / 1.137 GB, free: 204 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006217/2.377, allocations: 79.36 kB / 1.138 GB, free: 204 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/2.406, allocations: 25.02 MB / 1.162 GB, free: 193.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/2.406, allocations: 19.34 kB / 1.162 GB, free: 193.2 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02657/2.433, allocations: 17.72 MB / 1.179 GB, free: 176.5 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003271/2.436, allocations: 1.452 MB / 1.181 GB, free: 175.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/2.437, allocations: 75.98 kB / 1.181 GB, free: 175.3 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003306/2.441, allocations: 275.2 kB / 1.181 GB, free: 175.1 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/2.442, allocations: 298.4 kB / 1.181 GB, free: 174.8 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000296/2.442, allocations: 112 kB / 1.181 GB, free: 174.7 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006247/2.448, allocations: 4.845 MB / 1.186 GB, free: 169.8 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.5e-07/2.448, allocations: 0 / 1.186 GB, free: 169.8 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.00754/2.456, allocations: 2.226 MB / 1.188 GB, free: 167.6 MB / 0.5262 GB 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 (287): * Single equations (assignments): 283 * 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%) 113} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.026/2.482, allocations: 18.5 MB / 1.206 GB, free: 149.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.0127/2.495, allocations: 11.15 MB / 1.217 GB, free: 138.3 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/2.495, allocations: 7.938 kB / 1.217 GB, free: 138.3 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.00566/2.5, allocations: 4.794 MB / 1.222 GB, free: 133.5 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01272/2.513, allocations: 1.095 MB / 1.223 GB, free: 132.4 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1266/2.64, allocations: 89.44 MB / 1.31 GB, free: 36.92 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006297/2.646, allocations: 6.374 MB / 1.317 GB, free: 30.51 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00439/2.651, allocations: 4.381 MB / 1.321 GB, free: 26.12 MB / 0.5262 GB Notification: Performance of SimCode: time 8.01e-07/2.651, allocations: 0 / 1.321 GB, free: 26.12 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 12.98/15.63, allocations: 196.9 MB / 1.513 GB, free: 49.31 MB / 0.5262 GB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches