Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.871/1.871, allocations: 289.9 MB / 297.4 MB, free: 6.383 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 172.8 kB / 366.7 MB, free: 1.672 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.845/1.845, allocations: 205.2 MB / 0.626 GB, free: 7.188 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009091/0.0009091, allocations: 89.94 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.024e-05/2.027e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7101/0.7101, allocations: 116.3 MB / 0.9733 GB, free: 76.16 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.085/1.796, allocations: 407.6 MB / 1.371 GB, free: 148.7 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/1.796, allocations: 92.14 kB / 1.371 GB, free: 148.6 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.502/3.298, allocations: 431.7 MB / 1.793 GB, free: 203.6 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.998e-06/3.298, allocations: 3.984 kB / 1.793 GB, free: 203.5 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001161/3.299, allocations: 28 kB / 1.793 GB, free: 203.5 MB / 0.948 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.002432/3.301, allocations: 1.251 MB / 1.794 GB, free: 202.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/3.301, allocations: 8.031 kB / 1.794 GB, free: 202.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/3.301, allocations: 135.4 kB / 1.794 GB, free: 202.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02576/3.327, allocations: 12.64 MB / 1.807 GB, free: 189.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/3.327, allocations: 24 kB / 1.807 GB, free: 189.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/3.327, allocations: 47.94 kB / 1.807 GB, free: 189.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009012/3.328, allocations: 455.8 kB / 1.807 GB, free: 189 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009678/3.329, allocations: 0.6266 MB / 1.808 GB, free: 188.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/3.329, allocations: 3.906 kB / 1.808 GB, free: 188.3 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.846e-05/3.329, allocations: 4 kB / 1.808 GB, free: 188.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.412e-05/3.329, allocations: 16 kB / 1.808 GB, free: 188.3 MB / 0.948 GB Warning: The model contains alias variables with conflicting start and/or 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.003904/3.333, allocations: 3.39 MB / 1.811 GB, free: 184.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004767/3.334, allocations: 323.7 kB / 1.812 GB, free: 184.4 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/3.334, allocations: 150.9 kB / 1.812 GB, free: 184.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004588/3.334, allocations: 0.6558 MB / 1.812 GB, free: 183.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/3.335, allocations: 38.56 kB / 1.812 GB, free: 183.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=31): time 2.374e-06/3.335, allocations: 0 / 1.812 GB, free: 183.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=31): time 0.000777/3.335, allocations: 353.5 kB / 1.813 GB, free: 183 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/3.335, allocations: 59.39 kB / 1.813 GB, free: 182.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/3.336, allocations: 0.6375 MB / 1.813 GB, free: 182.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/3.336, allocations: 29.64 kB / 1.813 GB, free: 182.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000263/3.336, allocations: 0.5066 MB / 1.814 GB, free: 181.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 8.206e-05/3.336, allocations: 102.5 kB / 1.814 GB, free: 181.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/3.336, allocations: 4 kB / 1.814 GB, free: 181.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.208e-05/3.337, allocations: 326 kB / 1.814 GB, free: 181.3 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/3.337, allocations: 117.1 kB / 1.814 GB, free: 181.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/3.337, allocations: 339.7 kB / 1.815 GB, free: 180.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000374/3.337, allocations: 187.7 kB / 1.815 GB, free: 180.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/3.337, allocations: 4 kB / 1.815 GB, free: 180.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0007351/3.338, allocations: 480.1 kB / 1.815 GB, free: 180.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/3.338, allocations: 7.984 kB / 1.815 GB, free: 180.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/3.338, allocations: 8 kB / 1.815 GB, free: 180.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/3.338, allocations: 8 kB / 1.815 GB, free: 180.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/3.339, allocations: 120.5 kB / 1.816 GB, free: 180 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.565e-05/3.339, allocations: 11.94 kB / 1.816 GB, free: 180 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008095/3.34, allocations: 91.28 kB / 1.816 GB, free: 179.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.054e-05/3.34, allocations: 27.98 kB / 1.816 GB, free: 179.8 MB / 0.948 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001223/3.34, allocations: 116.9 kB / 1.816 GB, free: 179.7 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005588/3.34, allocations: 340.5 kB / 1.816 GB, free: 179.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/3.34, allocations: 86.97 kB / 1.816 GB, free: 179.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007794/3.341, allocations: 423.4 kB / 1.817 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/3.341, allocations: 7.953 kB / 1.817 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/3.341, allocations: 0 / 1.817 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004989/3.342, allocations: 395.7 kB / 1.817 GB, free: 178.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/3.344, allocations: 1.267 MB / 1.818 GB, free: 177.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/3.344, allocations: 7.938 kB / 1.818 GB, free: 177.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003518/3.344, allocations: 79.88 kB / 1.818 GB, free: 177 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/3.344, allocations: 4 kB / 1.818 GB, free: 177 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/3.344, allocations: 4 kB / 1.818 GB, free: 177 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/3.344, allocations: 0 / 1.818 GB, free: 177 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/3.344, allocations: 7.938 kB / 1.818 GB, free: 177 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009055/3.345, allocations: 0.7349 MB / 1.819 GB, free: 176.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003017/3.345, allocations: 227.9 kB / 1.819 GB, free: 176 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/3.345, allocations: 11.89 kB / 1.819 GB, free: 176 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/3.346, allocations: 55.67 kB / 1.819 GB, free: 175.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.018e-05/3.346, allocations: 31.89 kB / 1.819 GB, free: 175.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/3.346, allocations: 19.98 kB / 1.819 GB, free: 175.9 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0006694/3.347, allocations: 495.1 kB / 1.82 GB, free: 175.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.8e-07/3.347, allocations: 4 kB / 1.82 GB, free: 175.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001309/3.348, allocations: 363.2 kB / 1.82 GB, free: 175 MB / 0.948 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002105/3.35, allocations: 2.09 MB / 1.822 GB, free: 172.9 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0005516/3.351, allocations: 331.5 kB / 1.823 GB, free: 172.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/3.351, allocations: 4 kB / 1.823 GB, free: 172.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002015/3.351, allocations: 151.8 kB / 1.823 GB, free: 172.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/3.353, allocations: 482.9 kB / 1.823 GB, free: 172 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003212/3.357, allocations: 1.386 MB / 1.825 GB, free: 170.5 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005658/3.357, allocations: 1.063 MB / 1.826 GB, free: 169.4 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0008119/3.358, allocations: 173.7 kB / 1.826 GB, free: 169.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/3.359, allocations: 351.3 kB / 1.826 GB, free: 168.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.994e-06/3.359, allocations: 3.938 kB / 1.826 GB, free: 168.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05462/3.413, allocations: 25.22 MB / 1.851 GB, free: 143.9 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/3.413, allocations: 176.3 kB / 1.851 GB, free: 143.7 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.089/6.502, allocations: 0 / 1.851 GB, free: 143.7 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)