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: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007205/0.0007206, allocations: 103.1 kB / 296.8 MB, free: 6.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002293, allocations: 8 kB / 356.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1945, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.07958/0.2741, allocations: 103.8 MB / 0.4998 GB, free: 3.668 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2496/0.5237, allocations: 21.46 MB / 0.5208 GB, free: 15.89 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02342/0.5472, allocations: 0.4997 MB / 0.5213 GB, free: 15.89 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01759/0.5649, allocations: 5.345 MB / 0.5265 GB, free: 15.15 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04438/0.6093, allocations: 15.78 MB / 0.5419 GB, free: 8.109 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008213/0.6175, allocations: 1.776 MB / 0.5436 GB, free: 7.605 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.442/1.06, allocations: 180.4 MB / 0.7198 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01667/1.076, allocations: 13.8 MB / 0.7333 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006492/1.083, allocations: 3.237 MB / 0.7365 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007445/1.09, allocations: 5.041 MB / 0.7414 GB, free: 104.3 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.002588/1.093, allocations: 340 kB / 0.7417 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004925/1.098, allocations: 1.557 MB / 0.7433 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.005498/1.103, allocations: 4.224 MB / 0.7474 GB, free: 99.57 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.006383/1.11, allocations: 4.261 MB / 0.7515 GB, free: 98.02 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.01078/1.121, allocations: 13.62 MB / 0.7648 GB, free: 86.19 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/1.121, allocations: 5.641 kB / 0.7648 GB, free: 86.18 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.595e-06/1.121, allocations: 0 / 0.7648 GB, free: 86.18 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005259/1.121, allocations: 0 / 0.7648 GB, free: 86.18 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.01952/1.141, allocations: 9.247 MB / 0.7739 GB, free: 77.63 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/1.141, allocations: 12.03 kB / 0.7739 GB, free: 77.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03783/1.179, allocations: 5.528 MB / 0.7793 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01818/1.197, allocations: 8.686 MB / 0.7878 GB, free: 66.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/1.197, allocations: 0.5235 MB / 0.7883 GB, free: 65.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00261/1.2, allocations: 0.724 MB / 0.789 GB, free: 65.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03636/1.236, allocations: 19.53 MB / 0.8081 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003999/1.237, allocations: 93.89 kB / 0.8082 GB, free: 50.42 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001936/1.239, allocations: 328.2 kB / 0.8085 GB, free: 50.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003626/1.242, allocations: 2.817 MB / 0.8112 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03242/1.275, allocations: 16.26 MB / 0.8271 GB, free: 37 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.4273/1.702, allocations: 74.51 MB / 0.8999 GB, free: 210.3 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02005/1.722, allocations: 8.537 MB / 0.9082 GB, free: 209.6 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005543/1.728, allocations: 4.758 MB / 0.9128 GB, free: 209.5 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02012/1.748, allocations: 15.4 MB / 0.9279 GB, free: 202.9 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/1.748, allocations: 65.52 kB / 0.9279 GB, free: 202.8 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=321): time 6.181e-06/1.748, allocations: 0 / 0.9279 GB, free: 202.8 MB / 0.5262 GB Notification: Performance of matching and sorting (n=428): time 0.1698/1.918, allocations: 54.86 MB / 0.9815 GB, free: 155.3 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/1.918, allocations: 414.4 kB / 0.9819 GB, free: 154.8 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01154/1.93, allocations: 7.513 MB / 0.9893 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001056/1.931, allocations: 93.7 kB / 0.9893 GB, free: 147.2 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002994/1.934, allocations: 5.589 MB / 0.9948 GB, free: 141.7 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001834/1.936, allocations: 1.567 MB / 0.9963 GB, free: 140.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008665/1.936, allocations: 200 kB / 0.9965 GB, free: 139.9 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0004114/1.937, allocations: 0.7344 MB / 0.9972 GB, free: 139.2 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006376/1.943, allocations: 5.188 MB / 1.002 GB, free: 134 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008924/1.952, allocations: 10.23 MB / 1.012 GB, free: 121.5 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01706/1.969, allocations: 16.27 MB / 1.028 GB, free: 103.3 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/1.969, allocations: 48 kB / 1.028 GB, free: 103.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04215/2.012, allocations: 21.17 MB / 1.049 GB, free: 82.04 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001598/2.012, allocations: 76 kB / 1.049 GB, free: 81.96 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002074/2.012, allocations: 176 kB / 1.049 GB, free: 81.79 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01866/2.031, allocations: 6.653 MB / 1.056 GB, free: 75.12 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006955/2.038, allocations: 2.16 MB / 1.058 GB, free: 72.96 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04619/2.084, allocations: 32.79 MB / 1.09 GB, free: 40.03 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007877/2.092, allocations: 0.628 MB / 1.09 GB, free: 39.4 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/2.094, allocations: 0.5351 MB / 1.091 GB, free: 38.87 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * 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 (1178): * Single equations (assignments): 1173 * 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.007653/2.101, allocations: 4.097 MB / 1.095 GB, free: 34.76 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001796/2.103, allocations: 0.6974 MB / 1.096 GB, free: 34.05 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.21/2.313, allocations: 14.28 MB / 1.11 GB, free: 204.4 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.701e-05/2.313, allocations: 50.5 kB / 1.11 GB, free: 204.4 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.746e-05/2.313, allocations: 26.69 kB / 1.11 GB, free: 204.4 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.818e-05/2.313, allocations: 20.12 kB / 1.11 GB, free: 204.4 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05375/2.367, allocations: 28.23 MB / 1.137 GB, free: 196.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.98e-05/2.367, allocations: 7.844 kB / 1.137 GB, free: 196.8 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00303/2.37, allocations: 0.6031 MB / 1.138 GB, free: 196.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/2.389, allocations: 6.314 MB / 1.144 GB, free: 195.5 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009612/2.39, allocations: 85.94 kB / 1.144 GB, free: 195.5 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03798/2.428, allocations: 29.72 MB / 1.173 GB, free: 172.1 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/2.428, allocations: 11.94 kB / 1.173 GB, free: 172.1 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03377/2.462, allocations: 20.89 MB / 1.193 GB, free: 151.5 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003897/2.466, allocations: 1.573 MB / 1.195 GB, free: 150.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002022/2.468, allocations: 84 kB / 1.195 GB, free: 150.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004394/2.473, allocations: 334.9 kB / 1.195 GB, free: 149.8 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001313/2.474, allocations: 300.3 kB / 1.196 GB, free: 149.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005982/2.475, allocations: 117.9 kB / 1.196 GB, free: 149.4 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.008419/2.483, allocations: 4.784 MB / 1.2 GB, free: 144.7 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.7e-07/2.483, allocations: 3.625 kB / 1.2 GB, free: 144.7 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01146/2.495, allocations: 2.431 MB / 1.203 GB, free: 142.3 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 (296): * Single equations (assignments): 292 * 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%) 116} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001684/2.496, allocations: 287.9 kB / 1.203 GB, free: 142 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01999/2.516, allocations: 12.65 MB / 1.215 GB, free: 129.4 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.551e-05/2.516, allocations: 4 kB / 1.215 GB, free: 129.4 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.008222/2.525, allocations: 5.333 MB / 1.221 GB, free: 124.1 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01608/2.541, allocations: 1.017 MB / 1.222 GB, free: 123.2 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04556/2.586, allocations: 26.62 MB / 1.248 GB, free: 96.76 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01047/2.597, allocations: 6.307 MB / 1.254 GB, free: 90.41 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/2.599, allocations: 491.4 kB / 1.254 GB, free: 89.93 MB / 0.5262 GB Notification: Performance of SimCode: time 1.092e-06/2.599, allocations: 0 / 1.254 GB, free: 89.93 MB / 0.5262 GB Notification: Performance of Templates: time 0.3991/2.998, allocations: 162.9 MB / 1.413 GB, free: 120.4 MB / 0.5262 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (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 & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > 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/jenkins/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