Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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.001064/0.001064, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001331/0.001331, allocations: 168.7 kB / 15.95 MB, free: 204 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.359/1.359, allocations: 223.2 MB / 240 MB, free: 5.422 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.358/2.358, allocations: 390.4 MB / 0.6655 GB, free: 2.871 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003157, allocations: 11.94 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6486/0.6489, allocations: 142.3 MB / 0.9538 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04631/0.6953, allocations: 49.08 MB / 1.002 GB, free: 14.94 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02016/0.7155, allocations: 14.25 MB / 1.016 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002956/0.7185, allocations: 71.56 kB / 1.016 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.7214, allocations: 0.7639 MB / 1.017 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.005737/0.7272, allocations: 1.881 MB / 1.018 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004918/0.7321, allocations: 1.75 MB / 1.02 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.006407/0.7385, allocations: 5.129 MB / 1.025 GB, free: 7.066 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.7411, allocations: 1.229 MB / 1.026 GB, free: 5.805 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003458/0.7446, allocations: 1.544 MB / 1.028 GB, free: 4.254 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.7469, allocations: 1.248 MB / 1.029 GB, free: 3 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0004986/0.7475, allocations: 76 kB / 1.029 GB, free: 2.926 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003704/0.7512, allocations: 1.4 MB / 1.03 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0009587/0.7522, allocations: 410.2 kB / 1.031 GB, free: 1.121 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001426/0.7536, allocations: 404.6 kB / 1.031 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004391/0.758, allocations: 2.408 MB / 1.034 GB, free: 14.3 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.758, allocations: 4 kB / 1.034 GB, free: 14.3 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7581, allocations: 0 / 1.034 GB, free: 14.3 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001023/0.7582, allocations: 0 / 1.034 GB, free: 14.3 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.004908/0.7631, allocations: 2.198 MB / 1.036 GB, free: 12.04 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.7631, allocations: 8.031 kB / 1.036 GB, free: 12.03 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003775/0.7635, allocations: 169 kB / 1.036 GB, free: 11.85 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002771/0.7663, allocations: 0.5633 MB / 1.036 GB, free: 11.29 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004214/0.7705, allocations: 1.652 MB / 1.038 GB, free: 9.586 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/0.7709, allocations: 150.4 kB / 1.038 GB, free: 9.438 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003312/0.7713, allocations: 124 kB / 1.038 GB, free: 9.316 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0031/0.7744, allocations: 1.404 MB / 1.04 GB, free: 7.82 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.7744, allocations: 7.938 kB / 1.04 GB, free: 7.812 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/0.7746, allocations: 48 kB / 1.04 GB, free: 7.766 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.524e-05/0.7746, allocations: 45.97 kB / 1.04 GB, free: 7.719 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003116/0.7777, allocations: 1.242 MB / 1.041 GB, free: 6.469 MB / 0.795 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.009339/0.7871, allocations: 7.081 MB / 1.048 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002526/0.7897, allocations: 1.462 MB / 1.049 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.7907, allocations: 468.3 kB / 1.05 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004892/0.7956, allocations: 3.193 MB / 1.053 GB, free: 9.285 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.7968, allocations: 0.491 MB / 1.053 GB, free: 8.785 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000527/0.7973, allocations: 83.34 kB / 1.053 GB, free: 8.703 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 2.825e-06/0.7974, allocations: 3.938 kB / 1.053 GB, free: 8.699 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.003474/0.8008, allocations: 1.381 MB / 1.055 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.8009, allocations: 63.95 kB / 1.055 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002228/0.8031, allocations: 1.549 MB / 1.056 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.8032, allocations: 45.7 kB / 1.056 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007482/0.804, allocations: 0.8763 MB / 1.057 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.8042, allocations: 216.9 kB / 1.057 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.8043, allocations: 20 kB / 1.057 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8044, allocations: 345.9 kB / 1.058 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.8055, allocations: 409.7 kB / 1.058 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.8068, allocations: 0.7905 MB / 1.059 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.808, allocations: 0.5084 MB / 1.059 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/0.8081, allocations: 7.984 kB / 1.059 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.003121/0.8112, allocations: 1.356 MB / 1.061 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003308/0.8115, allocations: 439 kB / 1.061 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.8116, allocations: 15.94 kB / 1.061 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/0.8116, allocations: 16 kB / 1.061 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.8127, allocations: 287.6 kB / 1.062 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.103e-05/0.8128, allocations: 27.83 kB / 1.062 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.8143, allocations: 152.4 kB / 1.062 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.8145, allocations: 55.98 kB / 1.062 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.8145, allocations: 3.938 kB / 1.062 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002576/0.8171, allocations: 1.192 MB / 1.063 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.8171, allocations: 12 kB / 1.063 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.8171, allocations: 16 kB / 1.063 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.8182, allocations: 279.9 kB / 1.063 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.01e-05/0.8182, allocations: 23.92 kB / 1.063 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.8197, allocations: 140.5 kB / 1.063 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.8199, allocations: 51.98 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (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.0009292/0.8208, allocations: 480.6 kB / 1.064 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004027/0.8212, allocations: 161.9 kB / 1.064 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00302/0.8242, allocations: 1.229 MB / 1.065 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/0.8243, allocations: 11.98 kB / 1.065 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.8243, allocations: 0 / 1.065 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002153/0.8264, allocations: 1.072 MB / 1.066 GB, free: 11.03 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.005228/0.8317, allocations: 2.566 MB / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.8317, allocations: 0 / 1.069 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008166/0.8325, allocations: 167.8 kB / 1.069 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000174/0.8327, allocations: 32.83 kB / 1.069 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.868e-05/0.8328, allocations: 27.98 kB / 1.069 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.834, allocations: 1.366 MB / 1.07 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.834, allocations: 0 / 1.07 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003639/0.8376, allocations: 1.721 MB / 1.072 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008904/0.8385, allocations: 358.6 kB / 1.072 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004744/0.839, allocations: 16 kB / 1.072 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.8404, allocations: 143.5 kB / 1.073 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.8405, allocations: 60.47 kB / 1.073 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.2e-05/0.8406, allocations: 27.98 kB / 1.073 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.002094/0.8427, allocations: 1.097 MB / 1.074 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.7e-07/0.8428, allocations: 0 / 1.074 GB, free: 3.18 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.003296/0.8461, allocations: 0.8927 MB / 1.075 GB, free: 2.285 MB / 0.8262 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 61 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005632/0.8517, allocations: 2.857 MB / 1.077 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.003852/0.8556, allocations: 1.717 MB / 1.079 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.8556, allocations: 1.75 kB / 1.079 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.8569, allocations: 0.611 MB / 1.08 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00346/0.8604, allocations: 0.732 MB / 1.08 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/0.8821, allocations: 10.97 MB / 1.091 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.8835, allocations: 1.357 MB / 1.092 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001967/0.8855, allocations: 426 kB / 1.093 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.8865, allocations: 0.7179 MB / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of SimCode: time 7.21e-07/0.8865, allocations: 0 / 1.093 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07727/0.9638, allocations: 46.46 MB / 1.139 GB, free: 300 kB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002137/0.9641, allocations: 259.4 kB / 1.139 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.907/3.871, allocations: 0 / 1.139 GB, free: 15.95 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat does not exist to compare? outputFormat=mat