Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001673/0.001673, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2372/0.2372, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002393/0.002393, allocations: 80.06 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.117, allocations: 62.45 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4005/0.5175, allocations: 177.3 MB / 0.6421 GB, free: 1.762 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008972/0.5265, allocations: 5.331 MB / 0.6473 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007946/0.5274, allocations: 19.88 kB / 0.6473 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009823/0.5284, allocations: 318 kB / 0.6476 GB, free: 12.09 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003472/0.5319, allocations: 1.254 MB / 0.6489 GB, free: 10.83 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002609/0.5345, allocations: 0.9722 MB / 0.6498 GB, free: 9.867 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.5371, allocations: 1.852 MB / 0.6516 GB, free: 8.012 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000827/0.5379, allocations: 459.3 kB / 0.652 GB, free: 7.555 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002396/0.5403, allocations: 1.07 MB / 0.6531 GB, free: 6.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.5415, allocations: 0.6656 MB / 0.6537 GB, free: 5.812 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.5416, allocations: 60 kB / 0.6538 GB, free: 5.754 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.5431, allocations: 0.5804 MB / 0.6544 GB, free: 5.176 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003342/0.5435, allocations: 263.3 kB / 0.6546 GB, free: 4.918 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005416/0.544, allocations: 398.2 kB / 0.655 GB, free: 4.527 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002137/0.5462, allocations: 1.293 MB / 0.6563 GB, free: 3.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5462, allocations: 4 kB / 0.6563 GB, free: 3.227 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5462, allocations: 0 / 0.6563 GB, free: 3.227 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.5462, allocations: 0 / 0.6563 GB, free: 3.227 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002463/0.5487, allocations: 1.107 MB / 0.6573 GB, free: 2.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.5487, allocations: 8.031 kB / 0.6574 GB, free: 2.059 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.5489, allocations: 102.5 kB / 0.6575 GB, free: 1.949 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008911/0.5498, allocations: 135.7 kB / 0.6576 GB, free: 1.816 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008807/0.5507, allocations: 0.5079 MB / 0.6581 GB, free: 1.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.5508, allocations: 96.41 kB / 0.6582 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.5509, allocations: 51.98 kB / 0.6582 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.5524, allocations: 0.8213 MB / 0.659 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.5524, allocations: 0 / 0.659 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.705e-05/0.5525, allocations: 27.98 kB / 0.659 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-05/0.5526, allocations: 41.53 kB / 0.6591 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.5537, allocations: 0.6243 MB / 0.6597 GB, free: 15.52 MB / 0.4981 GB 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.005211/0.5589, allocations: 3.952 MB / 0.6636 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000623/0.5596, allocations: 357.7 kB / 0.6639 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003449/0.5599, allocations: 181.3 kB / 0.6641 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000146/0.5601, allocations: 89.38 kB / 0.6642 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.617e-05/0.5601, allocations: 42.78 kB / 0.6642 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=34): time 4.809e-06/0.5602, allocations: 0 / 0.6642 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39): time 0.006084/0.5662, allocations: 1.662 MB / 0.6658 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.5664, allocations: 144.4 kB / 0.666 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008373/0.5672, allocations: 0.6094 MB / 0.6666 GB, free: 8.105 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/0.5673, allocations: 37.7 kB / 0.6666 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.5676, allocations: 366.8 kB / 0.6669 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001417/0.5678, allocations: 146 kB / 0.6671 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.568, allocations: 158.5 kB / 0.6672 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002071/0.5683, allocations: 370.8 kB / 0.6676 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004116/0.5687, allocations: 205.9 kB / 0.6678 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006593/0.5693, allocations: 0.5125 MB / 0.6683 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.5705, allocations: 0.7552 MB / 0.669 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.5705, allocations: 4 kB / 0.669 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001597/0.5721, allocations: 0.8873 MB / 0.6699 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.5721, allocations: 10.66 kB / 0.6699 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.5721, allocations: 15.94 kB / 0.6699 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/0.5736, allocations: 313.2 kB / 0.6702 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.574, allocations: 123.7 kB / 0.6703 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.5753, allocations: 0.9292 MB / 0.6712 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005362/0.5758, allocations: 24 kB / 0.6713 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.576, allocations: 72.05 kB / 0.6713 GB, free: 2.863 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004413/0.5764, allocations: 249.5 kB / 0.6716 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/0.5766, allocations: 67.16 kB / 0.6716 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.5785, allocations: 0.8612 MB / 0.6725 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.5785, allocations: 4 kB / 0.6725 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.5785, allocations: 8 kB / 0.6725 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.5786, allocations: 0 / 0.6725 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002392/0.5809, allocations: 1.461 MB / 0.6739 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.581, allocations: 4 kB / 0.6739 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.5821, allocations: 208 kB / 0.6741 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000106/0.5822, allocations: 28.77 kB / 0.6741 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.4e-05/0.5822, allocations: 23.94 kB / 0.6742 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/0.5847, allocations: 2.874 MB / 0.677 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.5847, allocations: 4.031 kB / 0.677 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.5862, allocations: 0.8176 MB / 0.6778 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.5865, allocations: 184.3 kB / 0.6779 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.5866, allocations: 8 kB / 0.678 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.587, allocations: 23.98 kB / 0.678 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.5871, allocations: 47.81 kB / 0.678 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.24e-05/0.5872, allocations: 43.98 kB / 0.6781 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005771/0.5878, allocations: 439.1 kB / 0.6785 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5878, allocations: 4 kB / 0.6785 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0009259/0.5887, allocations: 248 kB / 0.6787 GB, free: 10.8 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.002481/0.5912, allocations: 1.572 MB / 0.6803 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001451/0.5927, allocations: 0.5889 MB / 0.6808 GB, free: 8.594 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.324e-06/0.5927, allocations: 5.625 kB / 0.6808 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001343/0.5941, allocations: 422.6 kB / 0.6812 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.5958, allocations: 366.3 kB / 0.6816 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009611/0.6054, allocations: 6.552 MB / 0.688 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.6061, allocations: 0.93 MB / 0.6889 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001333/0.6074, allocations: 477.8 kB / 0.6894 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005563/0.608, allocations: 283.3 kB / 0.6896 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of SimCode: time 8.42e-07/0.608, allocations: 4 kB / 0.6896 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2674/0.8754, allocations: 24.18 MB / 0.7132 GB, free: 198 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.5, allocations: 11.28 kB / 0.7132 GB, free: 198 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1)