Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",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.004632/0.004632, allocations: 101 kB / 15.73 MB, free: 6.062 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.001223/0.001223, allocations: 195.2 kB / 16.67 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002463/0.002463, allocations: 279 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9916/0.9916, allocations: 169.2 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 103.8 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4807/0.4834, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.08383/0.5673, allocations: 77.14 MB / 0.8412 GB, free: 6.441 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.03036/0.5977, allocations: 18.9 MB / 0.8597 GB, free: 3.5 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004184/0.6019, allocations: 111.4 kB / 0.8598 GB, free: 3.391 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.004322/0.6063, allocations: 1.238 MB / 0.861 GB, free: 2.145 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0117/0.618, allocations: 3.629 MB / 0.8646 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.006163/0.6242, allocations: 2.099 MB / 0.8666 GB, free: 12.42 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.01151/0.6357, allocations: 6.683 MB / 0.8731 GB, free: 5.719 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003931/0.6397, allocations: 2.098 MB / 0.8752 GB, free: 3.57 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006487/0.6462, allocations: 2.318 MB / 0.8774 GB, free: 1.258 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003771/0.65, allocations: 1.75 MB / 0.8792 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005862/0.6506, allocations: 196 kB / 0.8793 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004618/0.6552, allocations: 1.622 MB / 0.8809 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0007601/0.656, allocations: 0.541 MB / 0.8815 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.002046/0.6581, allocations: 1.248 MB / 0.8827 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.007143/0.6652, allocations: 3.766 MB / 0.8864 GB, free: 8.113 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.6653, allocations: 0 / 0.8864 GB, free: 8.113 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6653, allocations: 0 / 0.8864 GB, free: 8.113 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.928e-05/0.6654, allocations: 3.938 kB / 0.8864 GB, free: 8.109 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.005227/0.6706, allocations: 2.79 MB / 0.8891 GB, free: 5.25 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.6707, allocations: 8.031 kB / 0.8891 GB, free: 5.242 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002599/0.6709, allocations: 202.8 kB / 0.8893 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007716/0.6717, allocations: 287.3 kB / 0.8896 GB, free: 4.754 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003698/0.6754, allocations: 2.032 MB / 0.8915 GB, free: 2.672 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.6755, allocations: 102.7 kB / 0.8916 GB, free: 2.57 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.6758, allocations: 144 kB / 0.8918 GB, free: 2.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002929/0.6787, allocations: 1.524 MB / 0.8933 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.59e-05/0.6787, allocations: 0 / 0.8933 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.6789, allocations: 56 kB / 0.8933 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-05/0.679, allocations: 47.92 kB / 0.8934 GB, free: 0.7266 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.6813, allocations: 1.119 MB / 0.8945 GB, free: 15.6 MB / 0.67 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.009999/0.6913, allocations: 7.624 MB / 0.9019 GB, free: 7.402 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.6924, allocations: 487.5 kB / 0.9024 GB, free: 6.922 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006733/0.6931, allocations: 338.8 kB / 0.9027 GB, free: 6.59 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001087/0.6941, allocations: 1.152 MB / 0.9038 GB, free: 5.18 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.518e-05/0.6942, allocations: 39.12 kB / 0.9039 GB, free: 5.133 MB / 0.67 GB Notification: Performance of pre-optimization done (n=59): time 4.678e-06/0.6942, allocations: 0 / 0.9039 GB, free: 5.133 MB / 0.67 GB Notification: Performance of matching and sorting (n=59): time 0.002518/0.6967, allocations: 0.9739 MB / 0.9048 GB, free: 4.152 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.6968, allocations: 63.95 kB / 0.9049 GB, free: 4.078 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00258/0.6994, allocations: 1.783 MB / 0.9066 GB, free: 2.258 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.6995, allocations: 41.7 kB / 0.9066 GB, free: 2.211 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009997/0.7005, allocations: 0.9451 MB / 0.9076 GB, free: 1.258 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003029/0.7008, allocations: 238 kB / 0.9078 GB, free: 1.023 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/0.7012, allocations: 226.8 kB / 0.908 GB, free: 0.7969 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0002055/0.7014, allocations: 349.9 kB / 0.9083 GB, free: 460 kB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007469/0.7022, allocations: 330.4 kB / 0.9087 GB, free: 128 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.7034, allocations: 0.6861 MB / 0.9093 GB, free: 15.29 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.7052, allocations: 1.012 MB / 0.9103 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/0.7052, allocations: 4 kB / 0.9103 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00262/0.7078, allocations: 1.223 MB / 0.9115 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.7079, allocations: 11.44 kB / 0.9115 GB, free: 12.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.7079, allocations: 8 kB / 0.9115 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/0.7079, allocations: 16 kB / 0.9116 GB, free: 12.88 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.709, allocations: 296.1 kB / 0.9118 GB, free: 12.59 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/0.709, allocations: 19.92 kB / 0.9119 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.7102, allocations: 166.9 kB / 0.912 GB, free: 12.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.173e-05/0.7103, allocations: 51.98 kB / 0.9121 GB, free: 12.35 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0007875/0.7111, allocations: 449.3 kB / 0.9125 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/0.7115, allocations: 198.7 kB / 0.9127 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.7133, allocations: 0.8677 MB / 0.9135 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.7133, allocations: 8 kB / 0.9135 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.7134, allocations: 0 / 0.9135 GB, free: 10.83 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00145/0.7148, allocations: 0.7956 MB / 0.9143 GB, free: 9.988 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/0.719, allocations: 2.451 MB / 0.9167 GB, free: 7.445 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.719, allocations: 0 / 0.9167 GB, free: 7.445 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.7198, allocations: 188 kB / 0.9169 GB, free: 7.262 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.915e-06/0.7199, allocations: 4 kB / 0.9169 GB, free: 7.258 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.68e-05/0.7199, allocations: 20 kB / 0.9169 GB, free: 7.238 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.065e-05/0.7199, allocations: 4 kB / 0.9169 GB, free: 7.234 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.7199, allocations: 7.938 kB / 0.9169 GB, free: 7.227 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/0.7225, allocations: 1.349 MB / 0.9182 GB, free: 5.84 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006576/0.7232, allocations: 379.5 kB / 0.9186 GB, free: 5.449 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.7234, allocations: 16 kB / 0.9186 GB, free: 5.434 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.7243, allocations: 55.92 kB / 0.9187 GB, free: 5.379 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.7244, allocations: 56.48 kB / 0.9187 GB, free: 5.324 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.848e-05/0.7245, allocations: 35.92 kB / 0.9188 GB, free: 5.289 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001885/0.7264, allocations: 1.247 MB / 0.92 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.51e-07/0.7264, allocations: 0 / 0.92 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001723/0.7281, allocations: 0.6548 MB / 0.9206 GB, free: 3.367 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.004044/0.7322, allocations: 2.401 MB / 0.923 GB, free: 0.9219 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001856/0.7341, allocations: 0.8231 MB / 0.9238 GB, free: 104 kB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.7341, allocations: 1.312 kB / 0.9238 GB, free: 104 kB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0007708/0.7349, allocations: 355.4 kB / 0.9241 GB, free: 15.75 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00537/0.7402, allocations: 1.198 MB / 0.9253 GB, free: 14.58 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02075/0.761, allocations: 12.62 MB / 0.9376 GB, free: 1.441 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.7622, allocations: 1.409 MB / 0.939 GB, free: 16 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001523/0.7638, allocations: 384.6 kB / 0.9393 GB, free: 15.63 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001064/0.7648, allocations: 0.7687 MB / 0.9401 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of SimCode: time 8.32e-07/0.7648, allocations: 4 kB / 0.9401 GB, free: 14.86 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4534/1.218, allocations: 57.62 MB / 0.9964 GB, free: 177.9 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/13.42, allocations: 15.11 kB / 0.9964 GB, free: 177.9 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_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_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)