Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001786/0.001786, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 43.94 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1026, allocations: 46.62 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3878/0.4905, allocations: 154.3 MB / 0.5165 GB, free: 5.195 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004515/0.495, allocations: 3.05 MB / 0.5195 GB, free: 2.137 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.4953, allocations: 4 kB / 0.5195 GB, free: 2.133 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005596/0.4959, allocations: 107.4 kB / 0.5196 GB, free: 2.027 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003523/0.4994, allocations: 1.179 MB / 0.5207 GB, free: 0.8438 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.5008, allocations: 388.7 kB / 0.5211 GB, free: 476 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.5017, allocations: 458.8 kB / 0.5215 GB, free: 16 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.108e-05/0.5018, allocations: 13.55 kB / 0.5216 GB, free: 4 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006631/0.5024, allocations: 230.4 kB / 0.5218 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.5028, allocations: 139.5 kB / 0.5219 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.962e-05/0.5029, allocations: 16 kB / 0.5219 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005141/0.508, allocations: 2.071 MB / 0.524 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002234/0.5083, allocations: 135.7 kB / 0.5241 GB, free: 13.42 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000338/0.5086, allocations: 163.3 kB / 0.5242 GB, free: 13.26 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003595/0.5123, allocations: 1.543 MB / 0.5257 GB, free: 11.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5123, allocations: 4 kB / 0.5257 GB, free: 11.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.5123, allocations: 0 / 0.5257 GB, free: 11.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.5123, allocations: 7.938 kB / 0.5258 GB, free: 11.7 MB / 462.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.002905/0.5152, allocations: 0.7711 MB / 0.5265 GB, free: 10.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.5153, allocations: 8.031 kB / 0.5265 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000149/0.5155, allocations: 70.72 kB / 0.5266 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009164/0.5164, allocations: 112.7 kB / 0.5267 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.517, allocations: 283.5 kB / 0.527 GB, free: 10.37 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.517, allocations: 20.56 kB / 0.527 GB, free: 10.35 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.172e-05/0.5171, allocations: 24 kB / 0.527 GB, free: 10.32 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.5184, allocations: 0.5965 MB / 0.5276 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.5185, allocations: 0 / 0.5276 GB, free: 9.715 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.5185, allocations: 12 kB / 0.5276 GB, free: 9.703 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.964e-05/0.5186, allocations: 20.42 kB / 0.5276 GB, free: 9.684 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0014/0.52, allocations: 0.638 MB / 0.5282 GB, free: 9.047 MB / 462.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.00334/0.5233, allocations: 1.291 MB / 0.5295 GB, free: 7.699 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.5244, allocations: 353.9 kB / 0.5298 GB, free: 7.336 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000497/0.5249, allocations: 175.2 kB / 0.53 GB, free: 7.16 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00274/0.5277, allocations: 1.38 MB / 0.5314 GB, free: 5.559 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.5277, allocations: 42.75 kB / 0.5314 GB, free: 5.508 MB / 462.1 MB Notification: Performance of pre-optimization done (n=35): time 2.344e-06/0.5277, allocations: 0 / 0.5314 GB, free: 5.508 MB / 462.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.01587/0.5436, allocations: 3.49 MB / 0.5348 GB, free: 1.816 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.5437, allocations: 93.03 kB / 0.5349 GB, free: 1.707 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.5439, allocations: 182.5 kB / 0.5351 GB, free: 1.52 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.594e-05/0.544, allocations: 33.7 kB / 0.5351 GB, free: 1.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.5441, allocations: 184.6 kB / 0.5353 GB, free: 1.293 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/0.5443, allocations: 178.4 kB / 0.5354 GB, free: 1.117 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.5445, allocations: 114.3 kB / 0.5356 GB, free: 1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5447, allocations: 342.8 kB / 0.5359 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007766/0.5455, allocations: 267.8 kB / 0.5361 GB, free: 408 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009253/0.5464, allocations: 425.5 kB / 0.5365 GB, free: 15.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001676/0.5481, allocations: 0.703 MB / 0.5372 GB, free: 15.14 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.5481, allocations: 4 kB / 0.5372 GB, free: 15.14 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002088/0.5502, allocations: 0.7801 MB / 0.538 GB, free: 14.35 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.5502, allocations: 11.98 kB / 0.538 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.5503, allocations: 4 kB / 0.538 GB, free: 14.33 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002296/0.5505, allocations: 50.31 kB / 0.5381 GB, free: 14.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.5517, allocations: 183.7 kB / 0.5382 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000777/0.5524, allocations: 1.081 MB / 0.5393 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008142/0.5533, allocations: 47.95 kB / 0.5393 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.614e-05/0.5534, allocations: 39.92 kB / 0.5394 GB, free: 12.88 MB / 478.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.0002658/0.5536, allocations: 177.7 kB / 0.5395 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/0.5538, allocations: 27.86 kB / 0.5396 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002263/0.5561, allocations: 0.7774 MB / 0.5403 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.5561, allocations: 8 kB / 0.5403 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.5561, allocations: 0 / 0.5403 GB, free: 11.88 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.5561, allocations: 3.984 kB / 0.5403 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/0.5597, allocations: 1.562 MB / 0.5419 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.5598, allocations: 0 / 0.5419 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.5609, allocations: 143.8 kB / 0.542 GB, free: 10.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.5611, allocations: 49.58 kB / 0.542 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.531e-05/0.5612, allocations: 27.97 kB / 0.5421 GB, free: 9.988 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/0.5633, allocations: 2.728 MB / 0.5447 GB, free: 6.984 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.5633, allocations: 8.031 kB / 0.5447 GB, free: 6.977 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/0.5661, allocations: 1.076 MB / 0.5458 GB, free: 5.855 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001154/0.5663, allocations: 113 kB / 0.5459 GB, free: 5.727 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.5664, allocations: 8 kB / 0.5459 GB, free: 5.719 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008653/0.5673, allocations: 39.95 kB / 0.546 GB, free: 5.68 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.5674, allocations: 43.89 kB / 0.546 GB, free: 5.637 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.437e-05/0.5675, allocations: 31.97 kB / 0.546 GB, free: 5.605 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.5676, allocations: 132.4 kB / 0.5461 GB, free: 5.477 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.603e-06/0.5677, allocations: 0 / 0.5461 GB, free: 5.477 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001508/0.5692, allocations: 395.1 kB / 0.5465 GB, free: 5.09 MB / 478.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.00602/0.5752, allocations: 2.374 MB / 0.5488 GB, free: 2.66 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.5774, allocations: 0.6519 MB / 0.5495 GB, free: 2.012 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.5774, allocations: 0 / 0.5495 GB, free: 2.012 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.5786, allocations: 0.5296 MB / 0.55 GB, free: 1.457 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/0.5795, allocations: 95.84 kB / 0.5501 GB, free: 1.363 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1939/0.7735, allocations: 4.233 MB / 0.5542 GB, free: 165.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003315/0.7738, allocations: 0.783 MB / 0.555 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009321/0.7748, allocations: 187 kB / 0.5552 GB, free: 164.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004193/0.7752, allocations: 126.5 kB / 0.5553 GB, free: 164.6 MB / 478.1 MB Notification: Performance of SimCode: time 6.52e-07/0.7752, allocations: 2.75 kB / 0.5553 GB, free: 164.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05568/0.8309, allocations: 19.66 MB / 0.5745 GB, free: 158.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.71/13.54, allocations: 10.94 kB / 0.5745 GB, free: 158.1 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_3_2_3_Modelica_Media_Examples_MixtureGases.fmu > Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.MixtureGases_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches