Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009851/0.0009851, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.221/1.221, allocations: 226.6 MB / 244.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007294/0.0007294, allocations: 99.3 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002029/0.0002029, allocations: 8 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1804, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07447/0.2549, allocations: 101.2 MB / 0.4968 GB, free: 6.387 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2193/0.4742, allocations: 20.43 MB / 0.5167 GB, free: 15.97 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01847/0.4927, allocations: 0.4965 MB / 0.5172 GB, free: 15.97 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01458/0.5074, allocations: 5.288 MB / 0.5224 GB, free: 15.67 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03762/0.545, allocations: 15.62 MB / 0.5376 GB, free: 9.383 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006391/0.5514, allocations: 1.492 MB / 0.5391 GB, free: 8.969 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.3756/0.9271, allocations: 179.5 MB / 0.7144 GB, free: 116 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01136/0.9385, allocations: 9.275 MB / 0.7235 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005249/0.9438, allocations: 3.083 MB / 0.7265 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005851/0.9497, allocations: 4.61 MB / 0.731 GB, free: 112.7 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001788/0.9515, allocations: 296 kB / 0.7313 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003514/0.955, allocations: 1.125 MB / 0.7324 GB, free: 111.4 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.004313/0.9593, allocations: 3.822 MB / 0.7361 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002716/0.9621, allocations: 1.628 MB / 0.7377 GB, free: 108 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.008947/0.971, allocations: 10.96 MB / 0.7484 GB, free: 98.49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.9711, allocations: 0 / 0.7484 GB, free: 98.49 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.383e-06/0.9711, allocations: 0 / 0.7484 GB, free: 98.49 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004565/0.9715, allocations: 0 / 0.7484 GB, free: 98.49 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: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.01669/0.9882, allocations: 8.435 MB / 0.7566 GB, free: 90.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.9883, allocations: 12.03 kB / 0.7566 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0388/1.027, allocations: 5.399 MB / 0.7619 GB, free: 85.45 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01659/1.044, allocations: 7.73 MB / 0.7695 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002762/1.044, allocations: 447.8 kB / 0.7699 GB, free: 79.6 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/1.046, allocations: 0.6141 MB / 0.7705 GB, free: 79.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0256/1.071, allocations: 17.15 MB / 0.7872 GB, free: 65.88 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002471/1.072, allocations: 98.67 kB / 0.7873 GB, free: 65.82 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006401/1.072, allocations: 280.7 kB / 0.7876 GB, free: 65.74 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00349/1.076, allocations: 2.859 MB / 0.7904 GB, free: 63.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02401/1.1, allocations: 14.04 MB / 0.8041 GB, free: 53.68 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.07227/1.172, allocations: 70.04 MB / 0.8725 GB, free: 4.906 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/1.192, allocations: 8.273 MB / 0.8806 GB, free: 12.5 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00556/1.197, allocations: 4.629 MB / 0.8851 GB, free: 7.867 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3214/1.519, allocations: 12.76 MB / 0.8976 GB, free: 230 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/1.519, allocations: 68.06 kB / 0.8976 GB, free: 229.9 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=294): time 5.43e-06/1.519, allocations: 0 / 0.8976 GB, free: 229.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=360): time 0.1594/1.678, allocations: 53.45 MB / 0.9498 GB, free: 195.1 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.678, allocations: 402.2 kB / 0.9502 GB, free: 194.6 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008041/1.686, allocations: 7.222 MB / 0.9573 GB, free: 187.4 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008395/1.687, allocations: 84.83 kB / 0.9574 GB, free: 187.3 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002311/1.689, allocations: 5.205 MB / 0.9624 GB, free: 182.1 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001295/1.691, allocations: 1.336 MB / 0.9637 GB, free: 180.8 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004366/1.691, allocations: 188 kB / 0.9639 GB, free: 180.6 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003103/1.692, allocations: 0.6949 MB / 0.9646 GB, free: 179.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005412/1.697, allocations: 4.676 MB / 0.9692 GB, free: 175.2 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007023/1.704, allocations: 9.51 MB / 0.9784 GB, free: 163.4 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008046/1.712, allocations: 6.471 MB / 0.9848 GB, free: 156.9 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-05/1.712, allocations: 44 kB / 0.9848 GB, free: 156.9 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.03775/1.75, allocations: 20.39 MB / 1.005 GB, free: 136.4 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/1.75, allocations: 76 kB / 1.005 GB, free: 136.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002388/1.75, allocations: 168 kB / 1.005 GB, free: 136.2 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01928/1.77, allocations: 7.344 MB / 1.012 GB, free: 128.9 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006123/1.776, allocations: 2.004 MB / 1.014 GB, free: 126.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03907/1.815, allocations: 34.34 MB / 1.048 GB, free: 92.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006884/1.822, allocations: 0.6085 MB / 1.048 GB, free: 91.49 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/1.823, allocations: 0.5039 MB / 1.049 GB, free: 90.98 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],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 (1082): * Single equations (assignments): 1076 * 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%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005901/1.829, allocations: 3.587 MB / 1.052 GB, free: 87.39 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/1.831, allocations: 0.6595 MB / 1.053 GB, free: 86.72 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02511/1.856, allocations: 13.92 MB / 1.066 GB, free: 72.72 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-05/1.856, allocations: 36 kB / 1.066 GB, free: 72.69 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.079e-05/1.856, allocations: 20 kB / 1.067 GB, free: 72.67 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.682e-05/1.856, allocations: 15.94 kB / 1.067 GB, free: 72.65 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04284/1.899, allocations: 27.85 MB / 1.094 GB, free: 44.31 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.189e-05/1.899, allocations: 4 kB / 1.094 GB, free: 44.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001873/1.901, allocations: 476 kB / 1.094 GB, free: 43.84 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01755/1.918, allocations: 6.991 MB / 1.101 GB, free: 36.83 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004665/1.919, allocations: 63.98 kB / 1.101 GB, free: 36.77 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2075/2.126, allocations: 33.22 MB / 1.134 GB, free: 204.9 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/2.126, allocations: 15.5 kB / 1.134 GB, free: 204.9 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0304/2.157, allocations: 19.66 MB / 1.153 GB, free: 198.2 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003266/2.16, allocations: 1.431 MB / 1.154 GB, free: 197.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001023/2.161, allocations: 64.72 kB / 1.154 GB, free: 197.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003224/2.164, allocations: 332.2 kB / 1.154 GB, free: 197.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007071/2.165, allocations: 254.2 kB / 1.155 GB, free: 197.6 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002669/2.165, allocations: 99.69 kB / 1.155 GB, free: 197.6 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.00631/2.172, allocations: 4.602 MB / 1.159 GB, free: 196.1 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.21e-07/2.172, allocations: 3.969 kB / 1.159 GB, free: 196.1 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.007571/2.179, allocations: 2.22 MB / 1.161 GB, free: 193.9 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (232): * Single equations (assignments): 226 * 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%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006152/2.18, allocations: 231.7 kB / 1.162 GB, free: 193.7 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01512/2.195, allocations: 11.94 MB / 1.173 GB, free: 182.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/2.195, allocations: 4 kB / 1.173 GB, free: 182.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.007496/2.202, allocations: 5.272 MB / 1.179 GB, free: 176.8 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006097/2.209, allocations: 0.9652 MB / 1.179 GB, free: 175.9 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03326/2.242, allocations: 23.92 MB / 1.203 GB, free: 152.2 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005407/2.247, allocations: 5.649 MB / 1.208 GB, free: 146.5 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001676/2.249, allocations: 459.4 kB / 1.209 GB, free: 146.1 MB / 0.5262 GB Notification: Performance of SimCode: time 8.52e-07/2.249, allocations: 0 / 1.209 GB, free: 146.1 MB / 0.5262 GB Notification: Performance of Templates: time 0.3797/2.629, allocations: 213.7 MB / 1.417 GB, free: 138.4 MB / 0.5262 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches