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.001341/0.001341, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002446/0.002446, allocations: 274.7 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.034/1.034, allocations: 178.5 MB / 0.5073 GB, free: 4.613 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002685, allocations: 102 kB / 0.6065 GB, free: 24.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.177, allocations: 89.14 MB / 0.6936 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04473/0.2218, allocations: 41.55 MB / 0.7342 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01593/0.2378, allocations: 10.41 MB / 0.7443 GB, free: 144 kB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002068/0.2399, allocations: 59.69 kB / 0.7444 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.2418, allocations: 0.6365 MB / 0.745 GB, free: 15.44 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005104/0.2469, allocations: 1.89 MB / 0.7469 GB, free: 13.54 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003189/0.2501, allocations: 1.168 MB / 0.748 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005148/0.2553, allocations: 3.391 MB / 0.7513 GB, free: 8.984 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.2569, allocations: 1.06 MB / 0.7524 GB, free: 7.906 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002838/0.2597, allocations: 1.237 MB / 0.7536 GB, free: 6.672 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.2611, allocations: 0.875 MB / 0.7544 GB, free: 5.793 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.2612, allocations: 100 kB / 0.7545 GB, free: 5.695 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002007/0.2632, allocations: 0.8617 MB / 0.7554 GB, free: 4.832 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.2636, allocations: 279 kB / 0.7556 GB, free: 4.559 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00072/0.2643, allocations: 0.6298 MB / 0.7562 GB, free: 3.926 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002783/0.2671, allocations: 1.905 MB / 0.7581 GB, free: 2.016 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2671, allocations: 0 / 0.7581 GB, free: 2.016 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2671, allocations: 4 kB / 0.7581 GB, free: 2.012 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.559e-05/0.2672, allocations: 0 / 0.7581 GB, free: 2.012 MB / 0.545 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.002603/0.2698, allocations: 1.507 MB / 0.7596 GB, free: 464 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.446e-05/0.2698, allocations: 8.031 kB / 0.7596 GB, free: 456 kB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.27, allocations: 114.7 kB / 0.7597 GB, free: 332 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003685/0.2704, allocations: 143.4 kB / 0.7598 GB, free: 188 kB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2662/0.5366, allocations: 1.039 MB / 0.7608 GB, free: 69.48 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.568e-05/0.5367, allocations: 59.56 kB / 0.7609 GB, free: 69.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.5368, allocations: 72.92 kB / 0.761 GB, free: 69.48 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.5382, allocations: 0.7893 MB / 0.7617 GB, free: 69.26 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.5382, allocations: 1.719 kB / 0.7617 GB, free: 69.26 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.947e-05/0.5383, allocations: 31.12 kB / 0.7618 GB, free: 69.23 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/0.5384, allocations: 19.34 kB / 0.7618 GB, free: 69.23 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.5395, allocations: 0.5713 MB / 0.7623 GB, free: 69.04 MB / 0.545 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.003823/0.5433, allocations: 3.577 MB / 0.7658 GB, free: 66.5 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005676/0.5439, allocations: 261 kB / 0.7661 GB, free: 66.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003242/0.5442, allocations: 177.3 kB / 0.7663 GB, free: 66.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003465/0.5446, allocations: 0.6561 MB / 0.7669 GB, free: 65.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.5446, allocations: 40.86 kB / 0.7669 GB, free: 65.54 MB / 0.545 GB Notification: Performance of pre-optimization done (n=31): time 2.886e-06/0.5446, allocations: 0 / 0.7669 GB, free: 65.54 MB / 0.545 GB Notification: Performance of matching and sorting (n=31): time 0.001193/0.5458, allocations: 0.5302 MB / 0.7675 GB, free: 65.34 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.5459, allocations: 54.81 kB / 0.7675 GB, free: 65.28 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.5469, allocations: 0.9433 MB / 0.7684 GB, free: 64.88 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.547, allocations: 32.45 kB / 0.7685 GB, free: 64.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.5473, allocations: 0.4923 MB / 0.7689 GB, free: 64.45 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/0.5474, allocations: 112.7 kB / 0.769 GB, free: 64.37 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.5475, allocations: 114.8 kB / 0.7692 GB, free: 64.31 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.227e-05/0.5476, allocations: 329.5 kB / 0.7695 GB, free: 63.99 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003412/0.5479, allocations: 162.2 kB / 0.7696 GB, free: 63.94 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004215/0.5484, allocations: 351.4 kB / 0.77 GB, free: 63.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007362/0.5491, allocations: 0.5124 MB / 0.7705 GB, free: 63.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.5491, allocations: 1.562 kB / 0.7705 GB, free: 63.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001071/0.5502, allocations: 0.6126 MB / 0.7711 GB, free: 63.09 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.5502, allocations: 7.344 kB / 0.7711 GB, free: 63.09 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.5503, allocations: 8.281 kB / 0.7711 GB, free: 63.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.5503, allocations: 17.27 kB / 0.7711 GB, free: 63.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004295/0.5507, allocations: 122.2 kB / 0.7712 GB, free: 63.07 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.841e-05/0.5507, allocations: 10.73 kB / 0.7712 GB, free: 63.07 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/0.5514, allocations: 82.11 kB / 0.7713 GB, free: 63.03 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.5514, allocations: 26.52 kB / 0.7713 GB, free: 63.02 MB / 0.545 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.0003268/0.5517, allocations: 277.1 kB / 0.7716 GB, free: 62.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.5519, allocations: 99.78 kB / 0.7717 GB, free: 62.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.5529, allocations: 489.6 kB / 0.7721 GB, free: 62.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.553, allocations: 11.66 kB / 0.7722 GB, free: 62.56 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.553, allocations: 0 / 0.7722 GB, free: 62.56 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006798/0.5537, allocations: 451.6 kB / 0.7726 GB, free: 62.31 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5557, allocations: 1.358 MB / 0.7739 GB, free: 61.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.5557, allocations: 2.625 kB / 0.7739 GB, free: 61.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.5561, allocations: 73.47 kB / 0.774 GB, free: 61.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.5561, allocations: 4.094 kB / 0.774 GB, free: 61.58 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.658e-05/0.5561, allocations: 13.7 kB / 0.774 GB, free: 61.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.5561, allocations: 8.688 kB / 0.774 GB, free: 61.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5561, allocations: 1.938 kB / 0.774 GB, free: 61.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.5575, allocations: 0.7738 MB / 0.7748 GB, free: 61.16 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003066/0.5578, allocations: 229.1 kB / 0.775 GB, free: 60.98 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/0.5579, allocations: 7.953 kB / 0.775 GB, free: 60.98 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.5584, allocations: 30.58 kB / 0.775 GB, free: 60.98 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/0.5585, allocations: 24.67 kB / 0.775 GB, free: 60.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.65e-05/0.5585, allocations: 25.98 kB / 0.7751 GB, free: 60.96 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009891/0.5595, allocations: 0.6581 MB / 0.7757 GB, free: 60.68 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5595, allocations: 3.938 kB / 0.7757 GB, free: 60.68 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001053/0.5606, allocations: 335 kB / 0.776 GB, free: 60.62 MB / 0.545 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.001998/0.5626, allocations: 1.593 MB / 0.7776 GB, free: 59.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0009761/0.5636, allocations: 458.9 kB / 0.778 GB, free: 59.54 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5636, allocations: 3.688 kB / 0.778 GB, free: 59.54 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.564, allocations: 189.4 kB / 0.7782 GB, free: 59.48 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003087/0.5671, allocations: 0.6192 MB / 0.7788 GB, free: 59.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01073/0.5778, allocations: 7.212 MB / 0.7859 GB, free: 55.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005852/0.5784, allocations: 1.036 MB / 0.7869 GB, free: 54.37 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0009801/0.5794, allocations: 194.5 kB / 0.7871 GB, free: 54.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.5798, allocations: 372.4 kB / 0.7874 GB, free: 54.07 MB / 0.545 GB Notification: Performance of SimCode: time 6.51e-07/0.5798, allocations: 1.188 kB / 0.7874 GB, free: 54.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05858/0.6384, allocations: 29.6 MB / 0.8163 GB, free: 35.19 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.283/8.921, allocations: 7.812 kB / 0.8163 GB, free: 35.18 MB / 0.545 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)