Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_10_Buildings_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.001129/0.001129, allocations: 108 kB / 15.6 MB, free: 132 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.001184/0.001184, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 63.89 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6449/0.6463, allocations: 151.6 MB / 1.017 GB, free: 2.484 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04058/0.687, allocations: 41.59 MB / 1.058 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01509/0.7021, allocations: 10.4 MB / 1.068 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001656/0.7038, allocations: 55.69 kB / 1.068 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.7057, allocations: 0.6443 MB / 1.069 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00506/0.7108, allocations: 1.881 MB / 1.071 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002989/0.7138, allocations: 1.179 MB / 1.072 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0041/0.7179, allocations: 3.393 MB / 1.075 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00168/0.7196, allocations: 1.054 MB / 1.076 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002983/0.7226, allocations: 1.232 MB / 1.077 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.7241, allocations: 0.875 MB / 1.078 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002731/0.7244, allocations: 100 kB / 1.078 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002308/0.7267, allocations: 0.8655 MB / 1.079 GB, free: 3.016 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000417/0.7271, allocations: 279 kB / 1.079 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.7283, allocations: 0.626 MB / 1.08 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003202/0.7315, allocations: 1.909 MB / 1.082 GB, free: 204 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.7315, allocations: 0 / 1.082 GB, free: 204 kB / 0.8262 GB Notification: Performance of FrontEnd: time 2.375e-06/0.7315, allocations: 0 / 1.082 GB, free: 204 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.127e-05/0.7316, allocations: 0 / 1.082 GB, free: 204 kB / 0.8262 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.003226/0.7348, allocations: 1.511 MB / 1.083 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.7349, allocations: 12.03 kB / 1.083 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001717/0.7351, allocations: 118.7 kB / 1.084 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004197/0.7355, allocations: 135.5 kB / 1.084 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.7373, allocations: 1.033 MB / 1.085 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.718e-05/0.7374, allocations: 57.98 kB / 1.085 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.7375, allocations: 72 kB / 1.085 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.7389, allocations: 0.7982 MB / 1.086 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.7389, allocations: 0 / 1.086 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.739, allocations: 32 kB / 1.086 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.739, allocations: 24 kB / 1.086 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.7402, allocations: 0.5633 MB / 1.086 GB, free: 11.71 MB / 0.8419 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.004132/0.7443, allocations: 3.586 MB / 1.09 GB, free: 7.898 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/0.7449, allocations: 259.2 kB / 1.09 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.7453, allocations: 176.7 kB / 1.09 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004948/0.7458, allocations: 0.661 MB / 1.091 GB, free: 6.652 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.7458, allocations: 34.56 kB / 1.091 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.894e-06/0.7458, allocations: 0 / 1.091 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001228/0.7471, allocations: 0.5093 MB / 1.091 GB, free: 6.094 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.7471, allocations: 59.34 kB / 1.091 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001156/0.7483, allocations: 0.9456 MB / 1.092 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.7483, allocations: 33.7 kB / 1.092 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000392/0.7487, allocations: 0.4956 MB / 1.093 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.7488, allocations: 114.4 kB / 1.093 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.749, allocations: 110.2 kB / 1.093 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.7491, allocations: 333.9 kB / 1.093 GB, free: 3.961 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.7495, allocations: 165 kB / 1.093 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.75, allocations: 343 kB / 1.094 GB, free: 3.387 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008495/0.7508, allocations: 0.5109 MB / 1.094 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.7509, allocations: 4 kB / 1.094 GB, free: 2.801 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001229/0.7521, allocations: 0.6211 MB / 1.095 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.7521, allocations: 8 kB / 1.095 GB, free: 2.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.7521, allocations: 7.938 kB / 1.095 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.7522, allocations: 8 kB / 1.095 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.7526, allocations: 127.8 kB / 1.095 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-05/0.7527, allocations: 11.94 kB / 1.095 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006674/0.7533, allocations: 87.44 kB / 1.095 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.663e-05/0.7534, allocations: 27.94 kB / 1.095 GB, free: 1.898 MB / 0.8419 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.0003776/0.7538, allocations: 277.6 kB / 1.095 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001905/0.754, allocations: 98.78 kB / 1.096 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009994/0.755, allocations: 484.6 kB / 1.096 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.755, allocations: 0 / 1.096 GB, free: 1.031 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.755, allocations: 4 kB / 1.096 GB, free: 1.027 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007331/0.7558, allocations: 457.2 kB / 1.096 GB, free: 0.5508 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00217/0.758, allocations: 1.362 MB / 1.098 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/0.758, allocations: 4 kB / 1.098 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.7583, allocations: 87.97 kB / 1.098 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.7583, allocations: 4 kB / 1.098 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.7584, allocations: 8 kB / 1.098 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.7584, allocations: 0 / 1.098 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.7584, allocations: 4.062 kB / 1.098 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.7597, allocations: 0.7738 MB / 1.099 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.76, allocations: 223.8 kB / 1.099 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.7601, allocations: 12.06 kB / 1.099 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005352/0.7607, allocations: 31.91 kB / 1.099 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.7608, allocations: 27.95 kB / 1.099 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.7608, allocations: 19.98 kB / 1.099 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008298/0.7616, allocations: 0.6627 MB / 1.1 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7616, allocations: 0 / 1.1 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000958/0.7626, allocations: 339.5 kB / 1.1 GB, free: 12.87 MB / 0.8575 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.002174/0.7648, allocations: 1.605 MB / 1.101 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009709/0.7658, allocations: 443.5 kB / 1.102 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.7658, allocations: 1.375 kB / 1.102 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003874/0.7662, allocations: 196.5 kB / 1.102 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002769/0.769, allocations: 0.6133 MB / 1.103 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009629/0.7786, allocations: 7.207 MB / 1.11 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005823/0.7792, allocations: 1.04 MB / 1.111 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0008138/0.78, allocations: 205.3 kB / 1.111 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/0.7805, allocations: 367.3 kB / 1.111 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of SimCode: time 1.964e-06/0.7805, allocations: 0 / 1.111 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06565/0.8462, allocations: 29.55 MB / 1.14 GB, free: 3.645 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/9.21, allocations: 3.938 kB / 1.14 GB, free: 3.641 MB / 0.8887 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches