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.8748/0.8748, allocations: 141.8 MB / 149.3 MB, free: 9.215 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.001119/0.001119, allocations: 188.6 kB / 182.2 MB, free: 9.441 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.673/1.673, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.0009572/0.0009572, allocations: 93.91 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.001817/0.001817, allocations: 287.1 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.529e-05/2.54e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.468/0.468, allocations: 82.76 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.317/4.785, allocations: 1.92 GB / 2.678 GB, free: 135.5 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/4.785, allocations: 91.95 kB / 2.678 GB, free: 135.4 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 8.34/13.13, allocations: 2.067 GB / 4.745 GB, free: 83.65 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.794e-06/13.13, allocations: 1.344 kB / 4.745 GB, free: 83.65 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0002432/13.13, allocations: 62.17 kB / 4.745 GB, free: 83.65 MB / 0.7448 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.00702/13.13, allocations: 2.393 MB / 4.748 GB, free: 82.85 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/13.13, allocations: 11.53 kB / 4.748 GB, free: 82.85 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005159/13.14, allocations: 0.7767 MB / 4.748 GB, free: 82.72 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006029/13.14, allocations: 2.166 MB / 4.751 GB, free: 82.35 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.217e-05/13.14, allocations: 47.81 kB / 4.751 GB, free: 82.35 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/13.14, allocations: 86.75 kB / 4.751 GB, free: 82.35 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002095/13.15, allocations: 1.078 MB / 4.752 GB, free: 82.34 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/13.15, allocations: 1.296 MB / 4.753 GB, free: 82.12 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.505e-05/13.15, allocations: 0 / 4.753 GB, free: 82.12 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/13.15, allocations: 3.656 kB / 4.753 GB, free: 82.12 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.253e-05/13.15, allocations: 47.02 kB / 4.753 GB, free: 82.12 MB / 0.7448 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.01022/13.16, allocations: 7.213 MB / 4.76 GB, free: 78.3 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/13.16, allocations: 1.349 MB / 4.761 GB, free: 77.61 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000574/13.16, allocations: 428.2 kB / 4.762 GB, free: 77.59 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001022/13.16, allocations: 0.7535 MB / 4.763 GB, free: 76.84 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007051/13.16, allocations: 451.6 kB / 4.763 GB, free: 76.79 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00109/13.16, allocations: 105 kB / 4.763 GB, free: 76.77 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=86): time 4.228e-06/13.16, allocations: 0 / 4.763 GB, free: 76.77 MB / 0.7448 GB Notification: Performance of matching and sorting (n=86): time 0.005747/13.17, allocations: 1.5 MB / 4.765 GB, free: 76.62 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/13.17, allocations: 119.1 kB / 4.765 GB, free: 76.5 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/13.17, allocations: 1.204 MB / 4.766 GB, free: 76.32 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001599/13.17, allocations: 29.11 kB / 4.766 GB, free: 76.29 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.001086/13.17, allocations: 0.9174 MB / 4.767 GB, free: 76.05 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003223/13.17, allocations: 296.5 kB / 4.767 GB, free: 75.9 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.12e-05/13.17, allocations: 3.938 kB / 4.767 GB, free: 75.9 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001138/13.17, allocations: 348.7 kB / 4.767 GB, free: 75.59 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005145/13.17, allocations: 323.3 kB / 4.768 GB, free: 75.59 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007765/13.18, allocations: 0.6805 MB / 4.768 GB, free: 75.16 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004159/13.18, allocations: 1.014 MB / 4.769 GB, free: 75.16 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/13.18, allocations: 4.516 kB / 4.769 GB, free: 75.15 MB / 0.7448 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.005695/13.19, allocations: 1.7 MB / 4.771 GB, free: 75.01 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009579/13.19, allocations: 3.384 MB / 4.774 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/13.19, allocations: 10.5 kB / 4.774 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.457e-05/13.19, allocations: 13.94 kB / 4.774 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/13.19, allocations: 262.1 kB / 4.775 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.221e-05/13.19, allocations: 21.69 kB / 4.775 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/13.19, allocations: 121.4 kB / 4.775 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/13.19, allocations: 53.61 kB / 4.775 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/13.19, allocations: 4.156 kB / 4.775 GB, free: 71.48 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004983/13.19, allocations: 1.475 MB / 4.776 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/13.2, allocations: 6.656 kB / 4.776 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/13.2, allocations: 16.31 kB / 4.776 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/13.2, allocations: 259.9 kB / 4.777 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/13.2, allocations: 24.16 kB / 4.777 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/13.2, allocations: 120.9 kB / 4.777 GB, free: 71.45 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/13.2, allocations: 54.09 kB / 4.777 GB, free: 71.45 MB / 0.7448 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 () * 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.0003628/13.2, allocations: 138.5 kB / 4.777 GB, free: 71.35 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005255/13.2, allocations: 1.446 MB / 4.778 GB, free: 71.2 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000647/13.2, allocations: 178.5 kB / 4.778 GB, free: 71.11 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005643/13.21, allocations: 1.52 MB / 4.78 GB, free: 71.02 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/13.21, allocations: 7.062 kB / 4.78 GB, free: 71.02 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/13.21, allocations: 3.5 kB / 4.78 GB, free: 71.02 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004562/13.21, allocations: 1.607 MB / 4.782 GB, free: 70.55 MB / 0.7448 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 postOpt removeSimpleEquations (simulation): time 0.01029/13.23, allocations: 3.107 MB / 4.785 GB, free: 70.04 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/13.23, allocations: 0 / 4.785 GB, free: 70.04 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009047/13.23, allocations: 185.2 kB / 4.785 GB, free: 70.04 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002509/13.23, allocations: 48.92 kB / 4.785 GB, free: 70.03 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.444e-05/13.23, allocations: 12.69 kB / 4.785 GB, free: 70.03 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/13.23, allocations: 1.383 MB / 4.786 GB, free: 68.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/13.23, allocations: 0 / 4.786 GB, free: 68.82 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006208/13.23, allocations: 2.116 MB / 4.788 GB, free: 68.45 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/13.24, allocations: 336.5 kB / 4.789 GB, free: 68.27 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006832/13.24, allocations: 17.69 kB / 4.789 GB, free: 68.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001856/13.24, allocations: 124.8 kB / 4.789 GB, free: 68.26 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/13.24, allocations: 68.16 kB / 4.789 GB, free: 68.25 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.573e-05/13.24, allocations: 29.27 kB / 4.789 GB, free: 68.25 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.002569/13.24, allocations: 0.9032 MB / 4.79 GB, free: 68.14 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.9e-07/13.24, allocations: 0 / 4.79 GB, free: 68.14 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.006464/13.25, allocations: 1.155 MB / 4.791 GB, free: 68.04 MB / 0.7448 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) * 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.01444/13.26, allocations: 6.532 MB / 4.797 GB, free: 65.67 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.003368/13.27, allocations: 1.483 MB / 4.799 GB, free: 65.51 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/13.27, allocations: 0 / 4.799 GB, free: 65.51 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/13.27, allocations: 0.5036 MB / 4.799 GB, free: 65.41 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004798/13.27, allocations: 0.735 MB / 4.8 GB, free: 65.39 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01219/13.28, allocations: 3.248 MB / 4.803 GB, free: 64.53 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/13.29, allocations: 1.531 MB / 4.804 GB, free: 63.8 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.004484/13.29, allocations: 0.6488 MB / 4.805 GB, free: 63.78 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001466/13.29, allocations: 0.7322 MB / 4.806 GB, free: 63.77 MB / 0.7448 GB Notification: Performance of SimCode: time 1.322e-06/13.29, allocations: 1.656 kB / 4.806 GB, free: 63.77 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1452/13.44, allocations: 67.02 MB / 4.871 GB, free: 60.37 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/13.44, allocations: 180.3 kB / 4.871 GB, free: 60.18 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.539/17.98, allocations: 4 kB / 4.871 GB, free: 60.18 MB / 0.7448 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)