Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",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.00583/0.00583, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001428/0.001428, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002061/0.002061, allocations: 289.6 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.927/0.927, allocations: 169.2 MB / 0.4983 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 99.84 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5372/0.5389, allocations: 86.97 MB / 0.7659 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04091/0.5798, allocations: 41.56 MB / 0.8065 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01521/0.5951, allocations: 10.4 MB / 0.8167 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002225/0.5973, allocations: 59.62 kB / 0.8167 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001851/0.5992, allocations: 0.6599 MB / 0.8174 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005346/0.6046, allocations: 1.978 MB / 0.8193 GB, free: 13 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.6077, allocations: 1.188 MB / 0.8204 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004485/0.6122, allocations: 3.402 MB / 0.8238 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.6135, allocations: 1.06 MB / 0.8248 GB, free: 7.332 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002982/0.6165, allocations: 1.273 MB / 0.826 GB, free: 6.062 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.6178, allocations: 0.8867 MB / 0.8269 GB, free: 5.172 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.6179, allocations: 100 kB / 0.827 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.6199, allocations: 0.8578 MB / 0.8278 GB, free: 4.215 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002633/0.6202, allocations: 279 kB / 0.8281 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006776/0.6209, allocations: 0.6338 MB / 0.8287 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002723/0.6236, allocations: 1.94 MB / 0.8306 GB, free: 1.363 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.6236, allocations: 3.938 kB / 0.8306 GB, free: 1.359 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.294e-06/0.6236, allocations: 4 kB / 0.8306 GB, free: 1.355 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.464e-05/0.6236, allocations: 0 / 0.8306 GB, free: 1.355 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002443/0.6261, allocations: 1.549 MB / 0.8321 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.795e-05/0.6261, allocations: 12.03 kB / 0.8322 GB, free: 15.74 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001406/0.6263, allocations: 118.7 kB / 0.8323 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.6266, allocations: 140.1 kB / 0.8324 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001724/0.6284, allocations: 1.119 MB / 0.8335 GB, free: 14.32 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.793e-05/0.6284, allocations: 54 kB / 0.8336 GB, free: 14.26 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.6285, allocations: 72 kB / 0.8336 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.6298, allocations: 0.7905 MB / 0.8344 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.6298, allocations: 4 kB / 0.8344 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.529e-05/0.6299, allocations: 27.98 kB / 0.8344 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.6299, allocations: 20 kB / 0.8344 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.631, allocations: 0.5711 MB / 0.835 GB, free: 12.75 MB / 0.6075 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.00442/0.6354, allocations: 3.56 MB / 0.8385 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006076/0.636, allocations: 258.4 kB / 0.8387 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003671/0.6364, allocations: 181.3 kB / 0.8389 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000656/0.6371, allocations: 0.6532 MB / 0.8395 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.6371, allocations: 46.48 kB / 0.8396 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.6371, allocations: 0 / 0.8396 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of matching and sorting (n=31): time 0.001164/0.6383, allocations: 0.5181 MB / 0.8401 GB, free: 7.141 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.6384, allocations: 59.34 kB / 0.8401 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.6395, allocations: 0.9495 MB / 0.8411 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.6395, allocations: 33.7 kB / 0.8411 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004232/0.6399, allocations: 0.4926 MB / 0.8416 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.6401, allocations: 126.9 kB / 0.8417 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.6403, allocations: 114.2 kB / 0.8418 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001516/0.6404, allocations: 326 kB / 0.8421 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003607/0.6408, allocations: 165 kB / 0.8423 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005106/0.6413, allocations: 350.9 kB / 0.8426 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008088/0.6421, allocations: 0.5078 MB / 0.8431 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.6422, allocations: 0 / 0.8431 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001084/0.6432, allocations: 0.6176 MB / 0.8437 GB, free: 3.215 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.6433, allocations: 8 kB / 0.8437 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.6433, allocations: 4.062 kB / 0.8437 GB, free: 3.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.6433, allocations: 15.94 kB / 0.8437 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.6438, allocations: 132.4 kB / 0.8439 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.6438, allocations: 11.94 kB / 0.8439 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006399/0.6444, allocations: 91.36 kB / 0.844 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/0.6445, allocations: 31.94 kB / 0.844 GB, free: 2.926 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * Array equations: 0 * 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.0003611/0.6448, allocations: 273.9 kB / 0.8443 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.645, allocations: 103.3 kB / 0.8444 GB, free: 2.547 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009205/0.6459, allocations: 491.6 kB / 0.8448 GB, free: 2.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.6459, allocations: 4 kB / 0.8448 GB, free: 2.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.545e-06/0.646, allocations: 3.938 kB / 0.8448 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006901/0.6467, allocations: 453.5 kB / 0.8453 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.6487, allocations: 1.359 MB / 0.8466 GB, free: 156 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.6487, allocations: 4.031 kB / 0.8466 GB, free: 152 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003324/0.6491, allocations: 79.88 kB / 0.8467 GB, free: 72 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.6491, allocations: 4 kB / 0.8467 GB, free: 68 kB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.6491, allocations: 8 kB / 0.8467 GB, free: 60 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.6491, allocations: 4 kB / 0.8467 GB, free: 56 kB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.6491, allocations: 3.984 kB / 0.8467 GB, free: 52 kB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.6504, allocations: 0.7791 MB / 0.8474 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.6507, allocations: 228.3 kB / 0.8477 GB, free: 15 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.6508, allocations: 11.98 kB / 0.8477 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000495/0.6513, allocations: 31.91 kB / 0.8477 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.465e-05/0.6514, allocations: 27.97 kB / 0.8477 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.6514, allocations: 15.98 kB / 0.8478 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007772/0.6522, allocations: 0.6628 MB / 0.8484 GB, free: 14.24 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6522, allocations: 7.938 kB / 0.8484 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009082/0.6532, allocations: 343.2 kB / 0.8487 GB, free: 13.9 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.002101/0.6553, allocations: 1.582 MB / 0.8503 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008334/0.6561, allocations: 420.4 kB / 0.8507 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.6561, allocations: 4 kB / 0.8507 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.6565, allocations: 184.2 kB / 0.8509 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/0.659, allocations: 0.6067 MB / 0.8515 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008813/0.6678, allocations: 6.854 MB / 0.8581 GB, free: 3.957 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.6684, allocations: 1.036 MB / 0.8592 GB, free: 2.891 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0006436/0.6691, allocations: 202.1 kB / 0.8593 GB, free: 2.695 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004389/0.6695, allocations: 375.2 kB / 0.8597 GB, free: 2.328 MB / 0.6231 GB Notification: Performance of SimCode: time 7.02e-07/0.6695, allocations: 4 kB / 0.8597 GB, free: 2.324 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06308/0.7326, allocations: 29.77 MB / 0.8888 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.28/10.01, allocations: 10.66 kB / 0.8888 GB, free: 5.031 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)