Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.MixtureGases,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002366/0.002365, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002388/0.002388, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.472/1.472, allocations: 227.7 MB / 247.1 MB, free: 10.29 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 64.77 kB / 307.3 MB, free: 404 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.0971, allocations: 50.53 MB / 357.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3452/0.4424, allocations: 155.4 MB / 0.5012 GB, free: 15.59 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004884/0.4473, allocations: 4.04 MB / 0.5052 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.4475, allocations: 0 / 0.5052 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000428/0.4479, allocations: 111.4 kB / 0.5053 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002718/0.4506, allocations: 1.173 MB / 0.5064 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.4517, allocations: 394.2 kB / 0.5068 GB, free: 9.883 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005862/0.4523, allocations: 450.9 kB / 0.5072 GB, free: 9.441 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.026e-05/0.4523, allocations: 13.55 kB / 0.5073 GB, free: 9.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004077/0.4527, allocations: 254.9 kB / 0.5075 GB, free: 9.18 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.453, allocations: 139.5 kB / 0.5076 GB, free: 9.043 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.453, allocations: 12 kB / 0.5076 GB, free: 9.031 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004133/0.4571, allocations: 2.131 MB / 0.5097 GB, free: 6.895 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.4573, allocations: 143.5 kB / 0.5099 GB, free: 6.754 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.4576, allocations: 163.4 kB / 0.51 GB, free: 6.594 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002615/0.4602, allocations: 1.567 MB / 0.5116 GB, free: 5.023 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4602, allocations: 0 / 0.5116 GB, free: 5.023 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4602, allocations: 0 / 0.5116 GB, free: 5.023 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.4603, allocations: 0 / 0.5116 GB, free: 5.023 MB / 430.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.002233/0.4625, allocations: 0.773 MB / 0.5123 GB, free: 4.203 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.4625, allocations: 8.031 kB / 0.5123 GB, free: 4.195 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.596e-05/0.4626, allocations: 70.7 kB / 0.5124 GB, free: 4.117 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002613/0.4653, allocations: 272.2 kB / 0.5126 GB, free: 3.852 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.4657, allocations: 287.3 kB / 0.5129 GB, free: 3.531 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.4658, allocations: 16.56 kB / 0.5129 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-05/0.4658, allocations: 28 kB / 0.513 GB, free: 3.488 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.4673, allocations: 0.6744 MB / 0.5136 GB, free: 2.801 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.164e-05/0.4673, allocations: 7.938 kB / 0.5136 GB, free: 2.793 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.396e-05/0.4674, allocations: 15.94 kB / 0.5136 GB, free: 2.777 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-05/0.4674, allocations: 20.42 kB / 0.5137 GB, free: 2.758 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/0.4693, allocations: 0.7551 MB / 0.5144 GB, free: 1.996 MB / 430.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.004305/0.4736, allocations: 1.814 MB / 0.5162 GB, free: 92 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.475, allocations: 483.5 kB / 0.5166 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006698/0.4757, allocations: 238.4 kB / 0.5169 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002546/0.4783, allocations: 1.364 MB / 0.5182 GB, free: 13.78 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/0.4783, allocations: 50.62 kB / 0.5182 GB, free: 13.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=35): time 2.204e-06/0.4783, allocations: 0 / 0.5182 GB, free: 13.72 MB / 446.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.0153/0.4936, allocations: 3.71 MB / 0.5219 GB, free: 9.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.871e-05/0.4937, allocations: 85.11 kB / 0.5219 GB, free: 9.707 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.4939, allocations: 184.8 kB / 0.5221 GB, free: 9.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.817e-05/0.494, allocations: 33.7 kB / 0.5221 GB, free: 9.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.4941, allocations: 184 kB / 0.5223 GB, free: 9.297 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/0.4943, allocations: 177.5 kB / 0.5225 GB, free: 9.121 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.4946, allocations: 118.2 kB / 0.5226 GB, free: 9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.4947, allocations: 338.8 kB / 0.5229 GB, free: 8.66 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008288/0.4956, allocations: 265.1 kB / 0.5232 GB, free: 8.402 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009771/0.4965, allocations: 429.5 kB / 0.5236 GB, free: 7.914 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001815/0.4984, allocations: 0.6961 MB / 0.5243 GB, free: 7.152 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4984, allocations: 0 / 0.5243 GB, free: 7.152 MB / 446.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002223/0.5006, allocations: 0.7828 MB / 0.525 GB, free: 6.359 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.5007, allocations: 7.984 kB / 0.525 GB, free: 6.352 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.5007, allocations: 12 kB / 0.5251 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.5009, allocations: 58.25 kB / 0.5251 GB, free: 6.277 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.5022, allocations: 179.7 kB / 0.5253 GB, free: 6.102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007988/0.503, allocations: 1.077 MB / 0.5263 GB, free: 4.973 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008164/0.5038, allocations: 39.95 kB / 0.5264 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-05/0.5039, allocations: 47.91 kB / 0.5264 GB, free: 4.887 MB / 446.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.0002792/0.5042, allocations: 169.8 kB / 0.5266 GB, free: 4.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.5043, allocations: 27.72 kB / 0.5266 GB, free: 4.684 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/0.5067, allocations: 0.7929 MB / 0.5274 GB, free: 3.879 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.5067, allocations: 4 kB / 0.5274 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.5068, allocations: 4 kB / 0.5274 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.5068, allocations: 0 / 0.5274 GB, free: 3.871 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003557/0.5103, allocations: 1.554 MB / 0.5289 GB, free: 2.219 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5104, allocations: 4 kB / 0.5289 GB, free: 2.215 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.5115, allocations: 147.7 kB / 0.5291 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.5117, allocations: 57.77 kB / 0.5291 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.055e-05/0.5118, allocations: 23.97 kB / 0.5291 GB, free: 1.984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1515/0.6633, allocations: 2.72 MB / 0.5318 GB, free: 159.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.6633, allocations: 4.281 kB / 0.5318 GB, free: 159.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002805/0.6661, allocations: 1.075 MB / 0.5328 GB, free: 159.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.575e-05/0.6662, allocations: 99.7 kB / 0.5329 GB, free: 159.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.701e-05/0.6663, allocations: 14.38 kB / 0.5329 GB, free: 159.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008865/0.6672, allocations: 37.64 kB / 0.533 GB, free: 159.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.224e-05/0.6673, allocations: 45.47 kB / 0.533 GB, free: 159.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.078e-05/0.6674, allocations: 42.58 kB / 0.5331 GB, free: 159.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001011/0.6675, allocations: 123.4 kB / 0.5332 GB, free: 159.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6675, allocations: 0 / 0.5332 GB, free: 159.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001724/0.6693, allocations: 390.5 kB / 0.5336 GB, free: 159.1 MB / 446.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.00561/0.6749, allocations: 2.38 MB / 0.5359 GB, free: 158.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.6769, allocations: 0.6936 MB / 0.5366 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6769, allocations: 0.6562 kB / 0.5366 GB, free: 158.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.678, allocations: 0.5385 MB / 0.5371 GB, free: 157.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007673/0.6787, allocations: 99.69 kB / 0.5372 GB, free: 157.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/0.6861, allocations: 4.208 MB / 0.5413 GB, free: 155.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.6863, allocations: 0.7878 MB / 0.5421 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001204/0.6875, allocations: 185.9 kB / 0.5422 GB, free: 154.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.6879, allocations: 124.7 kB / 0.5424 GB, free: 154.2 MB / 446.1 MB Notification: Performance of SimCode: time 5.41e-07/0.6879, allocations: 4 kB / 0.5424 GB, free: 154.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05009/0.738, allocations: 19.53 MB / 0.5614 GB, free: 143.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.16, allocations: 4.516 kB / 0.5614 GB, free: 143.8 MB / 446.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_4_1_0-beta_om_Modelica_Media_Examples_MixtureGases.fmu > Modelica_4.1.0-beta.om_Modelica.Media.Examples.MixtureGases.pipe 2>&1)