Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7957/0.7957, allocations: 133.6 MB / 141.6 MB, free: 2.891 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 221.5 MB / 395.5 MB, free: 10.76 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.0009305/0.0009305, allocations: 93.83 kB / 478.2 MB, free: 1.293 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.561e-05/2.564e-05, allocations: 4 kB / 0.5535 GB, free: 8.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5411/0.5412, allocations: 82.3 MB / 0.6339 GB, free: 40.82 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.046/1.588, allocations: 414.3 MB / 1.039 GB, free: 3.844 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.588, allocations: 95.7 kB / 1.039 GB, free: 3.797 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 4.749/6.337, allocations: 1.177 GB / 2.216 GB, free: 88.68 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.362e-06/6.337, allocations: 0 / 2.216 GB, free: 88.68 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0002571/6.337, allocations: 49.45 kB / 2.216 GB, free: 88.68 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.006174/6.344, allocations: 2.036 MB / 2.218 GB, free: 87.77 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 7.019e-05/6.344, allocations: 9.438 kB / 2.218 GB, free: 87.77 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/6.347, allocations: 460.6 kB / 2.219 GB, free: 87.65 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006344/6.353, allocations: 2.261 MB / 2.221 GB, free: 87.23 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/6.353, allocations: 36.97 kB / 2.221 GB, free: 87.23 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00019/6.353, allocations: 75.2 kB / 2.221 GB, free: 87.23 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001504/6.355, allocations: 0.7751 MB / 2.222 GB, free: 87.22 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/6.356, allocations: 1.06 MB / 2.223 GB, free: 86.96 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/6.356, allocations: 3.906 kB / 2.223 GB, free: 86.96 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-05/6.356, allocations: 3.906 kB / 2.223 GB, free: 86.96 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.592e-05/6.356, allocations: 47.75 kB / 2.223 GB, free: 86.95 MB / 0.698 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.008545/6.365, allocations: 6.718 MB / 2.229 GB, free: 82.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/6.366, allocations: 1.139 MB / 2.23 GB, free: 82.29 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004406/6.367, allocations: 323.9 kB / 2.231 GB, free: 82.29 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004928/6.371, allocations: 2.99 MB / 2.234 GB, free: 80.36 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005301/6.372, allocations: 338.6 kB / 2.234 GB, free: 80.3 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007732/6.373, allocations: 70.42 kB / 2.234 GB, free: 80.27 MB / 0.698 GB Notification: Performance of pre-optimization done (n=62): time 3.406e-06/6.373, allocations: 0 / 2.234 GB, free: 80.27 MB / 0.698 GB Notification: Performance of matching and sorting (n=62): time 0.005394/6.378, allocations: 1.301 MB / 2.235 GB, free: 80.12 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/6.378, allocations: 114.4 kB / 2.235 GB, free: 80 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/6.38, allocations: 1.225 MB / 2.237 GB, free: 79.82 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.426e-05/6.38, allocations: 29.17 kB / 2.237 GB, free: 79.79 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006866/6.381, allocations: 0.8607 MB / 2.237 GB, free: 79.48 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/6.381, allocations: 216.8 kB / 2.238 GB, free: 79.34 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/6.381, allocations: 0 / 2.238 GB, free: 79.34 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.497e-05/6.381, allocations: 346.8 kB / 2.238 GB, free: 79.04 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/6.382, allocations: 253.6 kB / 2.238 GB, free: 79.04 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006326/6.383, allocations: 0.6543 MB / 2.239 GB, free: 78.54 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/6.387, allocations: 0.9762 MB / 2.24 GB, free: 78.53 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/6.387, allocations: 3.938 kB / 2.24 GB, free: 78.53 MB / 0.698 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.005431/6.392, allocations: 1.603 MB / 2.241 GB, free: 78.39 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008461/6.393, allocations: 4.451 MB / 2.246 GB, free: 73.72 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/6.393, allocations: 7.875 kB / 2.246 GB, free: 73.72 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.153e-05/6.393, allocations: 18.81 kB / 2.246 GB, free: 73.72 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009024/6.394, allocations: 245.8 kB / 2.246 GB, free: 73.72 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.011e-05/6.394, allocations: 26.95 kB / 2.246 GB, free: 73.72 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/6.396, allocations: 96.89 kB / 2.246 GB, free: 73.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/6.396, allocations: 57.89 kB / 2.246 GB, free: 73.71 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/6.396, allocations: 3.156 kB / 2.246 GB, free: 73.71 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005949/6.402, allocations: 1.389 MB / 2.248 GB, free: 73.69 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/6.402, allocations: 10.5 kB / 2.248 GB, free: 73.69 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/6.402, allocations: 18.94 kB / 2.248 GB, free: 73.69 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/6.403, allocations: 243.5 kB / 2.248 GB, free: 73.69 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/6.403, allocations: 23.67 kB / 2.248 GB, free: 73.69 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/6.404, allocations: 90.53 kB / 2.248 GB, free: 73.68 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.944e-05/6.405, allocations: 53.64 kB / 2.248 GB, free: 73.68 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (120): * Single equations (assignments): 118 * 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.0002796/6.405, allocations: 146.5 kB / 2.248 GB, free: 73.57 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004927/6.41, allocations: 1.271 MB / 2.249 GB, free: 73.43 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001936/6.41, allocations: 164.5 kB / 2.25 GB, free: 73.34 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005305/6.415, allocations: 1.514 MB / 2.251 GB, free: 73.25 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/6.415, allocations: 7.812 kB / 2.251 GB, free: 73.25 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/6.415, allocations: 1.219 kB / 2.251 GB, free: 73.25 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004413/6.42, allocations: 1.35 MB / 2.252 GB, free: 72.97 MB / 0.698 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.007563/6.427, allocations: 2.6 MB / 2.255 GB, free: 72.65 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/6.427, allocations: 3.812 kB / 2.255 GB, free: 72.65 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006381/6.428, allocations: 139.6 kB / 2.255 GB, free: 72.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001744/6.428, allocations: 28.97 kB / 2.255 GB, free: 72.64 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.372e-05/6.428, allocations: 22.12 kB / 2.255 GB, free: 72.64 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008418/6.429, allocations: 1.268 MB / 2.256 GB, free: 71.45 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/6.429, allocations: 2.344 kB / 2.256 GB, free: 71.45 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005263/6.434, allocations: 1.878 MB / 2.258 GB, free: 71.12 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006402/6.435, allocations: 327.6 kB / 2.258 GB, free: 70.94 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001822/6.435, allocations: 12.81 kB / 2.258 GB, free: 70.94 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008303/6.436, allocations: 73.55 kB / 2.259 GB, free: 70.94 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/6.436, allocations: 53.77 kB / 2.259 GB, free: 70.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.399e-05/6.436, allocations: 26.69 kB / 2.259 GB, free: 70.93 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001335/6.438, allocations: 0.9164 MB / 2.259 GB, free: 70.82 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.7e-07/6.438, allocations: 0 / 2.259 GB, free: 70.82 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.003714/6.441, allocations: 0.9641 MB / 2.26 GB, free: 70.66 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007931/6.449, allocations: 3.652 MB / 2.264 GB, free: 69.52 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00206/6.451, allocations: 1.279 MB / 2.265 GB, free: 69.38 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/6.451, allocations: 0 / 2.265 GB, free: 69.38 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006035/6.452, allocations: 438.2 kB / 2.266 GB, free: 69.28 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003125/6.455, allocations: 0.6204 MB / 2.266 GB, free: 69.24 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/6.461, allocations: 2.681 MB / 2.269 GB, free: 68.36 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009141/6.462, allocations: 1.391 MB / 2.27 GB, free: 67.63 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002527/6.465, allocations: 0.5971 MB / 2.271 GB, free: 67.53 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000797/6.465, allocations: 0.6735 MB / 2.271 GB, free: 67.52 MB / 0.698 GB Notification: Performance of SimCode: time 1.022e-06/6.466, allocations: 0 / 2.271 GB, free: 67.52 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08457/6.55, allocations: 46.43 MB / 2.317 GB, free: 57.6 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/6.55, allocations: 158.2 kB / 2.317 GB, free: 57.41 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.808/10.36, allocations: 4.031 kB / 2.317 GB, free: 57.4 MB / 0.698 GB (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)