Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001137, allocations: 98.77 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.5/2.5, allocations: 390.3 MB / 0.6653 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003117, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6679/0.6682, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05738/0.7257, allocations: 56.2 MB / 1.008 GB, free: 7.863 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02417/0.7499, allocations: 14.58 MB / 1.023 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004224/0.7542, allocations: 75.5 kB / 1.023 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.004252/0.7585, allocations: 0.9639 MB / 1.024 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.769, allocations: 2.703 MB / 1.026 GB, free: 5.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.007698/0.7767, allocations: 2.211 MB / 1.029 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007985/0.7847, allocations: 3.141 MB / 1.032 GB, free: 176 kB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003204/0.7879, allocations: 1.372 MB / 1.033 GB, free: 14.78 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004068/0.792, allocations: 1.467 MB / 1.034 GB, free: 13.3 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002405/0.7945, allocations: 0.972 MB / 1.035 GB, free: 12.33 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0003323/0.7948, allocations: 72 kB / 1.035 GB, free: 12.26 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004071/0.7989, allocations: 1.346 MB / 1.037 GB, free: 10.91 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005814/0.7995, allocations: 402.4 kB / 1.037 GB, free: 10.52 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0009662/0.8005, allocations: 440.6 kB / 1.037 GB, free: 10.08 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004318/0.8048, allocations: 2.587 MB / 1.04 GB, free: 7.484 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.8048, allocations: 3.938 kB / 1.04 GB, free: 7.48 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.687e-06/0.8049, allocations: 3.984 kB / 1.04 GB, free: 7.477 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.043e-05/0.8049, allocations: 0 / 1.04 GB, free: 7.477 MB / 0.795 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.004768/0.8097, allocations: 2.302 MB / 1.042 GB, free: 5.102 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 5.584e-05/0.8098, allocations: 16.02 kB / 1.042 GB, free: 5.086 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003134/0.8101, allocations: 181.8 kB / 1.042 GB, free: 4.898 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002216/0.8123, allocations: 476.9 kB / 1.043 GB, free: 4.43 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.8162, allocations: 1.723 MB / 1.045 GB, free: 2.656 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003928/0.8167, allocations: 174.3 kB / 1.045 GB, free: 2.484 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.8169, allocations: 128 kB / 1.045 GB, free: 2.359 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002813/0.8197, allocations: 1.462 MB / 1.046 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/0.8197, allocations: 7.938 kB / 1.046 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001203/0.8199, allocations: 48 kB / 1.046 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.133e-05/0.8199, allocations: 46.31 kB / 1.046 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002986/0.8229, allocations: 1.231 MB / 1.048 GB, free: 15.47 MB / 0.8106 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.01024/0.8332, allocations: 7.505 MB / 1.055 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002497/0.8357, allocations: 1.402 MB / 1.056 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004606/0.8403, allocations: 2.691 MB / 1.059 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.8415, allocations: 0.491 MB / 1.059 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006413/0.8422, allocations: 99.17 kB / 1.06 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.8422, allocations: 4 kB / 1.06 GB, free: 2.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=66): time 0.003529/0.8457, allocations: 1.378 MB / 1.061 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.8458, allocations: 59.97 kB / 1.061 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002183/0.848, allocations: 1.532 MB / 1.062 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.454e-05/0.8481, allocations: 45.7 kB / 1.062 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008015/0.8489, allocations: 0.8841 MB / 1.063 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002377/0.8492, allocations: 240.6 kB / 1.064 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.177e-05/0.8492, allocations: 16 kB / 1.064 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.8494, allocations: 341.9 kB / 1.064 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001035/0.8504, allocations: 409.8 kB / 1.064 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.8518, allocations: 0.7538 MB / 1.065 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.8529, allocations: 0.5045 MB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.853, allocations: 0 / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003038/0.856, allocations: 1.34 MB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.00244/0.8585, allocations: 3.813 MB / 1.071 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/0.8585, allocations: 12 kB / 1.071 GB, free: 6.461 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.795e-05/0.8585, allocations: 16 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.8597, allocations: 287.6 kB / 1.071 GB, free: 6.164 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.861e-05/0.8597, allocations: 19.94 kB / 1.071 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.8615, allocations: 157.7 kB / 1.071 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/0.8616, allocations: 59.91 kB / 1.071 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.8616, allocations: 4 kB / 1.071 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002595/0.8642, allocations: 1.161 MB / 1.072 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.8643, allocations: 12 kB / 1.072 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.8643, allocations: 19.95 kB / 1.072 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.8653, allocations: 275.8 kB / 1.073 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.404e-05/0.8654, allocations: 23.92 kB / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/0.8669, allocations: 156.4 kB / 1.073 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.472e-05/0.867, allocations: 51.97 kB / 1.073 GB, free: 4.234 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (122): * Single equations (assignments): 120 * 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.001105/0.8681, allocations: 490.9 kB / 1.073 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002754/0.8684, allocations: 173.8 kB / 1.073 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002965/0.8713, allocations: 1.19 MB / 1.075 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-05/0.8714, allocations: 11.98 kB / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.8714, allocations: 0 / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002176/0.8736, allocations: 0.8901 MB / 1.075 GB, free: 1.449 MB / 0.8262 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.005822/0.8794, allocations: 2.741 MB / 1.078 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.8794, allocations: 0 / 1.078 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008251/0.8803, allocations: 176 kB / 1.078 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002219/0.8805, allocations: 44.83 kB / 1.078 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.8806, allocations: 27.98 kB / 1.078 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001225/0.8818, allocations: 1.386 MB / 1.08 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.8818, allocations: 3.984 kB / 1.08 GB, free: 12.84 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003812/0.8856, allocations: 1.87 MB / 1.082 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009121/0.8866, allocations: 386.6 kB / 1.082 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002041/0.8868, allocations: 19.95 kB / 1.082 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.888, allocations: 143.7 kB / 1.082 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.8881, allocations: 60.42 kB / 1.082 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.204e-05/0.8882, allocations: 35.97 kB / 1.082 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001778/0.89, allocations: 1.117 MB / 1.083 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.89, allocations: 0 / 1.083 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002828/0.8928, allocations: 0.9784 MB / 1.084 GB, free: 8.09 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00534/0.8982, allocations: 3.366 MB / 1.087 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003922/0.9021, allocations: 1.702 MB / 1.089 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.9022, allocations: 0 / 1.089 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.9036, allocations: 0.6046 MB / 1.09 GB, free: 2.301 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003986/0.9075, allocations: 0.8382 MB / 1.091 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.9191, allocations: 11.03 MB / 1.101 GB, free: 6.168 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.9202, allocations: 1.436 MB / 1.103 GB, free: 4.699 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.002116/0.9224, allocations: 446.5 kB / 1.103 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.9234, allocations: 0.7414 MB / 1.104 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of SimCode: time 1.132e-06/0.9234, allocations: 0 / 1.104 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08462/1.008, allocations: 49.36 MB / 1.152 GB, free: 2.812 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/1.008, allocations: 241.1 kB / 1.152 GB, free: 2.531 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.967/3.975, allocations: 0 / 1.152 GB, free: 2.531 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat does not exist to compare? outputFormat=mat