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.8618/0.8618, allocations: 143.3 MB / 158.3 MB, free: 5.789 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.001199/0.001199, allocations: 175.4 kB / 191.5 MB, free: 5.766 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.548/1.548, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.0009569/0.0009567, allocations: 92.25 kB / 0.5187 GB, free: 1.176 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001787/0.001787, allocations: 271.3 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004573/0.0004574, allocations: 18.69 kB / 0.6929 GB, free: 59.68 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1859, allocations: 82.8 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8751/1.061, allocations: 379.2 MB / 1.144 GB, free: 7.465 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/1.061, allocations: 101.2 kB / 1.144 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.749/2.811, allocations: 443.9 MB / 1.578 GB, free: 149.4 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.324e-06/2.811, allocations: 3.969 kB / 1.578 GB, free: 149.4 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0001075/2.811, allocations: 28.11 kB / 1.578 GB, free: 149.4 MB / 0.7136 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.003216/2.814, allocations: 1.459 MB / 1.579 GB, free: 148.4 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 6.196e-05/2.814, allocations: 14.56 kB / 1.579 GB, free: 148.4 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002302/2.815, allocations: 121.6 kB / 1.579 GB, free: 148.3 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004017/2.815, allocations: 130.5 kB / 1.579 GB, free: 148.3 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02548/2.841, allocations: 13.03 MB / 1.592 GB, free: 138.9 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.263e-05/2.841, allocations: 60.81 kB / 1.592 GB, free: 138.8 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/2.841, allocations: 72 kB / 1.592 GB, free: 138.8 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/2.842, allocations: 0.7728 MB / 1.593 GB, free: 137.9 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/2.842, allocations: 0 / 1.593 GB, free: 137.9 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.309e-05/2.842, allocations: 35.19 kB / 1.593 GB, free: 137.9 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.956e-05/2.842, allocations: 16 kB / 1.593 GB, free: 137.9 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009706/2.843, allocations: 0.5659 MB / 1.594 GB, free: 137.3 MB / 0.7136 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.004717/2.848, allocations: 3.55 MB / 1.597 GB, free: 133.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006404/2.849, allocations: 374.5 kB / 1.597 GB, free: 133.2 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004433/2.849, allocations: 0.6557 MB / 1.598 GB, free: 132.4 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/2.849, allocations: 38.56 kB / 1.598 GB, free: 132.4 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=31): time 2.756e-06/2.849, allocations: 0 / 1.598 GB, free: 132.4 MB / 0.7136 GB Notification: Performance of matching and sorting (n=31): time 0.001168/2.85, allocations: 0.5598 MB / 1.599 GB, free: 131.8 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/2.85, allocations: 61.73 kB / 1.599 GB, free: 131.8 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009387/2.851, allocations: 0.8186 MB / 1.6 GB, free: 130.9 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.618e-05/2.851, allocations: 37.7 kB / 1.6 GB, free: 130.9 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/2.852, allocations: 499 kB / 1.6 GB, free: 130.4 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/2.852, allocations: 118.3 kB / 1.6 GB, free: 130.3 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/2.852, allocations: 12 kB / 1.6 GB, free: 130.3 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.778e-05/2.852, allocations: 328.7 kB / 1.6 GB, free: 129.9 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/2.852, allocations: 159.8 kB / 1.601 GB, free: 129.8 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005534/2.853, allocations: 385.9 kB / 1.601 GB, free: 129.3 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/2.853, allocations: 213.1 kB / 1.601 GB, free: 129.1 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/2.853, allocations: 4 kB / 1.601 GB, free: 129.1 MB / 0.7136 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.00097/2.854, allocations: 0.6071 MB / 1.602 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/2.854, allocations: 4 kB / 1.602 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/2.854, allocations: 11.98 kB / 1.602 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.377e-05/2.854, allocations: 8 kB / 1.602 GB, free: 128.5 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/2.855, allocations: 115.8 kB / 1.602 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/2.855, allocations: 8 kB / 1.602 GB, free: 128.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008228/2.856, allocations: 121 kB / 1.602 GB, free: 128.3 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.207e-05/2.856, allocations: 24 kB / 1.602 GB, free: 128.2 MB / 0.7136 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 (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.0004598/2.856, allocations: 273.6 kB / 1.602 GB, free: 128 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/2.856, allocations: 94.88 kB / 1.602 GB, free: 127.9 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000919/2.857, allocations: 0.52 MB / 1.603 GB, free: 127.3 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/2.857, allocations: 3.984 kB / 1.603 GB, free: 127.3 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/2.857, allocations: 7.719 kB / 1.603 GB, free: 127.3 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006153/2.858, allocations: 483.2 kB / 1.603 GB, free: 126.8 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002276/2.86, allocations: 1.456 MB / 1.605 GB, free: 125.3 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/2.86, allocations: 0 / 1.605 GB, free: 125.3 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/2.861, allocations: 83.89 kB / 1.605 GB, free: 125.2 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/2.861, allocations: 3.281 kB / 1.605 GB, free: 125.2 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/2.861, allocations: 15.94 kB / 1.605 GB, free: 125.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/2.861, allocations: 6.125 kB / 1.605 GB, free: 125.2 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/2.861, allocations: 7.938 kB / 1.605 GB, free: 125.2 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/2.862, allocations: 0.8811 MB / 1.606 GB, free: 124.3 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004636/2.862, allocations: 250.5 kB / 1.606 GB, free: 124 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/2.862, allocations: 8 kB / 1.606 GB, free: 124 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005693/2.863, allocations: 50.92 kB / 1.606 GB, free: 124 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.497e-05/2.863, allocations: 35.84 kB / 1.606 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.935e-05/2.863, allocations: 22.58 kB / 1.606 GB, free: 123.9 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0007992/2.864, allocations: 0.6508 MB / 1.607 GB, free: 123.2 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.5e-07/2.864, allocations: 0 / 1.607 GB, free: 123.2 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001271/2.865, allocations: 363.4 kB / 1.607 GB, free: 122.9 MB / 0.7136 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 (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.002392/2.868, allocations: 2.22 MB / 1.609 GB, free: 120.8 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0008653/2.868, allocations: 431.3 kB / 1.61 GB, free: 120.4 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/2.868, allocations: 0 / 1.61 GB, free: 120.4 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0003378/2.869, allocations: 204.5 kB / 1.61 GB, free: 120.2 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/2.872, allocations: 0.6171 MB / 1.611 GB, free: 119.6 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009244/2.881, allocations: 8.77 MB / 1.619 GB, free: 110.7 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/2.882, allocations: 1.061 MB / 1.62 GB, free: 109.6 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00106/2.883, allocations: 203.1 kB / 1.62 GB, free: 109.4 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004171/2.883, allocations: 373.1 kB / 1.621 GB, free: 109.1 MB / 0.7136 GB Notification: Performance of SimCode: time 1.252e-06/2.883, allocations: 0 / 1.621 GB, free: 109.1 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05497/2.938, allocations: 32.69 MB / 1.653 GB, free: 77.45 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/2.938, allocations: 243.4 kB / 1.653 GB, free: 77.21 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.15/6.089, allocations: 0 / 1.653 GB, free: 77.21 MB / 0.7136 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)