Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.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.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T",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.8462/0.8462, allocations: 143.3 MB / 158.3 MB, free: 5.77 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.001401/0.001401, allocations: 184.3 kB / 191.5 MB, free: 5.758 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.537/1.537, allocations: 223.2 MB / 447.7 MB, free: 4.824 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.0009631/0.000963, allocations: 96.25 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00179/0.00179, allocations: 261.1 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004674/0.0004672, allocations: 12.31 kB / 0.6929 GB, free: 59.57 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.1815, allocations: 82.79 MB / 0.7738 GB, free: 13.77 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.415/4.596, allocations: 1.921 GB / 2.695 GB, free: 104.5 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/4.597, allocations: 105.7 kB / 2.695 GB, free: 104.4 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 7.847/12.44, allocations: 2.091 GB / 4.786 GB, free: 87.02 MB / 0.7605 GB Notification: Performance of FrontEnd: time 2.725e-06/12.44, allocations: 0 / 4.786 GB, free: 87.02 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 0.0004414/12.44, allocations: 55.08 kB / 4.786 GB, free: 87.02 MB / 0.7605 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.0111/12.46, allocations: 2.907 MB / 4.789 GB, free: 86.09 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/12.46, allocations: 8.406 kB / 4.789 GB, free: 86.09 MB / 0.7605 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008975/12.46, allocations: 199 kB / 4.789 GB, free: 86.04 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00565/12.46, allocations: 0.7759 MB / 4.79 GB, free: 85.92 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007466/12.47, allocations: 2.197 MB / 4.792 GB, free: 85.55 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/12.47, allocations: 109.8 kB / 4.792 GB, free: 85.54 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004641/12.47, allocations: 139.7 kB / 4.792 GB, free: 85.54 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003352/12.47, allocations: 1.562 MB / 4.794 GB, free: 85.32 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/12.47, allocations: 0.5625 kB / 4.794 GB, free: 85.32 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/12.47, allocations: 59.97 kB / 4.794 GB, free: 85.32 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.335e-05/12.47, allocations: 46.45 kB / 4.794 GB, free: 85.32 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/12.48, allocations: 1.279 MB / 4.795 GB, free: 85.3 MB / 0.7605 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.01106/12.49, allocations: 7.444 MB / 4.802 GB, free: 81.43 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/12.49, allocations: 1.489 MB / 4.804 GB, free: 80.73 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001064/12.49, allocations: 0.7512 MB / 4.805 GB, free: 79.98 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009845/12.49, allocations: 0.5299 MB / 4.805 GB, free: 79.92 MB / 0.7605 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001183/12.49, allocations: 125.5 kB / 4.805 GB, free: 79.9 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=86): time 4.108e-06/12.49, allocations: 0 / 4.805 GB, free: 79.9 MB / 0.7605 GB Notification: Performance of matching and sorting (n=86): time 0.003658/12.5, allocations: 1.505 MB / 4.807 GB, free: 79.65 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/12.5, allocations: 117.4 kB / 4.807 GB, free: 79.52 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002149/12.5, allocations: 1.332 MB / 4.808 GB, free: 79.36 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0001581/12.5, allocations: 47.92 kB / 4.808 GB, free: 79.33 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008092/12.5, allocations: 0.921 MB / 4.809 GB, free: 79.09 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002659/12.5, allocations: 304 kB / 4.809 GB, free: 78.94 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.246e-05/12.5, allocations: 24.12 kB / 4.809 GB, free: 78.94 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 8.958e-05/12.5, allocations: 346.2 kB / 4.81 GB, free: 78.63 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007876/12.5, allocations: 396.5 kB / 4.81 GB, free: 78.63 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009482/12.5, allocations: 0.767 MB / 4.811 GB, free: 78.2 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009433/12.5, allocations: 0.5114 MB / 4.811 GB, free: 78.16 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/12.5, allocations: 2.75 kB / 4.811 GB, free: 78.16 MB / 0.7605 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002627/12.51, allocations: 1.331 MB / 4.813 GB, free: 77.98 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007522/12.51, allocations: 3.39 MB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/12.51, allocations: 7.469 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.791e-05/12.51, allocations: 17.38 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/12.51, allocations: 255.8 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.682e-05/12.51, allocations: 32.58 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/12.51, allocations: 145.2 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/12.51, allocations: 50.25 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/12.51, allocations: 5.5 kB / 4.816 GB, free: 74.45 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002187/12.51, allocations: 1.15 MB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/12.51, allocations: 11.84 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/12.51, allocations: 14.31 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/12.51, allocations: 258.8 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/12.51, allocations: 19.89 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/12.51, allocations: 144 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/12.51, allocations: 53.84 kB / 4.818 GB, free: 74.39 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 131 * Array equations: 1 * Algorithm blocks: 1 * 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.001282/12.52, allocations: 0.5334 MB / 4.819 GB, free: 74.2 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004065/12.52, allocations: 181.2 kB / 4.819 GB, free: 74.1 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002506/12.52, allocations: 1.126 MB / 4.82 GB, free: 74.01 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/12.52, allocations: 7.656 kB / 4.82 GB, free: 74.01 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/12.52, allocations: 1.688 kB / 4.82 GB, free: 74.01 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001744/12.52, allocations: 1.188 MB / 4.821 GB, free: 73.54 MB / 0.7605 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 postOpt removeSimpleEquations (simulation): time 0.007124/12.53, allocations: 2.749 MB / 4.824 GB, free: 73.09 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/12.53, allocations: 0 / 4.824 GB, free: 73.09 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000934/12.53, allocations: 178.4 kB / 4.824 GB, free: 73.09 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002366/12.53, allocations: 47.06 kB / 4.824 GB, free: 73.08 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.871e-05/12.53, allocations: 24.59 kB / 4.824 GB, free: 73.08 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/12.53, allocations: 1.437 MB / 4.825 GB, free: 71.82 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/12.53, allocations: 3.438 kB / 4.825 GB, free: 71.82 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003775/12.53, allocations: 1.739 MB / 4.827 GB, free: 71.43 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/12.54, allocations: 342.2 kB / 4.827 GB, free: 71.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007841/12.54, allocations: 17.59 kB / 4.827 GB, free: 71.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/12.54, allocations: 144.8 kB / 4.828 GB, free: 71.24 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001879/12.54, allocations: 67.08 kB / 4.828 GB, free: 71.24 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/12.54, allocations: 34.23 kB / 4.828 GB, free: 71.24 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.003097/12.54, allocations: 1.02 MB / 4.829 GB, free: 71.13 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.2e-07/12.54, allocations: 0 / 4.829 GB, free: 71.13 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.006361/12.55, allocations: 1.284 MB / 4.83 GB, free: 71.03 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009959/12.56, allocations: 6.047 MB / 4.836 GB, free: 68.61 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.003718/12.56, allocations: 1.685 MB / 4.837 GB, free: 68.46 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/12.56, allocations: 0 / 4.837 GB, free: 68.46 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.001199/12.56, allocations: 0.5776 MB / 4.838 GB, free: 68.35 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004318/12.57, allocations: 0.7722 MB / 4.839 GB, free: 68.33 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/12.58, allocations: 11.29 MB / 4.85 GB, free: 59.91 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001969/12.59, allocations: 1.529 MB / 4.851 GB, free: 59.18 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.002932/12.59, allocations: 462.4 kB / 4.852 GB, free: 59.16 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0014/12.59, allocations: 0.7617 MB / 4.852 GB, free: 59.16 MB / 0.7605 GB Notification: Performance of SimCode: time 1.903e-06/12.59, allocations: 1.906 kB / 4.852 GB, free: 59.16 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.133/12.72, allocations: 86.43 MB / 4.937 GB, free: 55.91 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/12.72, allocations: 257.3 kB / 4.937 GB, free: 55.58 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.167/17.89, allocations: 4 kB / 4.937 GB, free: 55.57 MB / 0.7605 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)