Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.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.TestOnly.IdealGasN2Mix,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix") translateModel(Modelica.Media.Examples.TestOnly.IdealGasN2Mix,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001418/0.001418, allocations: 179.7 kB / 16.41 MB, free: 5.707 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.233/1.233, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007479/0.0007479, allocations: 95.73 kB / 270.9 MB, free: 8.34 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002699, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1831, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.IdealGasN2Mix): time 0.2785/0.4616, allocations: 136.8 MB / 0.4994 GB, free: 1.543 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.4629, allocations: 1.386 MB / 0.5007 GB, free: 1.531 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.028e-05/0.4629, allocations: 0 / 0.5007 GB, free: 1.531 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002297/0.4632, allocations: 34.88 kB / 0.5008 GB, free: 1.531 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005684/0.4638, allocations: 279.9 kB / 0.501 GB, free: 1.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.4641, allocations: 123.6 kB / 0.5011 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.4643, allocations: 214.2 kB / 0.5014 GB, free: 1.516 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.263e-05/0.4644, allocations: 10.56 kB / 0.5014 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.4645, allocations: 74.03 kB / 0.5014 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.4646, allocations: 59.58 kB / 0.5015 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.4646, allocations: 5.125 kB / 0.5015 GB, free: 1.508 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006651/0.4653, allocations: 428.2 kB / 0.5019 GB, free: 1.5 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.961e-05/0.4653, allocations: 30.7 kB / 0.5019 GB, free: 1.5 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.955e-05/0.4654, allocations: 43.05 kB / 0.502 GB, free: 1.469 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.4657, allocations: 263.8 kB / 0.5022 GB, free: 1.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.4657, allocations: 4 kB / 0.5022 GB, free: 1.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4657, allocations: 0 / 0.5022 GB, free: 1.449 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.4657, allocations: 0 / 0.5022 GB, free: 1.449 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005421/0.4663, allocations: 401.3 kB / 0.5026 GB, free: 17.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.4663, allocations: 10.75 kB / 0.5026 GB, free: 17.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002115/0.4684, allocations: 195.4 kB / 0.5028 GB, free: 17.06 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.4687, allocations: 213.9 kB / 0.503 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.4687, allocations: 9.656 kB / 0.503 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.4687, allocations: 6.5 kB / 0.503 GB, free: 16.85 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004165/0.4691, allocations: 204.8 kB / 0.5032 GB, free: 16.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.4692, allocations: 0 / 0.5032 GB, free: 16.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.4692, allocations: 0 / 0.5032 GB, free: 16.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.4692, allocations: 2.906 kB / 0.5032 GB, free: 16.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000522/0.4697, allocations: 248.9 kB / 0.5035 GB, free: 16.81 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.001532/0.4713, allocations: 0.6707 MB / 0.5041 GB, free: 16.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.4717, allocations: 194.2 kB / 0.5043 GB, free: 16.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.4719, allocations: 93.48 kB / 0.5044 GB, free: 16.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.472, allocations: 93.36 kB / 0.5045 GB, free: 16.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.4721, allocations: 36.84 kB / 0.5045 GB, free: 16.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.4721, allocations: 0 / 0.5045 GB, free: 16.26 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: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005285/0.4774, allocations: 1.541 MB / 0.506 GB, free: 15.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.4774, allocations: 54.75 kB / 0.5061 GB, free: 15.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.4775, allocations: 108.9 kB / 0.5062 GB, free: 15.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.4775, allocations: 32.08 kB / 0.5062 GB, free: 15.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.299e-05/0.4776, allocations: 106.1 kB / 0.5063 GB, free: 15.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.079e-05/0.4776, allocations: 63.33 kB / 0.5064 GB, free: 15.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.809e-05/0.4776, allocations: 3.688 kB / 0.5064 GB, free: 15.31 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.189e-05/0.4777, allocations: 323 kB / 0.5067 GB, free: 15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001967/0.4779, allocations: 90.34 kB / 0.5068 GB, free: 15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.4781, allocations: 130.4 kB / 0.5069 GB, free: 14.96 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/0.4783, allocations: 98.91 kB / 0.507 GB, free: 14.96 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4784, allocations: 0 / 0.507 GB, free: 14.96 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005426/0.4789, allocations: 281.4 kB / 0.5073 GB, free: 14.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.4789, allocations: 12.38 kB / 0.5073 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4789, allocations: 1.156 kB / 0.5073 GB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001125/0.4791, allocations: 25.08 kB / 0.5073 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000483/0.4796, allocations: 56.59 kB / 0.5073 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003065/0.4799, allocations: 0.531 MB / 0.5079 GB, free: 14.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002889/0.4802, allocations: 17.12 kB / 0.5079 GB, free: 14.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/0.4802, allocations: 11.44 kB / 0.5079 GB, free: 14.37 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001201/0.4803, allocations: 129 kB / 0.508 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.408e-05/0.4804, allocations: 7.25 kB / 0.508 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006943/0.4811, allocations: 314.2 kB / 0.5083 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4811, allocations: 5.156 kB / 0.5083 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.4811, allocations: 0 / 0.5083 GB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4811, allocations: 9.688 kB / 0.5083 GB, free: 14.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009436/0.4821, allocations: 0.6703 MB / 0.509 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4821, allocations: 3.156 kB / 0.509 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/0.4825, allocations: 52.72 kB / 0.509 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.856e-05/0.4826, allocations: 28.31 kB / 0.5091 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.4826, allocations: 5.969 kB / 0.5091 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007312/0.4834, allocations: 1.261 MB / 0.5103 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4834, allocations: 7.062 kB / 0.5103 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007884/0.4842, allocations: 448.7 kB / 0.5107 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.531e-05/0.4842, allocations: 95.67 kB / 0.5108 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.4843, allocations: 5.156 kB / 0.5108 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.4846, allocations: 11.69 kB / 0.5109 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.4847, allocations: 18.31 kB / 0.5109 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.4847, allocations: 14.16 kB / 0.5109 GB, free: 12.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.665e-05/0.4848, allocations: 92.36 kB / 0.511 GB, free: 12.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4848, allocations: 0.5 kB / 0.511 GB, free: 12.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005076/0.4853, allocations: 125.3 kB / 0.5111 GB, free: 12.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.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 (19): * Single equations (assignments): 18 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006068/0.4859, allocations: 241.8 kB / 0.5113 GB, free: 12.07 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005481/0.4864, allocations: 235.6 kB / 0.5115 GB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4865, allocations: 0 / 0.5115 GB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.4868, allocations: 230.6 kB / 0.5118 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004136/0.4872, allocations: 46.75 kB / 0.5118 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007348/0.488, allocations: 0.5975 MB / 0.5124 GB, free: 11.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.4882, allocations: 0.7063 MB / 0.5131 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.4884, allocations: 28.03 kB / 0.5131 GB, free: 10.88 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4884, allocations: 3.938 kB / 0.5131 GB, free: 10.88 MB / 394.7 MB Notification: Performance of Templates: time 0.006882/0.4953, allocations: 5.087 MB / 0.5181 GB, free: 10.52 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches