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.0009429/0.0009428, allocations: 98.45 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.0009188/0.0009189, 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.406/1.406, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.379/2.379, allocations: 390.3 MB / 0.6653 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 12 kB / 0.8146 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6942/0.6946, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04762/0.7422, allocations: 44.78 MB / 0.9973 GB, free: 3.25 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02146/0.7637, allocations: 13.27 MB / 1.01 GB, free: 5.961 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003844/0.7676, allocations: 71.5 kB / 1.01 GB, free: 5.891 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.004244/0.7719, allocations: 0.9204 MB / 1.011 GB, free: 4.969 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.008945/0.7809, allocations: 2.369 MB / 1.014 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006469/0.7874, allocations: 2.082 MB / 1.016 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.006208/0.7936, allocations: 2.749 MB / 1.018 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002394/0.796, allocations: 1.23 MB / 1.019 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003711/0.7997, allocations: 1.366 MB / 1.021 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.8017, allocations: 0.9216 MB / 1.022 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0002522/0.802, allocations: 68 kB / 1.022 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003476/0.8055, allocations: 1.268 MB / 1.023 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0005934/0.8061, allocations: 390.5 kB / 1.023 GB, free: 8.508 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0006399/0.8067, allocations: 400.6 kB / 1.024 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003344/0.8101, allocations: 2.346 MB / 1.026 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.8101, allocations: 0 / 1.026 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.953e-06/0.8101, allocations: 0 / 1.026 GB, free: 5.758 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.784e-05/0.8102, allocations: 0 / 1.026 GB, free: 5.758 MB / 0.7794 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.004223/0.8144, allocations: 2.193 MB / 1.028 GB, free: 3.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.8144, allocations: 8.031 kB / 1.028 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002294/0.8147, allocations: 173 kB / 1.028 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002608/0.8173, allocations: 0.5633 MB / 1.029 GB, free: 2.746 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003356/0.8207, allocations: 1.59 MB / 1.03 GB, free: 1.105 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003869/0.8211, allocations: 158.4 kB / 1.031 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.8213, allocations: 120 kB / 1.031 GB, free: 0.832 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002648/0.8239, allocations: 1.385 MB / 1.032 GB, free: 15.36 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.824, allocations: 3.938 kB / 1.032 GB, free: 15.35 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.8241, allocations: 48 kB / 1.032 GB, free: 15.3 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.045e-05/0.8241, allocations: 46.03 kB / 1.032 GB, free: 15.26 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.8274, allocations: 1.23 MB / 1.033 GB, free: 14.02 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.009768/0.8371, allocations: 7.23 MB / 1.04 GB, free: 6.223 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002699/0.8399, allocations: 1.446 MB / 1.042 GB, free: 4.664 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004894/0.8448, allocations: 3.174 MB / 1.045 GB, free: 1.148 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.846, allocations: 498.8 kB / 1.045 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004686/0.8465, allocations: 95.12 kB / 1.046 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of pre-optimization done (n=62): time 2.254e-06/0.8465, allocations: 0 / 1.046 GB, free: 0.5586 MB / 0.795 GB Notification: Performance of matching and sorting (n=62): time 0.003525/0.85, allocations: 1.374 MB / 1.047 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.8501, allocations: 59.97 kB / 1.047 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/0.8521, allocations: 1.58 MB / 1.048 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 7.848e-05/0.8522, allocations: 37.7 kB / 1.048 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000717/0.8529, allocations: 0.8801 MB / 1.049 GB, free: 12.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.8531, allocations: 216.9 kB / 1.05 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.207e-05/0.8532, allocations: 20 kB / 1.05 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.8533, allocations: 345.9 kB / 1.05 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.8544, allocations: 401.8 kB / 1.05 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.8557, allocations: 0.7866 MB / 1.051 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.8569, allocations: 0.5005 MB / 1.052 GB, free: 10.13 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.8569, allocations: 4 kB / 1.052 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003/0.8599, allocations: 1.356 MB / 1.053 GB, free: 8.754 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.00175/0.8617, allocations: 4.364 MB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.683e-05/0.8617, allocations: 12 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.315e-05/0.8617, allocations: 19.95 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.8629, allocations: 283.6 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/0.8629, allocations: 27.92 kB / 1.057 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.8644, allocations: 152.4 kB / 1.058 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001115/0.8645, allocations: 59.95 kB / 1.058 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.8646, allocations: 7.938 kB / 1.058 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002748/0.8673, allocations: 1.184 MB / 1.059 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.831e-05/0.8674, allocations: 12.59 kB / 1.059 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/0.8674, allocations: 23.94 kB / 1.059 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.8685, allocations: 287.6 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.8685, allocations: 19.94 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.87, allocations: 140.4 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.8702, allocations: 51.98 kB / 1.059 GB, free: 1.75 MB / 0.8106 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 (121): * Single equations (assignments): 119 * 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.000834/0.871, allocations: 488.6 kB / 1.06 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.8713, allocations: 161.9 kB / 1.06 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003023/0.8743, allocations: 1.221 MB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.8743, allocations: 7.938 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.8743, allocations: 4 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002259/0.8766, allocations: 1.06 MB / 1.062 GB, free: 14.75 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.004996/0.8816, allocations: 2.573 MB / 1.065 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/0.8816, allocations: 0 / 1.065 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008298/0.8825, allocations: 167.9 kB / 1.065 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/0.8827, allocations: 40.77 kB / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.102e-05/0.8828, allocations: 23.98 kB / 1.065 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.884, allocations: 1.382 MB / 1.066 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.884, allocations: 0 / 1.066 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003693/0.8877, allocations: 1.74 MB / 1.068 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007577/0.8885, allocations: 358.7 kB / 1.068 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.8887, allocations: 16 kB / 1.068 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.8898, allocations: 139.7 kB / 1.068 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.89, allocations: 52.48 kB / 1.069 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.312e-05/0.89, allocations: 35.97 kB / 1.069 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.001579/0.8916, allocations: 1.121 MB / 1.07 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8916, allocations: 0 / 1.07 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.002528/0.8942, allocations: 0.9006 MB / 1.071 GB, free: 5.906 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.005447/0.8996, allocations: 3.036 MB / 1.074 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.003915/0.9036, allocations: 1.711 MB / 1.075 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.9036, allocations: 0 / 1.075 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.9049, allocations: 0.5998 MB / 1.076 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/0.9081, allocations: 0.7246 MB / 1.076 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.9188, allocations: 12.28 MB / 1.088 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.9199, allocations: 1.399 MB / 1.09 GB, free: 1.797 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001911/0.9218, allocations: 422.2 kB / 1.09 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009344/0.9228, allocations: 0.7179 MB / 1.091 GB, free: 0.6602 MB / 0.8419 GB Notification: Performance of SimCode: time 6.91e-07/0.9228, allocations: 0 / 1.091 GB, free: 0.6602 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07369/0.9965, allocations: 45.85 MB / 1.136 GB, free: 3.395 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002991/0.9968, allocations: 254.8 kB / 1.136 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.016/4.013, allocations: 0 / 1.136 GB, free: 3.086 MB / 0.8887 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