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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8395/0.8395, allocations: 141.8 MB / 149.3 MB, free: 9.223 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 179.9 kB / 182.2 MB, free: 9.465 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 221.5 MB / 436.4 MB, free: 13.31 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 91.98 kB / 0.5074 GB, free: 10.15 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001895/0.001896, allocations: 277.7 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.785e-05/1.789e-05, allocations: 4 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4689/0.4689, allocations: 82.77 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8891/1.358, allocations: 378.5 MB / 1.127 GB, free: 3.094 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/1.358, allocations: 97.31 kB / 1.127 GB, free: 3.043 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.765/3.123, allocations: 440.2 MB / 1.557 GB, free: 150.8 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.523e-06/3.124, allocations: 0 / 1.557 GB, free: 150.8 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001039/3.124, allocations: 29.84 kB / 1.557 GB, free: 150.8 MB / 0.698 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.002252/3.126, allocations: 1.248 MB / 1.558 GB, free: 150 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/3.126, allocations: 10.38 kB / 1.558 GB, free: 150 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003476/3.126, allocations: 139.8 kB / 1.558 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02528/3.152, allocations: 12.91 MB / 1.571 GB, free: 142.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/3.152, allocations: 22.81 kB / 1.571 GB, free: 142.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/3.152, allocations: 42.16 kB / 1.571 GB, free: 142.4 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008642/3.153, allocations: 456.1 kB / 1.572 GB, free: 142.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009919/3.154, allocations: 0.6229 MB / 1.572 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/3.154, allocations: 4.5 kB / 1.572 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.418e-05/3.154, allocations: 0 / 1.572 GB, free: 141.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.441e-05/3.154, allocations: 26.28 kB / 1.572 GB, free: 141.9 MB / 0.698 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.003818/3.158, allocations: 3.384 MB / 1.575 GB, free: 139 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/3.158, allocations: 320.7 kB / 1.576 GB, free: 138.7 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/3.158, allocations: 149.8 kB / 1.576 GB, free: 138.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004349/3.159, allocations: 0.6629 MB / 1.577 GB, free: 137.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/3.159, allocations: 34.56 kB / 1.577 GB, free: 137.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=31): time 2.214e-06/3.159, allocations: 0 / 1.577 GB, free: 137.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=31): time 0.000771/3.16, allocations: 351 kB / 1.577 GB, free: 137.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/3.16, allocations: 55.34 kB / 1.577 GB, free: 137.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007835/3.16, allocations: 0.6412 MB / 1.578 GB, free: 137.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/3.16, allocations: 29.61 kB / 1.578 GB, free: 137.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/3.161, allocations: 0.498 MB / 1.578 GB, free: 136.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.942e-05/3.161, allocations: 101.8 kB / 1.578 GB, free: 136.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/3.161, allocations: 3.656 kB / 1.578 GB, free: 136.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001058/3.161, allocations: 329.6 kB / 1.579 GB, free: 136.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/3.161, allocations: 117.3 kB / 1.579 GB, free: 136.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/3.161, allocations: 326.5 kB / 1.579 GB, free: 136 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003725/3.162, allocations: 195.6 kB / 1.579 GB, free: 135.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/3.162, allocations: 0 / 1.579 GB, free: 135.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0007523/3.163, allocations: 490 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/3.163, allocations: 7.562 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.537e-06/3.163, allocations: 7.5 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/3.163, allocations: 10.25 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003918/3.163, allocations: 112.3 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.27e-05/3.163, allocations: 15.52 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006838/3.164, allocations: 80.27 kB / 1.58 GB, free: 135.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.135e-05/3.164, allocations: 26.81 kB / 1.58 GB, free: 135.6 MB / 0.698 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.0001096/3.164, allocations: 120.7 kB / 1.58 GB, free: 135.4 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005612/3.165, allocations: 351.9 kB / 1.58 GB, free: 135.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/3.165, allocations: 88.72 kB / 1.58 GB, free: 135.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007222/3.165, allocations: 418.1 kB / 1.581 GB, free: 135 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/3.165, allocations: 3.75 kB / 1.581 GB, free: 135 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/3.165, allocations: 2.938 kB / 1.581 GB, free: 135 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004713/3.166, allocations: 404.4 kB / 1.581 GB, free: 134.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001694/3.168, allocations: 1.268 MB / 1.582 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/3.168, allocations: 3.75 kB / 1.582 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/3.168, allocations: 81.52 kB / 1.582 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.305e-06/3.168, allocations: 7.938 kB / 1.583 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/3.168, allocations: 6.688 kB / 1.583 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/3.168, allocations: 5.188 kB / 1.583 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/3.168, allocations: 3.969 kB / 1.583 GB, free: 133.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009043/3.169, allocations: 0.7398 MB / 1.583 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/3.169, allocations: 238 kB / 1.583 GB, free: 133 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.615e-05/3.169, allocations: 2.906 kB / 1.583 GB, free: 133 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/3.17, allocations: 43.05 kB / 1.584 GB, free: 133 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.868e-05/3.17, allocations: 30.33 kB / 1.584 GB, free: 132.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/3.17, allocations: 19.17 kB / 1.584 GB, free: 132.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0006017/3.171, allocations: 0.4902 MB / 1.584 GB, free: 132.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.71e-07/3.171, allocations: 0 / 1.584 GB, free: 132.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001291/3.172, allocations: 367.5 kB / 1.584 GB, free: 132.4 MB / 0.698 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.002087/3.174, allocations: 2.08 MB / 1.586 GB, free: 130.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000545/3.175, allocations: 326.7 kB / 1.587 GB, free: 130 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/3.175, allocations: 0 / 1.587 GB, free: 130 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/3.175, allocations: 167.8 kB / 1.587 GB, free: 129.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/3.177, allocations: 495.3 kB / 1.587 GB, free: 129.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/3.18, allocations: 1.388 MB / 1.589 GB, free: 128.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/3.18, allocations: 1.059 MB / 1.59 GB, free: 127 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006962/3.181, allocations: 181.8 kB / 1.59 GB, free: 126.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/3.181, allocations: 355.3 kB / 1.59 GB, free: 126.5 MB / 0.698 GB Notification: Performance of SimCode: time 9.81e-07/3.181, allocations: 0 / 1.59 GB, free: 126.5 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05418/3.235, allocations: 25.25 MB / 1.615 GB, free: 102.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/3.236, allocations: 195 kB / 1.615 GB, free: 102 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.751/5.987, allocations: 0 / 1.615 GB, free: 102 MB / 0.698 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1)