Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",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.892/0.892, allocations: 141.8 MB / 149.3 MB, free: 9.223 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.001244/0.001244, allocations: 180.9 kB / 182.2 MB, free: 9.445 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.672/1.672, 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.001106/0.001106, allocations: 84.06 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.001841/0.001841, allocations: 279.7 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.268e-05/2.27e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5618/0.5618, allocations: 82.78 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.037/1.599, allocations: 411.9 MB / 1.16 GB, free: 2.594 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/1.599, allocations: 90.77 kB / 1.16 GB, free: 2.551 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.163/6.762, allocations: 1.177 GB / 2.337 GB, free: 95.89 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.164e-06/6.762, allocations: 3.5 kB / 2.337 GB, free: 95.89 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0002762/6.762, allocations: 56.14 kB / 2.337 GB, free: 95.88 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.005077/6.767, allocations: 2.02 MB / 2.339 GB, free: 94.97 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/6.767, allocations: 11.34 kB / 2.339 GB, free: 94.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002156/6.769, allocations: 453 kB / 2.339 GB, free: 94.86 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005691/6.775, allocations: 2.25 MB / 2.341 GB, free: 94.45 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.798e-05/6.775, allocations: 43.73 kB / 2.341 GB, free: 94.45 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/6.775, allocations: 81.16 kB / 2.341 GB, free: 94.45 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001505/6.777, allocations: 0.7729 MB / 2.342 GB, free: 94.44 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001664/6.778, allocations: 1.054 MB / 2.343 GB, free: 94.18 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.284e-05/6.778, allocations: 4.75 kB / 2.343 GB, free: 94.18 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-05/6.779, allocations: 3.719 kB / 2.343 GB, free: 94.18 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-05/6.779, allocations: 52.55 kB / 2.343 GB, free: 94.18 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.008561/6.787, allocations: 6.734 MB / 2.35 GB, free: 90.11 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/6.788, allocations: 1.134 MB / 2.351 GB, free: 89.52 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/6.789, allocations: 315.2 kB / 2.351 GB, free: 89.52 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00496/6.794, allocations: 2.995 MB / 2.354 GB, free: 87.59 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005253/6.794, allocations: 333.2 kB / 2.355 GB, free: 87.54 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006717/6.795, allocations: 67.09 kB / 2.355 GB, free: 87.51 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=62): time 3.788e-06/6.795, allocations: 6.656 kB / 2.355 GB, free: 87.51 MB / 0.7136 GB Notification: Performance of matching and sorting (n=62): time 0.005369/6.8, allocations: 1.292 MB / 2.356 GB, free: 87.38 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/6.8, allocations: 112.9 kB / 2.356 GB, free: 87.25 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/6.803, allocations: 1.218 MB / 2.357 GB, free: 87.07 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 9.569e-05/6.803, allocations: 29.64 kB / 2.357 GB, free: 87.04 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006975/6.803, allocations: 0.8672 MB / 2.358 GB, free: 86.73 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/6.804, allocations: 210.7 kB / 2.358 GB, free: 86.59 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.964e-05/6.804, allocations: 0 / 2.358 GB, free: 86.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001027/6.804, allocations: 350.3 kB / 2.359 GB, free: 86.28 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003656/6.804, allocations: 251 kB / 2.359 GB, free: 86.28 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005909/6.805, allocations: 0.657 MB / 2.359 GB, free: 85.77 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004409/6.809, allocations: 0.9796 MB / 2.36 GB, free: 85.76 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/6.809, allocations: 3.031 kB / 2.36 GB, free: 85.76 MB / 0.7136 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.005938/6.815, allocations: 1.601 MB / 2.362 GB, free: 85.63 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.00107/6.816, allocations: 4.448 MB / 2.366 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/6.816, allocations: 10.53 kB / 2.366 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.025e-05/6.816, allocations: 23.42 kB / 2.366 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009016/6.817, allocations: 241.2 kB / 2.367 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/6.817, allocations: 23.98 kB / 2.367 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/6.819, allocations: 103.2 kB / 2.367 GB, free: 80.95 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/6.819, allocations: 53.19 kB / 2.367 GB, free: 80.95 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/6.819, allocations: 6.188 kB / 2.367 GB, free: 80.95 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005121/6.824, allocations: 1.392 MB / 2.368 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/6.824, allocations: 11.84 kB / 2.368 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/6.824, allocations: 17.81 kB / 2.368 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008552/6.825, allocations: 249.3 kB / 2.368 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/6.825, allocations: 22.23 kB / 2.368 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/6.827, allocations: 90.16 kB / 2.369 GB, free: 80.92 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.972e-05/6.827, allocations: 54.72 kB / 2.369 GB, free: 80.92 MB / 0.7136 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.0003053/6.827, allocations: 143.4 kB / 2.369 GB, free: 80.81 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005378/6.833, allocations: 1.261 MB / 2.37 GB, free: 80.67 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/6.833, allocations: 169.2 kB / 2.37 GB, free: 80.58 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005313/6.838, allocations: 1.508 MB / 2.372 GB, free: 80.48 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/6.838, allocations: 10.73 kB / 2.372 GB, free: 80.48 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/6.838, allocations: 3.812 kB / 2.372 GB, free: 80.48 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004325/6.842, allocations: 1.347 MB / 2.373 GB, free: 80.2 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.007923/6.85, allocations: 2.602 MB / 2.375 GB, free: 79.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/6.85, allocations: 7.047 kB / 2.375 GB, free: 79.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006422/6.851, allocations: 137 kB / 2.376 GB, free: 79.88 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/6.851, allocations: 31.95 kB / 2.376 GB, free: 79.87 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-05/6.851, allocations: 19.31 kB / 2.376 GB, free: 79.87 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008996/6.852, allocations: 1.262 MB / 2.377 GB, free: 78.68 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/6.852, allocations: 3.953 kB / 2.377 GB, free: 78.68 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005589/6.858, allocations: 1.879 MB / 2.379 GB, free: 78.37 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007451/6.859, allocations: 330.2 kB / 2.379 GB, free: 78.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001785/6.859, allocations: 3.781 kB / 2.379 GB, free: 78.18 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008721/6.86, allocations: 77.48 kB / 2.379 GB, free: 78.18 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/6.86, allocations: 53.77 kB / 2.379 GB, free: 78.18 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/6.86, allocations: 35.45 kB / 2.379 GB, free: 78.18 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001585/6.862, allocations: 0.9055 MB / 2.38 GB, free: 78.07 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.8e-07/6.862, allocations: 1.031 kB / 2.38 GB, free: 78.07 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004134/6.866, allocations: 0.9525 MB / 2.381 GB, free: 77.91 MB / 0.7136 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.008324/6.874, allocations: 3.67 MB / 2.385 GB, free: 76.77 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002243/6.876, allocations: 1.276 MB / 2.386 GB, free: 76.61 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/6.876, allocations: 0 / 2.386 GB, free: 76.61 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0006246/6.877, allocations: 449.2 kB / 2.386 GB, free: 76.51 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00322/6.88, allocations: 0.6174 MB / 2.387 GB, free: 76.5 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007542/6.888, allocations: 2.673 MB / 2.389 GB, free: 75.68 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/6.889, allocations: 1.398 MB / 2.391 GB, free: 74.94 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002953/6.892, allocations: 0.588 MB / 2.391 GB, free: 74.86 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/6.893, allocations: 0.672 MB / 2.392 GB, free: 74.84 MB / 0.7136 GB Notification: Performance of SimCode: time 1.673e-06/6.893, allocations: 0 / 2.392 GB, free: 74.84 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09427/6.987, allocations: 46.5 MB / 2.437 GB, free: 68.14 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001752/6.987, allocations: 190.7 kB / 2.438 GB, free: 67.94 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.88/10.87, allocations: 3.938 kB / 2.438 GB, free: 67.93 MB / 0.7136 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)