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.6851/0.6851, allocations: 141.7 MB / 154.3 MB, free: 15.5 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009312/0.0009311, allocations: 183.8 kB / 187.3 MB, free: 11.89 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.243/1.243, allocations: 221.3 MB / 441.4 MB, free: 4.625 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.0008229/0.0008228, allocations: 94.02 kB / 0.5124 GB, free: 24.15 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001694/0.001694, allocations: 267.4 kB / 0.5939 GB, free: 8 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.888e-05, allocations: 4 kB / 0.6835 GB, free: 12.19 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3518, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6549/1.007, allocations: 379.1 MB / 1.135 GB, free: 11.69 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/1.007, allocations: 99.17 kB / 1.135 GB, free: 11.64 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 1.382/2.389, allocations: 442.6 MB / 1.567 GB, free: 147.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.313e-06/2.389, allocations: 0 / 1.567 GB, free: 147.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.954e-05/2.389, allocations: 22.62 kB / 1.567 GB, free: 147.7 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.001718/2.391, allocations: 1.25 MB / 1.568 GB, free: 147 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/2.391, allocations: 11.03 kB / 1.568 GB, free: 147 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/2.391, allocations: 116 kB / 1.568 GB, free: 147 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002925/2.391, allocations: 135.3 kB / 1.568 GB, free: 146.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02172/2.413, allocations: 12.95 MB / 1.581 GB, free: 140.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.129e-05/2.413, allocations: 62.48 kB / 1.581 GB, free: 140.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.703e-05/2.413, allocations: 75.75 kB / 1.581 GB, free: 140.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/2.414, allocations: 0.7249 MB / 1.582 GB, free: 139.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/2.414, allocations: 5.875 kB / 1.582 GB, free: 139.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/2.414, allocations: 27 kB / 1.582 GB, free: 139.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.673e-05/2.414, allocations: 19.72 kB / 1.582 GB, free: 139.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000691/2.415, allocations: 0.4899 MB / 1.582 GB, free: 139.7 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.003494/2.419, allocations: 3.556 MB / 1.586 GB, free: 136.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004414/2.419, allocations: 329.3 kB / 1.586 GB, free: 136.4 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00018/2.419, allocations: 167.4 kB / 1.586 GB, free: 136.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00038/2.42, allocations: 0.6592 MB / 1.587 GB, free: 135.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/2.42, allocations: 38.47 kB / 1.587 GB, free: 135.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=31): time 1.924e-06/2.42, allocations: 3.25 kB / 1.587 GB, free: 135.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=31): time 0.0005375/2.42, allocations: 370.2 kB / 1.587 GB, free: 135.3 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/2.42, allocations: 58.61 kB / 1.588 GB, free: 135.3 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008013/2.421, allocations: 0.8084 MB / 1.588 GB, free: 134.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/2.421, allocations: 33.64 kB / 1.588 GB, free: 134.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/2.421, allocations: 0.4889 MB / 1.589 GB, free: 134.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/2.421, allocations: 115.8 kB / 1.589 GB, free: 134.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.681e-05/2.421, allocations: 11.75 kB / 1.589 GB, free: 134.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/2.421, allocations: 325 kB / 1.589 GB, free: 134 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/2.422, allocations: 121.9 kB / 1.589 GB, free: 133.9 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/2.422, allocations: 348.4 kB / 1.59 GB, free: 133.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/2.422, allocations: 186.5 kB / 1.59 GB, free: 133.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/2.422, allocations: 0 / 1.59 GB, free: 133.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0006037/2.423, allocations: 0.533 MB / 1.59 GB, free: 133.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/2.423, allocations: 5.219 kB / 1.59 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/2.423, allocations: 7.281 kB / 1.59 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/2.423, allocations: 7.688 kB / 1.59 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/2.423, allocations: 116 kB / 1.591 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/2.423, allocations: 16.19 kB / 1.591 GB, free: 133.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/2.424, allocations: 115.1 kB / 1.591 GB, free: 133.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/2.424, allocations: 25.47 kB / 1.591 GB, free: 133.1 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 8.395e-05/2.424, allocations: 136 kB / 1.591 GB, free: 133 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/2.424, allocations: 105.5 kB / 1.591 GB, free: 132.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005802/2.425, allocations: 446.3 kB / 1.591 GB, free: 132.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/2.425, allocations: 3.781 kB / 1.591 GB, free: 132.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/2.425, allocations: 3.938 kB / 1.591 GB, free: 132.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003551/2.425, allocations: 414.9 kB / 1.592 GB, free: 132.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/2.426, allocations: 1.386 MB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/2.426, allocations: 3.688 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002967/2.427, allocations: 79.23 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/2.427, allocations: 7.266 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/2.427, allocations: 15.8 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/2.427, allocations: 3.906 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/2.427, allocations: 7.156 kB / 1.593 GB, free: 131.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006923/2.428, allocations: 0.7831 MB / 1.594 GB, free: 130.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/2.428, allocations: 241.7 kB / 1.594 GB, free: 130.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.519e-05/2.428, allocations: 14.61 kB / 1.594 GB, free: 130.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/2.428, allocations: 56.31 kB / 1.594 GB, free: 130.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/2.428, allocations: 23.44 kB / 1.594 GB, free: 130.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/2.429, allocations: 22.95 kB / 1.594 GB, free: 130.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00059/2.429, allocations: 0.6405 MB / 1.595 GB, free: 130.1 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.7e-07/2.429, allocations: 0 / 1.595 GB, free: 130.1 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008345/2.43, allocations: 370.8 kB / 1.595 GB, free: 130 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.001482/2.431, allocations: 2.105 MB / 1.597 GB, free: 128.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004414/2.432, allocations: 365.2 kB / 1.598 GB, free: 128.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/2.432, allocations: 0 / 1.598 GB, free: 128.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001905/2.432, allocations: 166.1 kB / 1.598 GB, free: 128.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/2.434, allocations: 0.6181 MB / 1.598 GB, free: 127.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/2.437, allocations: 1.452 MB / 1.6 GB, free: 126.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003643/2.437, allocations: 1.059 MB / 1.601 GB, free: 125.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006382/2.438, allocations: 208.9 kB / 1.601 GB, free: 125.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003589/2.438, allocations: 367.3 kB / 1.601 GB, free: 124.9 MB / 0.698 GB Notification: Performance of SimCode: time 8.61e-07/2.438, allocations: 0 / 1.601 GB, free: 124.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04261/2.481, allocations: 32.87 MB / 1.634 GB, free: 93.25 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001261/2.481, allocations: 208.6 kB / 1.634 GB, free: 93.04 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.61/5.091, allocations: 3.938 kB / 1.634 GB, free: 93.03 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)