Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.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 trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002027/0.002027, allocations: 104.1 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.002395/0.002395, 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 trunk/package.mo): time 1.526/1.526, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2243/0.2243, allocations: 46.11 MB / 344.2 MB, free: 11.53 MB / 286.1 MB Warning: Requested package Modelica 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.003331/0.003331, allocations: 88.86 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1506, allocations: 62.46 MB / 480.2 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4317/0.5824, allocations: 152.8 MB / 0.6182 GB, free: 10.39 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004736/0.5872, allocations: 3.246 MB / 0.6213 GB, free: 7.156 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.5874, allocations: 0 / 0.6213 GB, free: 7.156 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.5879, allocations: 63.64 kB / 0.6214 GB, free: 7.094 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.591, allocations: 1.068 MB / 0.6224 GB, free: 6.023 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005322/0.5915, allocations: 195.4 kB / 0.6226 GB, free: 5.836 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005068/0.592, allocations: 362.7 kB / 0.623 GB, free: 5.48 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.974e-05/0.5921, allocations: 17.05 kB / 0.623 GB, free: 5.465 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.5924, allocations: 155.5 kB / 0.6231 GB, free: 5.312 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.5926, allocations: 115.6 kB / 0.6232 GB, free: 5.199 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.503e-05/0.5927, allocations: 12 kB / 0.6233 GB, free: 5.188 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003315/0.596, allocations: 1.555 MB / 0.6248 GB, free: 3.629 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.5961, allocations: 91.75 kB / 0.6249 GB, free: 3.539 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.5963, allocations: 107.5 kB / 0.625 GB, free: 3.434 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001932/0.5983, allocations: 1.013 MB / 0.626 GB, free: 2.418 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.5983, allocations: 4 kB / 0.626 GB, free: 2.414 MB / 462.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.5983, allocations: 0 / 0.626 GB, free: 2.414 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.5983, allocations: 7.938 kB / 0.626 GB, free: 2.406 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001133/0.5994, allocations: 0.5429 MB / 0.6265 GB, free: 1.816 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5995, allocations: 12.03 kB / 0.6265 GB, free: 1.805 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.531e-05/0.5996, allocations: 58.72 kB / 0.6266 GB, free: 1.738 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004091/0.6037, allocations: 392.7 kB / 0.6269 GB, free: 1.355 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.6042, allocations: 260 kB / 0.6272 GB, free: 1.062 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.6042, allocations: 16.31 kB / 0.6272 GB, free: 1.047 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/0.6043, allocations: 23.98 kB / 0.6272 GB, free: 1.023 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.6055, allocations: 496.7 kB / 0.6277 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.6055, allocations: 0 / 0.6277 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-05/0.6056, allocations: 16 kB / 0.6277 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.6056, allocations: 8 kB / 0.6277 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.6068, allocations: 0.5276 MB / 0.6282 GB, free: 15.98 MB / 478.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.002516/0.6093, allocations: 1.001 MB / 0.6292 GB, free: 14.92 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.61, allocations: 301 kB / 0.6295 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/0.6103, allocations: 157.6 kB / 0.6297 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002026/0.6124, allocations: 0.9684 MB / 0.6306 GB, free: 13.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.6124, allocations: 39.42 kB / 0.6306 GB, free: 13.27 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 2.475e-06/0.6124, allocations: 4 kB / 0.6306 GB, free: 13.27 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.00109/0.6135, allocations: 421.8 kB / 0.631 GB, free: 12.85 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001609/0.6137, allocations: 81.11 kB / 0.6311 GB, free: 12.75 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.6138, allocations: 113.8 kB / 0.6312 GB, free: 12.63 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.774e-05/0.6139, allocations: 37.64 kB / 0.6313 GB, free: 12.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.6141, allocations: 116.3 kB / 0.6314 GB, free: 12.46 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.6142, allocations: 106.4 kB / 0.6315 GB, free: 12.36 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.6144, allocations: 73.95 kB / 0.6315 GB, free: 12.28 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.6145, allocations: 322.8 kB / 0.6319 GB, free: 11.96 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.6148, allocations: 124.2 kB / 0.632 GB, free: 11.84 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/0.6153, allocations: 206.9 kB / 0.6322 GB, free: 11.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006564/0.616, allocations: 359 kB / 0.6325 GB, free: 11.21 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.616, allocations: 0 / 0.6325 GB, free: 11.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008275/0.6168, allocations: 393.1 kB / 0.6329 GB, free: 10.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.6168, allocations: 4 kB / 0.6329 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.6169, allocations: 4 kB / 0.6329 GB, free: 10.82 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.6169, allocations: 5.5 kB / 0.6329 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004738/0.6174, allocations: 75.89 kB / 0.633 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.6174, allocations: 8.312 kB / 0.633 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.6177, allocations: 31.69 kB / 0.633 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.6178, allocations: 23.97 kB / 0.633 GB, free: 10.68 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (40): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001908/0.618, allocations: 145.6 kB / 0.6332 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.6181, allocations: 19.81 kB / 0.6332 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.6191, allocations: 377.6 kB / 0.6335 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.6192, allocations: 8 kB / 0.6336 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.6192, allocations: 0 / 0.6336 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.6192, allocations: 3.984 kB / 0.6336 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007106/0.6199, allocations: 373.1 kB / 0.6339 GB, free: 9.703 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.6199, allocations: 4 kB / 0.6339 GB, free: 9.699 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.6204, allocations: 63.83 kB / 0.634 GB, free: 9.641 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.6204, allocations: 4 kB / 0.634 GB, free: 9.637 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.6204, allocations: 11.98 kB / 0.634 GB, free: 9.625 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.6204, allocations: 0 / 0.634 GB, free: 9.625 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.6205, allocations: 4 kB / 0.634 GB, free: 9.621 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.6217, allocations: 0.5686 MB / 0.6346 GB, free: 9.035 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.287e-05/0.6218, allocations: 96.84 kB / 0.6346 GB, free: 8.922 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.6218, allocations: 8.062 kB / 0.6347 GB, free: 8.914 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.6223, allocations: 15.98 kB / 0.6347 GB, free: 8.898 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.6223, allocations: 19.98 kB / 0.6347 GB, free: 8.879 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.888e-05/0.6224, allocations: 19.98 kB / 0.6347 GB, free: 8.859 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.247e-05/0.6224, allocations: 96.69 kB / 0.6348 GB, free: 8.766 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6225, allocations: 3.938 kB / 0.6348 GB, free: 8.762 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009528/0.6234, allocations: 239.8 kB / 0.635 GB, free: 8.527 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[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 (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002506/0.6259, allocations: 1.438 MB / 0.6364 GB, free: 7.062 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007823/0.6267, allocations: 331.6 kB / 0.6368 GB, free: 6.742 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.6267, allocations: 7.938 kB / 0.6368 GB, free: 6.734 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.6271, allocations: 154.3 kB / 0.6369 GB, free: 6.586 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006864/0.6277, allocations: 91.55 kB / 0.637 GB, free: 6.504 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.6323, allocations: 2.787 MB / 0.6397 GB, free: 3.57 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005967/0.6329, allocations: 0.7363 MB / 0.6404 GB, free: 2.809 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005959/0.6335, allocations: 87.2 kB / 0.6405 GB, free: 2.727 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.6337, allocations: 67.34 kB / 0.6406 GB, free: 2.664 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6337, allocations: 0 / 0.6406 GB, free: 2.664 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04303/0.6767, allocations: 10.97 MB / 0.6513 GB, free: 7.797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.43/9.107, allocations: 15.86 kB / 0.6513 GB, free: 7.781 MB / 494.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1)