Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_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.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_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.8252/0.8252, allocations: 141.8 MB / 149.3 MB, free: 9.211 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.001629/0.001629, allocations: 188.8 kB / 182.2 MB, free: 9.418 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.628/1.628, allocations: 221.5 MB / 436.4 MB, free: 13.27 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.001122/0.001122, allocations: 88.09 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001934/0.001933, allocations: 283.7 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.108e-05/2.111e-05, allocations: 4 kB / 0.6766 GB, free: 12.72 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5437/0.5438, allocations: 82.77 MB / 0.7575 GB, free: 31.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.601, allocations: 404.9 MB / 1.153 GB, free: 9.441 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/1.602, allocations: 95.59 kB / 1.153 GB, free: 9.395 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.188/6.79, allocations: 1.142 GB / 2.295 GB, free: 89.22 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.583e-06/6.79, allocations: 0 / 2.295 GB, free: 89.22 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002362/6.79, allocations: 57.59 kB / 2.295 GB, free: 89.22 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.004999/6.795, allocations: 2.135 MB / 2.297 GB, free: 88.37 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/6.795, allocations: 12.91 kB / 2.297 GB, free: 88.37 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001636/6.797, allocations: 377.7 kB / 2.298 GB, free: 88.25 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005785/6.803, allocations: 2.419 MB / 2.3 GB, free: 87.89 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.359e-05/6.803, allocations: 43.36 kB / 2.3 GB, free: 87.89 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/6.803, allocations: 80.47 kB / 2.3 GB, free: 87.89 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001671/6.805, allocations: 0.8632 MB / 2.301 GB, free: 87.88 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/6.807, allocations: 1.148 MB / 2.302 GB, free: 87.63 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.391e-05/6.807, allocations: 6.219 kB / 2.302 GB, free: 87.63 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/6.807, allocations: 7.531 kB / 2.302 GB, free: 87.63 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/6.807, allocations: 43.03 kB / 2.302 GB, free: 87.63 MB / 0.7136 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.009156/6.816, allocations: 6.986 MB / 2.309 GB, free: 83.71 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/6.817, allocations: 1.161 MB / 2.31 GB, free: 83.12 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004942/6.818, allocations: 359.6 kB / 2.311 GB, free: 83.11 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004576/6.822, allocations: 2.578 MB / 2.313 GB, free: 81.75 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005598/6.823, allocations: 396.9 kB / 2.313 GB, free: 81.68 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007244/6.824, allocations: 76.97 kB / 2.314 GB, free: 81.65 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=66): time 3.006e-06/6.824, allocations: 0 / 2.314 GB, free: 81.65 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66): time 0.001901/6.826, allocations: 0.7859 MB / 2.314 GB, free: 81.51 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/6.826, allocations: 174.6 kB / 2.314 GB, free: 81.32 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/6.827, allocations: 1.175 MB / 2.316 GB, free: 81.16 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.576e-05/6.827, allocations: 28.33 kB / 2.316 GB, free: 81.12 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/6.828, allocations: 0.8798 MB / 2.317 GB, free: 80.8 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/6.828, allocations: 227.8 kB / 2.317 GB, free: 80.65 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.31e-05/6.828, allocations: 0 / 2.317 GB, free: 80.65 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.594e-05/6.828, allocations: 352.2 kB / 2.317 GB, free: 80.35 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/6.829, allocations: 254.3 kB / 2.317 GB, free: 80.34 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000552/6.829, allocations: 0.6301 MB / 2.318 GB, free: 79.89 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/6.831, allocations: 444.8 kB / 2.318 GB, free: 79.88 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/6.831, allocations: 3.812 kB / 2.318 GB, free: 79.88 MB / 0.7136 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002032/6.833, allocations: 1.053 MB / 2.319 GB, free: 79.75 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009582/6.834, allocations: 4.003 MB / 2.323 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/6.834, allocations: 9.188 kB / 2.323 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.645e-05/6.834, allocations: 18.31 kB / 2.323 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000893/6.835, allocations: 238.3 kB / 2.324 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/6.835, allocations: 18.59 kB / 2.324 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/6.836, allocations: 98.88 kB / 2.324 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/6.836, allocations: 51.95 kB / 2.324 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/6.836, allocations: 7.469 kB / 2.324 GB, free: 75.54 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001775/6.838, allocations: 0.8416 MB / 2.325 GB, free: 75.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/6.838, allocations: 8.094 kB / 2.325 GB, free: 75.51 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/6.838, allocations: 24.75 kB / 2.325 GB, free: 75.51 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008143/6.839, allocations: 234.6 kB / 2.325 GB, free: 75.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/6.839, allocations: 24.77 kB / 2.325 GB, free: 75.51 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/6.84, allocations: 88.17 kB / 2.325 GB, free: 75.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/6.84, allocations: 50.41 kB / 2.325 GB, free: 75.5 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (118): * Single equations (assignments): 116 * 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.0002877/6.841, allocations: 147.8 kB / 2.325 GB, free: 75.39 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00162/6.842, allocations: 0.757 MB / 2.326 GB, free: 75.25 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/6.842, allocations: 166.5 kB / 2.326 GB, free: 75.16 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/6.844, allocations: 0.9367 MB / 2.327 GB, free: 75.07 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/6.844, allocations: 10.45 kB / 2.327 GB, free: 75.07 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.168e-06/6.844, allocations: 2.062 kB / 2.327 GB, free: 75.07 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001149/6.846, allocations: 0.6639 MB / 2.328 GB, free: 74.98 MB / 0.7136 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.004342/6.85, allocations: 2.335 MB / 2.33 GB, free: 74.47 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/6.85, allocations: 0 / 2.33 GB, free: 74.47 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006924/6.851, allocations: 155.2 kB / 2.33 GB, free: 74.46 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/6.851, allocations: 37.48 kB / 2.33 GB, free: 74.46 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.847e-05/6.851, allocations: 18.77 kB / 2.33 GB, free: 74.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008606/6.852, allocations: 1.275 MB / 2.331 GB, free: 73.27 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/6.852, allocations: 1.594 kB / 2.331 GB, free: 73.27 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/6.854, allocations: 1.467 MB / 2.333 GB, free: 72.82 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008682/6.855, allocations: 345.9 kB / 2.333 GB, free: 72.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/6.855, allocations: 7.031 kB / 2.333 GB, free: 72.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009825/6.856, allocations: 80.09 kB / 2.333 GB, free: 72.62 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/6.857, allocations: 65.45 kB / 2.333 GB, free: 72.62 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/6.857, allocations: 37.97 kB / 2.333 GB, free: 72.62 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001386/6.858, allocations: 0.8844 MB / 2.334 GB, free: 72.51 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.81e-07/6.858, allocations: 0 / 2.334 GB, free: 72.51 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004412/6.863, allocations: 1.042 MB / 2.335 GB, free: 72.32 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (77): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005215/6.868, allocations: 3.468 MB / 2.339 GB, free: 70.72 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002475/6.87, allocations: 1.291 MB / 2.34 GB, free: 70.57 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/6.87, allocations: 0 / 2.34 GB, free: 70.57 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0007697/6.871, allocations: 478.9 kB / 2.34 GB, free: 70.46 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004672/6.876, allocations: 0.7283 MB / 2.341 GB, free: 70.46 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007888/6.884, allocations: 2.759 MB / 2.344 GB, free: 69.62 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/6.885, allocations: 1.424 MB / 2.345 GB, free: 68.9 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.003074/6.888, allocations: 0.5506 MB / 2.346 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009738/6.889, allocations: 0.7141 MB / 2.346 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of SimCode: time 1.182e-06/6.889, allocations: 0 / 2.346 GB, free: 68.88 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1035/6.993, allocations: 49.53 MB / 2.395 GB, free: 66.36 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/6.993, allocations: 185.4 kB / 2.395 GB, free: 66.17 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.061/11.05, allocations: 6.516 kB / 2.395 GB, free: 66.16 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)