Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.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_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u",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.697/0.697, allocations: 141.7 MB / 154.3 MB, free: 15.49 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.000976/0.000976, allocations: 184.4 kB / 187.3 MB, free: 11.9 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.221/1.221, allocations: 221.3 MB / 441.4 MB, free: 4.602 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.000846/0.0008459, allocations: 97.61 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.001653/0.001653, allocations: 275 kB / 0.5939 GB, free: 7.969 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.257e-05, allocations: 8 kB / 0.6835 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3127, allocations: 82.77 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.288/3.6, allocations: 1.914 GB / 2.678 GB, free: 105.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002079/3.601, allocations: 94.19 kB / 2.679 GB, free: 105.5 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.922/9.523, allocations: 2.001 GB / 4.68 GB, free: 28.11 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.433e-06/9.523, allocations: 0 / 4.68 GB, free: 28.11 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0002833/9.523, allocations: 59.92 kB / 4.68 GB, free: 28.05 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: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 0.005671/9.529, allocations: 2.555 MB / 4.682 GB, free: 25.43 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/9.529, allocations: 8.031 kB / 4.682 GB, free: 25.42 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004098/9.53, allocations: 215.5 kB / 4.683 GB, free: 25.2 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004803/9.534, allocations: 0.797 MB / 4.683 GB, free: 24.39 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004585/9.539, allocations: 2.309 MB / 4.686 GB, free: 22.04 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.638e-05/9.539, allocations: 118.9 kB / 4.686 GB, free: 21.92 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/9.539, allocations: 164 kB / 4.686 GB, free: 21.76 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/9.542, allocations: 1.675 MB / 4.688 GB, free: 20.02 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/9.542, allocations: 4 kB / 4.688 GB, free: 20.01 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/9.542, allocations: 60 kB / 4.688 GB, free: 19.95 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.2e-05/9.542, allocations: 58.88 kB / 4.688 GB, free: 19.89 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/9.544, allocations: 1.327 MB / 4.689 GB, free: 18.56 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.00789/9.552, allocations: 8.119 MB / 4.697 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/9.553, allocations: 1.603 MB / 4.698 GB, free: 8.086 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006809/9.553, allocations: 0.5733 MB / 4.699 GB, free: 7.516 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003684/9.554, allocations: 211.1 kB / 4.699 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007415/9.555, allocations: 0.5752 MB / 4.7 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005864/9.555, allocations: 123.2 kB / 4.7 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=104): time 2.996e-06/9.555, allocations: 4 kB / 4.7 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of matching and sorting (n=107): time 0.004092/9.559, allocations: 2.705 MB / 4.703 GB, free: 3.789 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/9.559, allocations: 115.8 kB / 4.703 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/9.561, allocations: 1.281 MB / 4.704 GB, free: 2.324 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 7.96e-05/9.561, allocations: 53.7 kB / 4.704 GB, free: 2.266 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005091/9.561, allocations: 0.9481 MB / 4.705 GB, free: 1.305 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002061/9.561, allocations: 382.5 kB / 4.705 GB, free: 0.9258 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.617e-05/9.562, allocations: 20 kB / 4.705 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.161e-05/9.562, allocations: 349.9 kB / 4.706 GB, free: 0.5586 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005359/9.562, allocations: 434.4 kB / 4.706 GB, free: 136 kB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4069/9.969, allocations: 0.7684 MB / 4.707 GB, free: 77.71 MB / 0.7448 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.008655/9.978, allocations: 2.137 MB / 4.709 GB, free: 77.53 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/9.978, allocations: 2 kB / 4.709 GB, free: 77.53 MB / 0.7448 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00276/9.98, allocations: 1.426 MB / 4.71 GB, free: 77.44 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004674/9.981, allocations: 2.946 MB / 4.713 GB, free: 74.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.824e-05/9.981, allocations: 7.156 kB / 4.713 GB, free: 74.39 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001661/9.981, allocations: 45.61 kB / 4.713 GB, free: 74.38 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/9.982, allocations: 286.1 kB / 4.713 GB, free: 74.38 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008832/9.983, allocations: 1.498 MB / 4.715 GB, free: 73.06 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/9.985, allocations: 157 kB / 4.715 GB, free: 73.06 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/9.985, allocations: 57.08 kB / 4.715 GB, free: 73.06 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 7.014e-06/9.985, allocations: 3.781 kB / 4.715 GB, free: 73.06 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001715/9.987, allocations: 1.24 MB / 4.716 GB, free: 72.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/9.987, allocations: 6.781 kB / 4.716 GB, free: 72.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.149e-05/9.987, allocations: 51.64 kB / 4.716 GB, free: 72.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/9.988, allocations: 277.8 kB / 4.717 GB, free: 72.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007422/9.989, allocations: 1.505 MB / 4.718 GB, free: 71.66 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/9.99, allocations: 166.8 kB / 4.718 GB, free: 71.66 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.722e-05/9.99, allocations: 51.34 kB / 4.718 GB, free: 71.66 MB / 0.7448 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (147): * Single equations (assignments): 144 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002913/9.991, allocations: 183.4 kB / 4.718 GB, free: 71.55 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/9.991, allocations: 188.9 kB / 4.719 GB, free: 71.55 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/9.993, allocations: 1.26 MB / 4.72 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/9.993, allocations: 9.969 kB / 4.72 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/9.993, allocations: 6.359 kB / 4.72 GB, free: 71.46 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001445/9.995, allocations: 0.9942 MB / 4.721 GB, free: 71.36 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.005055/10, allocations: 3.399 MB / 4.724 GB, free: 70.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/10, allocations: 0 / 4.724 GB, free: 70.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009928/10, allocations: 230.1 kB / 4.724 GB, free: 70.7 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/10, allocations: 76.17 kB / 4.724 GB, free: 70.68 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.092e-05/10, allocations: 31.09 kB / 4.725 GB, free: 70.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001376/10, allocations: 2.744 MB / 4.727 GB, free: 68.2 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/10, allocations: 5.156 kB / 4.727 GB, free: 68.2 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002357/10, allocations: 1.973 MB / 4.729 GB, free: 67.87 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007503/10.01, allocations: 364.7 kB / 4.729 GB, free: 67.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001888/10.01, allocations: 22.5 kB / 4.729 GB, free: 67.68 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/10.01, allocations: 162.1 kB / 4.73 GB, free: 67.67 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/10.01, allocations: 83.75 kB / 4.73 GB, free: 67.67 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.622e-05/10.01, allocations: 42.28 kB / 4.73 GB, free: 67.67 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.001231/10.01, allocations: 0.9943 MB / 4.731 GB, free: 67.51 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.8e-07/10.01, allocations: 2.406 kB / 4.731 GB, free: 67.51 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.003552/10.01, allocations: 1.247 MB / 4.732 GB, free: 67.51 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * 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 (105): * Single equations (assignments): 101 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006432/10.02, allocations: 6.124 MB / 4.738 GB, free: 65.12 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.002857/10.02, allocations: 2.138 MB / 4.74 GB, free: 64.74 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/10.02, allocations: 3.062 kB / 4.74 GB, free: 64.74 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0008235/10.02, allocations: 0.7595 MB / 4.741 GB, free: 64.52 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003893/10.03, allocations: 0.9461 MB / 4.742 GB, free: 64.5 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00646/10.03, allocations: 3.686 MB / 4.745 GB, free: 63.64 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008901/10.03, allocations: 1.624 MB / 4.747 GB, free: 62.9 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002556/10.04, allocations: 0.6939 MB / 4.748 GB, free: 62.88 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008566/10.04, allocations: 0.8035 MB / 4.748 GB, free: 62.88 MB / 0.7448 GB Notification: Performance of SimCode: time 6.81e-07/10.04, allocations: 0 / 4.748 GB, free: 62.88 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1233/10.16, allocations: 105 MB / 4.851 GB, free: 59.09 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/10.16, allocations: 219 kB / 4.851 GB, free: 58.86 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.282/15.44, allocations: 0 / 4.851 GB, free: 58.86 MB / 0.7448 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)