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.867/0.867, allocations: 143.4 MB / 158.3 MB, free: 5.766 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.001163/0.001163, allocations: 173.1 kB / 191.5 MB, free: 5.762 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.642/1.642, allocations: 223.2 MB / 447.7 MB, free: 4.781 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.0009596/0.0009595, allocations: 98.16 kB / 0.5187 GB, free: 1.125 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001942/0.001942, allocations: 269.9 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004374/0.0004375, allocations: 14.97 kB / 0.6929 GB, free: 59.54 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1822, allocations: 82.79 MB / 0.7738 GB, free: 13.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.49/4.672, allocations: 1.914 GB / 2.688 GB, free: 109.7 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/4.673, allocations: 98.44 kB / 2.688 GB, free: 109.6 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 7.208/11.88, allocations: 2.003 GB / 4.691 GB, free: 30.01 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.495e-06/11.88, allocations: 0 / 4.691 GB, free: 30.01 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.0002995/11.88, allocations: 55.98 kB / 4.691 GB, free: 29.95 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.01017/11.89, allocations: 3.083 MB / 4.694 GB, free: 26.79 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/11.89, allocations: 8.562 kB / 4.694 GB, free: 26.79 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008781/11.89, allocations: 219.5 kB / 4.694 GB, free: 26.56 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00573/11.9, allocations: 0.7892 MB / 4.695 GB, free: 25.77 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006986/11.91, allocations: 2.333 MB / 4.697 GB, free: 23.38 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/11.91, allocations: 126.9 kB / 4.698 GB, free: 23.26 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003402/11.91, allocations: 164 kB / 4.698 GB, free: 23.1 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/11.91, allocations: 1.741 MB / 4.699 GB, free: 21.29 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.588e-05/11.91, allocations: 4 kB / 4.699 GB, free: 21.29 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/11.91, allocations: 64 kB / 4.7 GB, free: 21.22 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.207e-05/11.91, allocations: 66.81 kB / 4.7 GB, free: 21.16 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002603/11.91, allocations: 1.452 MB / 4.701 GB, free: 19.7 MB / 0.7448 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.01273/11.92, allocations: 8.108 MB / 4.709 GB, free: 10.99 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002328/11.93, allocations: 1.729 MB / 4.711 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000465/11.93, allocations: 207.2 kB / 4.711 GB, free: 8.871 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/11.93, allocations: 0.6453 MB / 4.711 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001211/11.93, allocations: 115.2 kB / 4.712 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=104): time 4.178e-06/11.93, allocations: 0 / 4.712 GB, free: 8.102 MB / 0.7448 GB Notification: Performance of matching and sorting (n=107): time 0.008482/11.94, allocations: 3.495 MB / 4.715 GB, free: 4.523 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/11.94, allocations: 119.8 kB / 4.715 GB, free: 4.383 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002233/11.94, allocations: 1.312 MB / 4.716 GB, free: 3.031 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0001722/11.94, allocations: 53.7 kB / 4.716 GB, free: 2.973 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009338/11.94, allocations: 0.9403 MB / 4.717 GB, free: 2.02 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003906/11.94, allocations: 378.6 kB / 4.718 GB, free: 1.645 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/11.94, allocations: 24 kB / 4.718 GB, free: 1.621 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001463/11.94, allocations: 354.8 kB / 4.718 GB, free: 1.27 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/11.94, allocations: 486.3 kB / 4.719 GB, free: 0.793 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5461/12.49, allocations: 0.826 MB / 4.719 GB, free: 73.93 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.01045/12.5, allocations: 2.285 MB / 4.722 GB, free: 73.76 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.668e-06/12.5, allocations: 0 / 4.722 GB, free: 73.76 MB / 0.7448 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003377/12.5, allocations: 1.56 MB / 4.723 GB, free: 73.66 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005511/12.5, allocations: 2.946 MB / 4.726 GB, free: 70.62 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/12.5, allocations: 6.875 kB / 4.726 GB, free: 70.62 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001933/12.5, allocations: 56.42 kB / 4.726 GB, free: 70.61 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/12.51, allocations: 283.9 kB / 4.726 GB, free: 70.61 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/12.51, allocations: 1.582 MB / 4.728 GB, free: 69.29 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/12.51, allocations: 158.9 kB / 4.728 GB, free: 69.29 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001237/12.51, allocations: 55.53 kB / 4.728 GB, free: 69.29 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/12.51, allocations: 7.828 kB / 4.728 GB, free: 69.29 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002856/12.51, allocations: 1.369 MB / 4.729 GB, free: 69.22 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/12.51, allocations: 8.875 kB / 4.729 GB, free: 69.22 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/12.51, allocations: 50.69 kB / 4.729 GB, free: 69.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/12.51, allocations: 282.7 kB / 4.73 GB, free: 69.21 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/12.51, allocations: 1.598 MB / 4.731 GB, free: 67.89 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002685/12.52, allocations: 158.9 kB / 4.731 GB, free: 67.89 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/12.52, allocations: 55.52 kB / 4.731 GB, free: 67.89 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * 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%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001887/12.52, allocations: 0.5819 MB / 4.732 GB, free: 67.7 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005744/12.52, allocations: 194.2 kB / 4.732 GB, free: 67.7 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00327/12.52, allocations: 1.381 MB / 4.734 GB, free: 67.6 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/12.52, allocations: 16.16 kB / 4.734 GB, free: 67.6 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/12.52, allocations: 1.5 kB / 4.734 GB, free: 67.6 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002621/12.53, allocations: 1.118 MB / 4.735 GB, free: 67.5 MB / 0.7448 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.008647/12.53, allocations: 3.467 MB / 4.738 GB, free: 66.9 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/12.53, allocations: 2.281 kB / 4.738 GB, free: 66.9 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/12.54, allocations: 230.2 kB / 4.738 GB, free: 66.9 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002597/12.54, allocations: 80.56 kB / 4.738 GB, free: 66.89 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.296e-05/12.54, allocations: 32.22 kB / 4.738 GB, free: 66.89 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/12.54, allocations: 2.933 MB / 4.741 GB, free: 64.32 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/12.54, allocations: 3.469 kB / 4.741 GB, free: 64.32 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/12.54, allocations: 2.154 MB / 4.743 GB, free: 64 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/12.54, allocations: 378.4 kB / 4.744 GB, free: 63.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004287/12.54, allocations: 23.41 kB / 4.744 GB, free: 63.82 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/12.55, allocations: 156.2 kB / 4.744 GB, free: 63.82 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002094/12.55, allocations: 72.92 kB / 4.744 GB, free: 63.82 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/12.55, allocations: 41.28 kB / 4.744 GB, free: 63.82 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.002084/12.55, allocations: 1.023 MB / 4.745 GB, free: 63.67 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.6e-07/12.55, allocations: 0 / 4.745 GB, free: 63.67 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.006412/12.55, allocations: 1.256 MB / 4.746 GB, free: 63.67 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * 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%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009155/12.56, allocations: 6.289 MB / 4.752 GB, free: 61.27 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.004182/12.57, allocations: 2.269 MB / 4.755 GB, free: 60.9 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/12.57, allocations: 0.875 kB / 4.755 GB, free: 60.9 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001358/12.57, allocations: 0.8269 MB / 4.755 GB, free: 60.68 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004587/12.57, allocations: 0.9595 MB / 4.756 GB, free: 60.65 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01224/12.59, allocations: 11.07 MB / 4.767 GB, free: 52.84 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/12.59, allocations: 1.62 MB / 4.769 GB, free: 52.1 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.002641/12.59, allocations: 0.5194 MB / 4.769 GB, free: 52.08 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001164/12.59, allocations: 0.8229 MB / 4.77 GB, free: 52.08 MB / 0.7448 GB Notification: Performance of SimCode: time 8.81e-07/12.59, allocations: 0 / 4.77 GB, free: 52.08 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1456/12.74, allocations: 94.05 MB / 4.862 GB, free: 48.77 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/12.74, allocations: 247.6 kB / 4.862 GB, free: 48.44 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.212/17.95, allocations: 0 / 4.862 GB, free: 48.44 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)