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.8667/0.8667, allocations: 141.8 MB / 149.3 MB, free: 9.152 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.001223/0.001224, allocations: 184.8 kB / 182.2 MB, free: 9.402 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.647/1.647, allocations: 221.5 MB / 436.4 MB, free: 13.34 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.0008777/0.0008776, allocations: 93.48 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001783/0.001784, allocations: 278.4 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.983e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.483/0.4831, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.59/5.073, allocations: 1.913 GB / 2.671 GB, free: 104.2 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001941/5.073, allocations: 91.45 kB / 2.671 GB, free: 104.1 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 7.463/12.54, allocations: 1.981 GB / 4.652 GB, free: 41.77 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.377e-06/12.54, allocations: 0 / 4.652 GB, free: 41.77 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0003923/12.54, allocations: 55.98 kB / 4.652 GB, free: 41.72 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.008904/12.55, allocations: 2.555 MB / 4.654 GB, free: 39.09 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/12.55, allocations: 12.03 kB / 4.654 GB, free: 39.08 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005749/12.55, allocations: 0.7931 MB / 4.655 GB, free: 38.29 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006207/12.56, allocations: 2.302 MB / 4.657 GB, free: 35.93 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-05/12.56, allocations: 48 kB / 4.657 GB, free: 35.89 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/12.56, allocations: 104 kB / 4.657 GB, free: 35.79 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002257/12.56, allocations: 1.255 MB / 4.659 GB, free: 34.53 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/12.56, allocations: 1.47 MB / 4.66 GB, free: 32.99 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/12.56, allocations: 3.938 kB / 4.66 GB, free: 32.99 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/12.56, allocations: 0 / 4.66 GB, free: 32.99 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.708e-05/12.56, allocations: 62.88 kB / 4.66 GB, free: 32.93 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.01064/12.57, allocations: 7.843 MB / 4.668 GB, free: 24.5 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/12.57, allocations: 1.596 MB / 4.669 GB, free: 22.76 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006612/12.58, allocations: 0.5518 MB / 4.67 GB, free: 22.21 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004124/12.58, allocations: 207.5 kB / 4.67 GB, free: 21.96 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007533/12.58, allocations: 0.5612 MB / 4.671 GB, free: 21.39 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00109/12.58, allocations: 87.23 kB / 4.671 GB, free: 21.31 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=104): time 3.778e-06/12.58, allocations: 4 kB / 4.671 GB, free: 21.3 MB / 0.7448 GB Notification: Performance of matching and sorting (n=107): time 0.005852/12.58, allocations: 2.775 MB / 4.673 GB, free: 18.46 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/12.58, allocations: 116.1 kB / 4.673 GB, free: 18.33 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/12.59, allocations: 1.174 MB / 4.675 GB, free: 17.16 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001077/12.59, allocations: 29.7 kB / 4.675 GB, free: 17.12 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007222/12.59, allocations: 0.9402 MB / 4.676 GB, free: 16.17 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002676/12.59, allocations: 362.6 kB / 4.676 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/12.59, allocations: 4 kB / 4.676 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001755/12.59, allocations: 353.9 kB / 4.676 GB, free: 15.46 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/12.59, allocations: 410.5 kB / 4.677 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009464/12.59, allocations: 0.7447 MB / 4.677 GB, free: 14.16 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.005089/12.59, allocations: 1.764 MB / 4.679 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/12.59, allocations: 0 / 4.679 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002921/12.6, allocations: 1.385 MB / 4.68 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.001268/12.6, allocations: 2.93 MB / 4.683 GB, free: 7.816 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/12.6, allocations: 8 kB / 4.683 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001872/12.6, allocations: 44.83 kB / 4.683 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/12.6, allocations: 295.5 kB / 4.684 GB, free: 7.473 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/12.6, allocations: 1.439 MB / 4.685 GB, free: 5.918 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/12.6, allocations: 123.8 kB / 4.685 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/12.6, allocations: 59.92 kB / 4.685 GB, free: 5.738 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/12.6, allocations: 5.25 kB / 4.685 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002315/12.61, allocations: 1.14 MB / 4.686 GB, free: 4.59 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/12.61, allocations: 8 kB / 4.686 GB, free: 4.582 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001304/12.61, allocations: 49.56 kB / 4.686 GB, free: 4.531 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/12.61, allocations: 279.6 kB / 4.687 GB, free: 4.258 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/12.61, allocations: 1.447 MB / 4.688 GB, free: 2.691 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002233/12.61, allocations: 139.7 kB / 4.688 GB, free: 2.555 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001241/12.61, allocations: 59.98 kB / 4.688 GB, free: 2.496 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.0004176/12.61, allocations: 130.2 kB / 4.688 GB, free: 2.363 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002378/12.61, allocations: 1.145 MB / 4.689 GB, free: 1.207 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/12.61, allocations: 181.8 kB / 4.69 GB, free: 1.027 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7276/13.34, allocations: 1.216 MB / 4.691 GB, free: 83.9 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/13.34, allocations: 11.44 kB / 4.691 GB, free: 83.9 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/13.34, allocations: 1.297 kB / 4.691 GB, free: 83.9 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00274/13.34, allocations: 0.9889 MB / 4.692 GB, free: 83.82 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.008204/13.35, allocations: 3.198 MB / 4.695 GB, free: 83.2 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/13.35, allocations: 1.938 kB / 4.695 GB, free: 83.2 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/13.35, allocations: 235.5 kB / 4.695 GB, free: 83.2 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002544/13.35, allocations: 71.59 kB / 4.695 GB, free: 83.19 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.625e-05/13.35, allocations: 17.66 kB / 4.695 GB, free: 83.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001776/13.36, allocations: 2.654 MB / 4.698 GB, free: 80.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/13.36, allocations: 1.312 kB / 4.698 GB, free: 80.82 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/13.36, allocations: 1.962 MB / 4.7 GB, free: 80.51 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/13.36, allocations: 367.9 kB / 4.7 GB, free: 80.42 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/13.36, allocations: 6.547 kB / 4.7 GB, free: 80.42 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/13.36, allocations: 138 kB / 4.7 GB, free: 80.42 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/13.36, allocations: 81 kB / 4.7 GB, free: 80.41 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.8e-05/13.36, allocations: 43.05 kB / 4.7 GB, free: 80.41 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.00158/13.36, allocations: 0.8871 MB / 4.701 GB, free: 80.3 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6.81e-07/13.36, allocations: 2.844 kB / 4.701 GB, free: 80.3 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.004887/13.37, allocations: 1.117 MB / 4.702 GB, free: 80.3 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.009579/13.38, allocations: 6.258 MB / 4.708 GB, free: 78.04 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.00373/13.38, allocations: 2.046 MB / 4.71 GB, free: 77.68 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/13.38, allocations: 6.375 kB / 4.71 GB, free: 77.68 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001112/13.38, allocations: 0.7212 MB / 4.711 GB, free: 77.48 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005707/13.39, allocations: 0.9139 MB / 4.712 GB, free: 77.46 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/13.4, allocations: 3.584 MB / 4.716 GB, free: 76.62 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/13.4, allocations: 1.623 MB / 4.717 GB, free: 75.88 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003686/13.41, allocations: 0.6833 MB / 4.718 GB, free: 75.86 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/13.41, allocations: 0.8023 MB / 4.719 GB, free: 75.86 MB / 0.7448 GB Notification: Performance of SimCode: time 1.693e-06/13.41, allocations: 0 / 4.719 GB, free: 75.86 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1414/13.55, allocations: 74.08 MB / 4.791 GB, free: 73.23 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/13.55, allocations: 180 kB / 4.791 GB, free: 73.05 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.862/18.41, allocations: 0 / 4.791 GB, free: 73.05 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)