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.001261/0.001261, allocations: 196.7 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.6 MB / 244.7 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000759/0.000759, allocations: 100.2 kB / 296.8 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002102/0.0002102, allocations: 7.984 kB / 356.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2018, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.07513/0.2769, allocations: 101.2 MB / 0.4973 GB, free: 6.207 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.3056/0.5826, allocations: 20.41 MB / 0.5173 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01875/0.6014, allocations: 0.4971 MB / 0.5178 GB, free: 15.98 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01476/0.6162, allocations: 5.286 MB / 0.5229 GB, free: 15.66 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03999/0.6562, allocations: 15.65 MB / 0.5382 GB, free: 9.297 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007457/0.6637, allocations: 1.551 MB / 0.5397 GB, free: 8.859 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.4243/1.088, allocations: 179.6 MB / 0.7151 GB, free: 115.8 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01322/1.101, allocations: 10.27 MB / 0.7251 GB, free: 114.7 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005681/1.107, allocations: 3.08 MB / 0.7281 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006222/1.113, allocations: 4.611 MB / 0.7326 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.001571/1.115, allocations: 294.5 kB / 0.7329 GB, free: 111.2 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003455/1.118, allocations: 1.293 MB / 0.7342 GB, free: 110.1 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.00438/1.123, allocations: 3.825 MB / 0.7379 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.006422/1.129, allocations: 3.813 MB / 0.7416 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.009134/1.138, allocations: 10.96 MB / 0.7523 GB, free: 96.35 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/1.138, allocations: 0 / 0.7523 GB, free: 96.35 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.305e-06/1.138, allocations: 0 / 0.7523 GB, free: 96.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004126/1.139, allocations: 0 / 0.7523 GB, free: 96.35 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.01677/1.156, allocations: 8.329 MB / 0.7605 GB, free: 88.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/1.156, allocations: 8.031 kB / 0.7605 GB, free: 88.64 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03825/1.194, allocations: 5.398 MB / 0.7658 GB, free: 83.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/1.21, allocations: 7.898 MB / 0.7735 GB, free: 77.65 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003277/1.21, allocations: 446.4 kB / 0.7739 GB, free: 77.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002103/1.212, allocations: 0.6081 MB / 0.7745 GB, free: 77.01 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02727/1.239, allocations: 17.16 MB / 0.7913 GB, free: 63.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003715/1.24, allocations: 96.86 kB / 0.7913 GB, free: 63.62 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001501/1.241, allocations: 283.2 kB / 0.7916 GB, free: 63.55 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003983/1.245, allocations: 2.856 MB / 0.7944 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0259/1.271, allocations: 14.05 MB / 0.8081 GB, free: 51.48 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.07371/1.345, allocations: 70.07 MB / 0.8766 GB, free: 2.055 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/1.365, allocations: 8.261 MB / 0.8846 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006626/1.372, allocations: 4.626 MB / 0.8891 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3477/1.72, allocations: 12.77 MB / 0.9016 GB, free: 229.6 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/1.72, allocations: 71.16 kB / 0.9017 GB, free: 229.5 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=294): time 5.911e-06/1.72, allocations: 0 / 0.9017 GB, free: 229.5 MB / 0.5262 GB Notification: Performance of matching and sorting (n=360): time 0.1731/1.893, allocations: 53.37 MB / 0.9538 GB, free: 192.4 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.893, allocations: 398.2 kB / 0.9542 GB, free: 191.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008774/1.902, allocations: 7.226 MB / 0.9612 GB, free: 184.7 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008945/1.903, allocations: 81.7 kB / 0.9613 GB, free: 184.7 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00255/1.905, allocations: 5.213 MB / 0.9664 GB, free: 179.5 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001494/1.907, allocations: 1.33 MB / 0.9677 GB, free: 178.2 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005895/1.907, allocations: 188 kB / 0.9679 GB, free: 178 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0003586/1.908, allocations: 0.6949 MB / 0.9686 GB, free: 177.3 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005872/1.914, allocations: 4.676 MB / 0.9731 GB, free: 172.6 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008162/1.922, allocations: 9.508 MB / 0.9824 GB, free: 160.7 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/1.938, allocations: 14.97 MB / 0.997 GB, free: 143.4 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/1.938, allocations: 48 kB / 0.9971 GB, free: 143.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.04096/1.979, allocations: 20.39 MB / 1.017 GB, free: 123 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 9.659e-05/1.979, allocations: 80.91 kB / 1.017 GB, free: 122.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001595/1.979, allocations: 164 kB / 1.017 GB, free: 122.7 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01958/1.999, allocations: 7.32 MB / 1.024 GB, free: 115.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006314/2.005, allocations: 2 MB / 1.026 GB, free: 113.4 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04174/2.047, allocations: 34.34 MB / 1.06 GB, free: 78.64 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007762/2.054, allocations: 0.611 MB / 1.06 GB, free: 78.03 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/2.056, allocations: 0.4961 MB / 1.061 GB, free: 77.54 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.007189/2.063, allocations: 3.605 MB / 1.064 GB, free: 73.92 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001578/2.065, allocations: 0.6518 MB / 1.065 GB, free: 73.26 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02663/2.092, allocations: 13.93 MB / 1.079 GB, free: 59.25 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.026e-05/2.092, allocations: 41.41 kB / 1.079 GB, free: 59.21 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.549e-05/2.092, allocations: 20 kB / 1.079 GB, free: 59.2 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.542e-05/2.092, allocations: 15.94 kB / 1.079 GB, free: 59.18 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05076/2.143, allocations: 27.86 MB / 1.106 GB, free: 30.82 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.241e-05/2.143, allocations: 9.406 kB / 1.106 GB, free: 30.81 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002202/2.145, allocations: 463.3 kB / 1.106 GB, free: 30.36 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2156/2.361, allocations: 6.999 MB / 1.113 GB, free: 208.2 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000835/2.361, allocations: 62 kB / 1.113 GB, free: 208.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03997/2.401, allocations: 33.23 MB / 1.146 GB, free: 196.3 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/2.401, allocations: 11.12 kB / 1.146 GB, free: 196.3 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03184/2.433, allocations: 19.66 MB / 1.165 GB, free: 187.1 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003662/2.437, allocations: 1.435 MB / 1.166 GB, free: 186.1 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001485/2.438, allocations: 67.92 kB / 1.166 GB, free: 186 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003575/2.442, allocations: 329.2 kB / 1.167 GB, free: 185.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009422/2.443, allocations: 254.4 kB / 1.167 GB, free: 185.5 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003037/2.443, allocations: 99.92 kB / 1.167 GB, free: 185.4 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.007928/2.451, allocations: 4.609 MB / 1.172 GB, free: 180.8 MB / 0.5262 GB Notification: Performance of sort global known variables: time 7.82e-07/2.451, allocations: 0 / 1.172 GB, free: 180.8 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009119/2.46, allocations: 2.225 MB / 1.174 GB, free: 178.6 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.0007656/2.461, allocations: 222.6 kB / 1.174 GB, free: 178.4 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01662/2.478, allocations: 11.95 MB / 1.186 GB, free: 166.5 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/2.478, allocations: 4 kB / 1.186 GB, free: 166.5 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.007706/2.486, allocations: 5.264 MB / 1.191 GB, free: 161.2 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.011/2.497, allocations: 0.9547 MB / 1.192 GB, free: 160.3 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03273/2.529, allocations: 23.91 MB / 1.215 GB, free: 136.6 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005679/2.535, allocations: 5.659 MB / 1.221 GB, free: 130.9 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/2.537, allocations: 465.1 kB / 1.221 GB, free: 130.5 MB / 0.5262 GB Notification: Performance of SimCode: time 6.91e-07/2.537, allocations: 0 / 1.221 GB, free: 130.5 MB / 0.5262 GB Notification: Performance of Templates: time 0.4295/2.967, allocations: 213.3 MB / 1.429 GB, free: 123 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