Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007868/0.0007869, allocations: 91.06 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008165/0.0008167, allocations: 181.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002297, allocations: 8 kB / 301.4 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0887/0.08894, allocations: 50.42 MB / 351.8 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.307/0.396, allocations: 148.4 MB / 0.4885 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004264/0.4003, allocations: 4.074 MB / 0.4924 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.629e-05/0.4004, allocations: 0 / 0.4924 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.4008, allocations: 95.58 kB / 0.4925 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002223/0.403, allocations: 1.103 MB / 0.4936 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008301/0.4039, allocations: 351 kB / 0.4939 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.4046, allocations: 0.6198 MB / 0.4945 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.381e-05/0.4046, allocations: 9.562 kB / 0.4946 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.405, allocations: 211.1 kB / 0.4948 GB, free: 10.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.4053, allocations: 163.5 kB / 0.4949 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.308e-05/0.4053, allocations: 8 kB / 0.4949 GB, free: 10.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004131/0.4095, allocations: 2.482 MB / 0.4973 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.4096, allocations: 139.6 kB / 0.4975 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001899/0.4098, allocations: 173.1 kB / 0.4976 GB, free: 7.777 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002445/0.4123, allocations: 1.785 MB / 0.4994 GB, free: 5.988 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4123, allocations: 4 kB / 0.4994 GB, free: 5.984 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4123, allocations: 0 / 0.4994 GB, free: 5.984 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.4123, allocations: 0 / 0.4994 GB, free: 5.984 MB / 414.1 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.002041/0.4144, allocations: 0.6909 MB / 0.5001 GB, free: 5.246 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4144, allocations: 12.03 kB / 0.5001 GB, free: 5.234 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002441/0.4169, allocations: 269.3 kB / 0.5003 GB, free: 4.973 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.4173, allocations: 287.4 kB / 0.5006 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4173, allocations: 24.5 kB / 0.5006 GB, free: 4.629 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.492e-05/0.4174, allocations: 24 kB / 0.5007 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.4187, allocations: 0.6667 MB / 0.5013 GB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.4188, allocations: 0 / 0.5013 GB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.21e-05/0.4188, allocations: 12 kB / 0.5013 GB, free: 3.914 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.11e-05/0.4189, allocations: 28.36 kB / 0.5013 GB, free: 3.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.4206, allocations: 0.7628 MB / 0.5021 GB, free: 3.125 MB / 414.1 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.003875/0.4245, allocations: 1.81 MB / 0.5039 GB, free: 1.219 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001349/0.4258, allocations: 487.4 kB / 0.5043 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006501/0.4265, allocations: 229.6 kB / 0.5045 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002373/0.4289, allocations: 1.383 MB / 0.5059 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.4289, allocations: 38.75 kB / 0.5059 GB, free: 14.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=35): time 2.295e-06/0.4289, allocations: 0 / 0.5059 GB, free: 14.84 MB / 430.1 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.01417/0.4431, allocations: 3.631 MB / 0.5095 GB, free: 11.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.4432, allocations: 85.11 kB / 0.5096 GB, free: 10.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.4434, allocations: 176.3 kB / 0.5097 GB, free: 10.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.184e-05/0.4435, allocations: 37.7 kB / 0.5098 GB, free: 10.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.4436, allocations: 184 kB / 0.5099 GB, free: 10.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.4437, allocations: 169.6 kB / 0.5101 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4439, allocations: 57.62 kB / 0.5101 GB, free: 10.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.444, allocations: 342.8 kB / 0.5105 GB, free: 9.922 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008015/0.4448, allocations: 265.1 kB / 0.5107 GB, free: 9.664 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008882/0.4457, allocations: 425.5 kB / 0.5111 GB, free: 9.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.4474, allocations: 0.6987 MB / 0.5118 GB, free: 8.418 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.4474, allocations: 8 kB / 0.5118 GB, free: 8.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002086/0.4495, allocations: 0.777 MB / 0.5126 GB, free: 7.621 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.4496, allocations: 8 kB / 0.5126 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4496, allocations: 4 kB / 0.5126 GB, free: 7.609 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.4498, allocations: 53.69 kB / 0.5126 GB, free: 7.551 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.451, allocations: 183.9 kB / 0.5128 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006481/0.4517, allocations: 1.085 MB / 0.5139 GB, free: 6.234 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/0.4525, allocations: 44.06 kB / 0.5139 GB, free: 6.191 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.152e-05/0.4526, allocations: 39.97 kB / 0.514 GB, free: 6.152 MB / 430.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002695/0.4529, allocations: 177.8 kB / 0.5141 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001182/0.453, allocations: 27.72 kB / 0.5142 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002364/0.4554, allocations: 0.792 MB / 0.5149 GB, free: 5.137 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.4554, allocations: 7.984 kB / 0.5149 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4554, allocations: 8 kB / 0.5149 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4554, allocations: 3.984 kB / 0.5149 GB, free: 5.117 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.4588, allocations: 1.553 MB / 0.5165 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4588, allocations: 4 kB / 0.5165 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.4599, allocations: 143.8 kB / 0.5166 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.4601, allocations: 45.56 kB / 0.5167 GB, free: 3.281 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.276e-05/0.4601, allocations: 32.12 kB / 0.5167 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.4617, allocations: 2.521 MB / 0.5191 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.4617, allocations: 11.88 kB / 0.5192 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1962/0.658, allocations: 1.071 MB / 0.5202 GB, free: 29.66 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.03e-05/0.6581, allocations: 99.27 kB / 0.5203 GB, free: 29.57 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-05/0.6582, allocations: 14.48 kB / 0.5203 GB, free: 29.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008623/0.659, allocations: 46.02 kB / 0.5204 GB, free: 29.57 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.6591, allocations: 50.14 kB / 0.5204 GB, free: 29.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.194e-05/0.6592, allocations: 32.08 kB / 0.5204 GB, free: 29.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.734e-05/0.6593, allocations: 123.8 kB / 0.5205 GB, free: 29.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6593, allocations: 0.9062 kB / 0.5206 GB, free: 29.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001451/0.6608, allocations: 407.5 kB / 0.5209 GB, free: 29.5 MB / 430.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002839/0.6636, allocations: 0.8642 MB / 0.5218 GB, free: 29.39 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.6656, allocations: 0.6487 MB / 0.5224 GB, free: 29.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6657, allocations: 1.812 kB / 0.5224 GB, free: 29.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.6667, allocations: 0.5412 MB / 0.5229 GB, free: 29.17 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008233/0.6675, allocations: 97.02 kB / 0.523 GB, free: 29.17 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.6696, allocations: 1.211 MB / 0.5242 GB, free: 28.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.6699, allocations: 0.7831 MB / 0.525 GB, free: 27.86 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.671, allocations: 181.9 kB / 0.5252 GB, free: 27.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.6714, allocations: 66.91 kB / 0.5252 GB, free: 27.77 MB / 430.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6714, allocations: 0 / 0.5252 GB, free: 27.77 MB / 430.1 MB Notification: Performance of Templates: time 0.02159/0.693, allocations: 15.56 MB / 0.5404 GB, free: 25.33 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches