Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.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.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001544, allocations: 175.9 kB / 16.72 MB, free: 5.078 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.442/1.442, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007691/0.0007691, allocations: 92.91 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002917/0.0002919, allocations: 15.98 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2234, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3663/0.5898, allocations: 140 MB / 0.503 GB, free: 1.492 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.5928, allocations: 2.853 MB / 0.5058 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.5929, allocations: 0 / 0.5058 GB, free: 1.434 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003969/0.5934, allocations: 91.36 kB / 0.5058 GB, free: 1.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002264/0.5956, allocations: 1.061 MB / 0.5069 GB, free: 1.375 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008276/0.5965, allocations: 337 kB / 0.5072 GB, free: 1.359 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005391/0.597, allocations: 0.5226 MB / 0.5077 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.517e-05/0.5971, allocations: 17.39 kB / 0.5077 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003289/0.5974, allocations: 199.2 kB / 0.5079 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/0.5976, allocations: 163.9 kB / 0.5081 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.5977, allocations: 8.531 kB / 0.5081 GB, free: 1.352 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004267/0.602, allocations: 2.548 MB / 0.5106 GB, free: 1.336 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001965/0.6022, allocations: 147.1 kB / 0.5107 GB, free: 1.332 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003727/0.6026, allocations: 176.7 kB / 0.5109 GB, free: 17.3 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001657/0.6042, allocations: 1.229 MB / 0.5121 GB, free: 17.26 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.6042, allocations: 0 / 0.5121 GB, free: 17.26 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.6042, allocations: 0 / 0.5121 GB, free: 17.26 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.6043, allocations: 0 / 0.5121 GB, free: 17.26 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001764/0.606, allocations: 0.6959 MB / 0.5128 GB, free: 16.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.6061, allocations: 12.28 kB / 0.5128 GB, free: 16.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002261/0.6083, allocations: 262.2 kB / 0.513 GB, free: 16.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004194/0.6088, allocations: 291 kB / 0.5133 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.757e-05/0.6088, allocations: 22.81 kB / 0.5133 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.846e-05/0.6089, allocations: 28.72 kB / 0.5134 GB, free: 16.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.6103, allocations: 0.6649 MB / 0.514 GB, free: 16.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.6103, allocations: 0.9688 kB / 0.514 GB, free: 16.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/0.6104, allocations: 11.81 kB / 0.514 GB, free: 16.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-05/0.6105, allocations: 25.19 kB / 0.514 GB, free: 16.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.6122, allocations: 0.7589 MB / 0.5148 GB, free: 16.47 MB / 394.7 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.003773/0.616, allocations: 1.812 MB / 0.5165 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.6172, allocations: 479.4 kB / 0.517 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006254/0.6179, allocations: 230.4 kB / 0.5172 GB, free: 15.56 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002587/0.6205, allocations: 1.385 MB / 0.5186 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.6205, allocations: 40.33 kB / 0.5186 GB, free: 14.38 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.926e-06/0.6205, allocations: 0 / 0.5186 GB, free: 14.38 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01261/0.6332, allocations: 3.63 MB / 0.5222 GB, free: 13.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.6332, allocations: 80.58 kB / 0.5222 GB, free: 13.13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.6334, allocations: 186 kB / 0.5224 GB, free: 13.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.912e-05/0.6335, allocations: 35.14 kB / 0.5224 GB, free: 12.99 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.6336, allocations: 177.2 kB / 0.5226 GB, free: 12.85 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.6338, allocations: 179.4 kB / 0.5228 GB, free: 12.74 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.656e-05/0.6338, allocations: 12.25 kB / 0.5228 GB, free: 12.74 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.6339, allocations: 335.8 kB / 0.5231 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006986/0.6347, allocations: 265.7 kB / 0.5234 GB, free: 12.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007919/0.6355, allocations: 423 kB / 0.5238 GB, free: 12.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.637, allocations: 0.6919 MB / 0.5245 GB, free: 12.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.6371, allocations: 8.625 kB / 0.5245 GB, free: 12.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00188/0.639, allocations: 0.7773 MB / 0.5252 GB, free: 11.94 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.639, allocations: 8.25 kB / 0.5252 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.639, allocations: 2.844 kB / 0.5252 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002186/0.6392, allocations: 58.66 kB / 0.5253 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.6403, allocations: 186.1 kB / 0.5255 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007883/0.6411, allocations: 1.076 MB / 0.5265 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008377/0.642, allocations: 45.77 kB / 0.5266 GB, free: 10.81 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.681e-05/0.6421, allocations: 41.48 kB / 0.5266 GB, free: 10.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.6424, allocations: 178.6 kB / 0.5268 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.6425, allocations: 26.16 kB / 0.5268 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.6448, allocations: 0.7773 MB / 0.5276 GB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.6449, allocations: 7.219 kB / 0.5276 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.6449, allocations: 3.312 kB / 0.5276 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.6449, allocations: 7.984 kB / 0.5276 GB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003337/0.6482, allocations: 1.553 MB / 0.5291 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.6482, allocations: 5.281 kB / 0.5291 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.6493, allocations: 144.2 kB / 0.5292 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.6494, allocations: 40.47 kB / 0.5293 GB, free: 9.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.6495, allocations: 36.84 kB / 0.5293 GB, free: 9.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001934/0.6515, allocations: 2.528 MB / 0.5318 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.6515, allocations: 4.562 kB / 0.5318 GB, free: 6.926 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.6542, allocations: 1.073 MB / 0.5328 GB, free: 6.461 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.6543, allocations: 98.23 kB / 0.5329 GB, free: 6.355 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.6544, allocations: 18.88 kB / 0.5329 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007882/0.6552, allocations: 43.23 kB / 0.533 GB, free: 6.336 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.6553, allocations: 40.58 kB / 0.533 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.392e-05/0.6554, allocations: 32.5 kB / 0.533 GB, free: 6.312 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001096/0.6555, allocations: 128.4 kB / 0.5332 GB, free: 6.227 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6555, allocations: 0 / 0.5332 GB, free: 6.227 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001737/0.6573, allocations: 406.8 kB / 0.5336 GB, free: 6.172 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.T) * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003204/0.6605, allocations: 0.8742 MB / 0.5344 GB, free: 5.762 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001817/0.6623, allocations: 0.6469 MB / 0.535 GB, free: 5.637 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.6623, allocations: 5.781 kB / 0.535 GB, free: 5.633 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.6634, allocations: 0.5276 MB / 0.5356 GB, free: 5.352 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007719/0.6642, allocations: 109.8 kB / 0.5357 GB, free: 5.312 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.6663, allocations: 1.214 MB / 0.5369 GB, free: 4.484 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.6668, allocations: 0.785 MB / 0.5376 GB, free: 3.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004697/0.6672, allocations: 71.25 kB / 0.5377 GB, free: 3.727 MB / 394.7 MB Notification: Performance of SimCode: time 4.21e-07/0.6673, allocations: 4 kB / 0.5377 GB, free: 3.723 MB / 394.7 MB Notification: Performance of Templates: time 0.02357/0.6908, allocations: 14.59 MB / 0.5519 GB, free: 10.09 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches