Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009808/0.0009809, allocations: 179.5 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007282/0.0007282, allocations: 86.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003294, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2373, allocations: 47.58 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.07633/0.3137, allocations: 103.8 MB / 478.4 MB, free: 8.746 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.04946/0.3632, allocations: 21.46 MB / 499.8 MB, free: 3.215 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02033/0.3835, allocations: 0.5026 MB / 0.4886 GB, free: 2.711 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.2264/0.61, allocations: 5.334 MB / 0.4938 GB, free: 2.621 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04733/0.6574, allocations: 15.78 MB / 0.5092 GB, free: 1.188 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007757/0.6652, allocations: 1.705 MB / 0.5109 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1089/0.7742, allocations: 99.4 MB / 0.608 GB, free: 15.51 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02011/0.7943, allocations: 12.78 MB / 0.6204 GB, free: 6.406 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00661/0.801, allocations: 3.248 MB / 0.6236 GB, free: 4.191 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007908/0.8089, allocations: 5.079 MB / 0.6286 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002307/0.8113, allocations: 340 kB / 0.6289 GB, free: 196 kB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004913/0.8162, allocations: 1.332 MB / 0.6302 GB, free: 15.09 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006851/0.8231, allocations: 4.244 MB / 0.6343 GB, free: 11.62 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004128/0.8273, allocations: 1.853 MB / 0.6362 GB, free: 10.6 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01459/0.8419, allocations: 13.65 MB / 0.6495 GB, free: 14.75 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.8419, allocations: 2.188 kB / 0.6495 GB, free: 14.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.8419, allocations: 0 / 0.6495 GB, free: 14.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005664/0.8425, allocations: 0 / 0.6495 GB, free: 14.75 MB / 490.7 MB 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.02297/0.8655, allocations: 9.368 MB / 0.6586 GB, free: 6.074 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.8656, allocations: 12.03 kB / 0.6586 GB, free: 6.062 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04344/0.909, allocations: 5.536 MB / 0.6641 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4503/1.359, allocations: 8.99 MB / 0.6728 GB, free: 91.77 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005812/1.36, allocations: 0.5233 MB / 0.6733 GB, free: 91.76 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003102/1.363, allocations: 0.7231 MB / 0.674 GB, free: 91.76 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03245/1.396, allocations: 19.53 MB / 0.6931 GB, free: 88.89 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002595/1.396, allocations: 93.08 kB / 0.6932 GB, free: 88.89 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007714/1.397, allocations: 327.9 kB / 0.6935 GB, free: 88.89 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003374/1.4, allocations: 2.818 MB / 0.6963 GB, free: 88.88 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03054/1.431, allocations: 16.25 MB / 0.7121 GB, free: 87.42 MB / 490.8 MB 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.08711/1.518, allocations: 74.61 MB / 0.785 GB, free: 26.94 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/1.538, allocations: 8.51 MB / 0.7933 GB, free: 20.3 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005136/1.543, allocations: 4.761 MB / 0.798 GB, free: 16.53 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01776/1.561, allocations: 15.41 MB / 0.813 GB, free: 0.7031 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.724e-05/1.561, allocations: 72.67 kB / 0.8131 GB, free: 0.625 MB / 490.8 MB Notification: Performance of pre-optimization done (n=319): time 5.741e-06/1.561, allocations: 0 / 0.8131 GB, free: 0.625 MB / 490.8 MB Notification: Performance of matching and sorting (n=419): time 0.3301/1.891, allocations: 50.63 MB / 0.8625 GB, free: 236.4 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/1.892, allocations: 404.8 kB / 0.8629 GB, free: 235.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009801/1.901, allocations: 7.597 MB / 0.8703 GB, free: 234.8 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0008816/1.902, allocations: 91.73 kB / 0.8704 GB, free: 234.8 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.003058/1.905, allocations: 5.619 MB / 0.8759 GB, free: 231.5 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001889/1.907, allocations: 1.535 MB / 0.8774 GB, free: 230.4 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/1.908, allocations: 202.6 kB / 0.8776 GB, free: 230.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0004779/1.908, allocations: 0.7365 MB / 0.8783 GB, free: 229.7 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007017/1.915, allocations: 5.079 MB / 0.8833 GB, free: 227.8 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008748/1.924, allocations: 10.16 MB / 0.8932 GB, free: 219.2 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009533/1.934, allocations: 7.047 MB / 0.9001 GB, free: 216.4 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001257/1.934, allocations: 47.38 kB / 0.9001 GB, free: 216.4 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1332) (initialization): time 0.0431/1.977, allocations: 20.77 MB / 0.9204 GB, free: 204 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001116/1.977, allocations: 87.73 kB / 0.9205 GB, free: 203.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002027/1.977, allocations: 172 kB / 0.9207 GB, free: 203.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01863/1.996, allocations: 6.479 MB / 0.927 GB, free: 197.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006952/2.003, allocations: 2.152 MB / 0.9291 GB, free: 195.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03864/2.042, allocations: 31.43 MB / 0.9598 GB, free: 163.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009901/2.052, allocations: 0.6254 MB / 0.9604 GB, free: 163 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001762/2.053, allocations: 0.5312 MB / 0.9609 GB, free: 162.5 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 784 * 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],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],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.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],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1180): * Single equations (assignments): 1175 * 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%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007021/2.06, allocations: 4.099 MB / 0.9649 GB, free: 158.4 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00158/2.062, allocations: 0.6942 MB / 0.9656 GB, free: 157.7 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0246/2.087, allocations: 13.82 MB / 0.9791 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.806e-05/2.087, allocations: 40.94 kB / 0.9791 GB, free: 143.8 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-05/2.087, allocations: 27.94 kB / 0.9792 GB, free: 143.7 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-05/2.087, allocations: 19.92 kB / 0.9792 GB, free: 143.7 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04761/2.134, allocations: 27.15 MB / 1.006 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.808e-05/2.135, allocations: 8 kB / 1.006 GB, free: 116.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002586/2.137, allocations: 0.5383 MB / 1.006 GB, free: 115.9 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01684/2.154, allocations: 5.961 MB / 1.012 GB, free: 109.9 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009252/2.155, allocations: 77.48 kB / 1.012 GB, free: 109.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03482/2.19, allocations: 28.19 MB / 1.04 GB, free: 81.49 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/2.19, allocations: 15.89 kB / 1.04 GB, free: 81.47 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03252/2.222, allocations: 19.94 MB / 1.059 GB, free: 61.34 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004714/2.227, allocations: 1.546 MB / 1.061 GB, free: 59.77 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001831/2.229, allocations: 79.98 kB / 1.061 GB, free: 59.69 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004052/2.233, allocations: 323.6 kB / 1.061 GB, free: 59.38 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008541/2.234, allocations: 292.3 kB / 1.061 GB, free: 59.09 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003168/2.234, allocations: 115.8 kB / 1.061 GB, free: 58.98 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006955/2.241, allocations: 4.851 MB / 1.066 GB, free: 54.17 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.81e-07/2.241, allocations: 0 / 1.066 GB, free: 54.17 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009679/2.251, allocations: 2.414 MB / 1.069 GB, free: 51.76 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 (292): * Single equations (assignments): 288 * 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%) 111} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008169/2.252, allocations: 249.8 kB / 1.069 GB, free: 51.52 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01559/2.267, allocations: 12.35 MB / 1.081 GB, free: 39.18 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/2.267, allocations: 6.625 kB / 1.081 GB, free: 39.18 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.006313/2.274, allocations: 5.095 MB / 1.086 GB, free: 34.07 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007562/2.281, allocations: 1.018 MB / 1.087 GB, free: 33.05 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2196/2.501, allocations: 26.52 MB / 1.113 GB, free: 216.4 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006827/2.508, allocations: 6.299 MB / 1.119 GB, free: 215.4 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/2.51, allocations: 0.4904 MB / 1.119 GB, free: 215.4 MB / 0.5262 GB Notification: Performance of SimCode: time 8.82e-07/2.51, allocations: 0 / 1.119 GB, free: 215.4 MB / 0.5262 GB Notification: Performance of Templates: time 0.1901/2.7, allocations: 162.7 MB / 1.278 GB, free: 67.55 MB / 0.5262 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches