Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",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.0009674/0.0009676, allocations: 99.7 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.0009465/0.0009465, 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.373/1.373, 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.483/2.483, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003158, allocations: 15.98 kB / 0.8146 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8562/0.8566, allocations: 142.3 MB / 0.9536 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02515/0.8818, allocations: 24.01 MB / 0.977 GB, free: 5.27 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01277/0.8946, allocations: 6.862 MB / 0.9837 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001822/0.8964, allocations: 33.06 kB / 0.9838 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.898, allocations: 394.4 kB / 0.9841 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004091/0.9021, allocations: 1.021 MB / 0.9851 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00395/0.906, allocations: 1.097 MB / 0.9862 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005159/0.9112, allocations: 2.737 MB / 0.9889 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002892/0.9141, allocations: 1.611 MB / 0.9905 GB, free: 10.31 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002908/0.9171, allocations: 1.172 MB / 0.9916 GB, free: 9.133 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.9187, allocations: 0.9333 MB / 0.9925 GB, free: 8.195 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001868/0.9189, allocations: 80 kB / 0.9926 GB, free: 8.117 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002406/0.9213, allocations: 0.8543 MB / 0.9934 GB, free: 7.262 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0003687/0.9217, allocations: 342.6 kB / 0.9938 GB, free: 6.926 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005484/0.9222, allocations: 420.8 kB / 0.9942 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.00299/0.9252, allocations: 2.759 MB / 0.9968 GB, free: 3.742 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.9252, allocations: 0 / 0.9968 GB, free: 3.742 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9252, allocations: 0 / 0.9968 GB, free: 3.742 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.533e-05/0.9253, allocations: 0 / 0.9968 GB, free: 3.742 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.004365/0.9296, allocations: 2.14 MB / 0.9989 GB, free: 1.547 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.9297, allocations: 12.03 kB / 0.999 GB, free: 1.535 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002946/0.93, allocations: 210.8 kB / 0.9992 GB, free: 1.32 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.9307, allocations: 237.5 kB / 0.9994 GB, free: 1.086 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003091/0.9338, allocations: 1.636 MB / 1.001 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.035e-05/0.9339, allocations: 110.7 kB / 1.001 GB, free: 15.29 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002401/0.9342, allocations: 155.9 kB / 1.001 GB, free: 15.13 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003175/0.9374, allocations: 1.978 MB / 1.003 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.9374, allocations: 0 / 1.003 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.9375, allocations: 67.89 kB / 1.003 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.405e-05/0.9376, allocations: 40 kB / 1.003 GB, free: 12.98 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002778/0.9404, allocations: 1.782 MB / 1.005 GB, free: 11.2 MB / 0.7637 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.01147/0.9519, allocations: 7.7 MB / 1.013 GB, free: 3.184 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.9538, allocations: 1.452 MB / 1.014 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006454/0.9602, allocations: 3.881 MB / 1.018 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.053e-05/0.9603, allocations: 51.5 kB / 1.018 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 3.236e-06/0.9603, allocations: 4 kB / 1.018 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.002385/0.9627, allocations: 1.502 MB / 1.019 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.9628, allocations: 60.41 kB / 1.019 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00238/0.9652, allocations: 1.688 MB / 1.021 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 9.475e-05/0.9653, allocations: 45.7 kB / 1.021 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.966, allocations: 0.7549 MB / 1.022 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003042/0.9663, allocations: 311.4 kB / 1.022 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.717e-05/0.9664, allocations: 28 kB / 1.022 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001667/0.9665, allocations: 365.9 kB / 1.022 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009799/0.9675, allocations: 0.6831 MB / 1.023 GB, free: 7.977 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/0.9687, allocations: 1.008 MB / 1.024 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.9699, allocations: 0.8729 MB / 1.025 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.97, allocations: 0 / 1.025 GB, free: 5.965 MB / 0.7794 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00301/0.973, allocations: 1.932 MB / 1.027 GB, free: 4.023 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.001571/0.9746, allocations: 3.524 MB / 1.03 GB, free: 272 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.9746, allocations: 12 kB / 1.03 GB, free: 260 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-05/0.9746, allocations: 19.94 kB / 1.03 GB, free: 240 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.9759, allocations: 347.5 kB / 1.031 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.543e-05/0.976, allocations: 19.94 kB / 1.031 GB, free: 15.88 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.9774, allocations: 226 kB / 1.031 GB, free: 15.65 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.9775, allocations: 63.94 kB / 1.031 GB, free: 15.59 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.9775, allocations: 4 kB / 1.031 GB, free: 15.59 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002556/0.9801, allocations: 1.784 MB / 1.033 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.9801, allocations: 8 kB / 1.033 GB, free: 13.79 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.9801, allocations: 23.88 kB / 1.033 GB, free: 13.77 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.9813, allocations: 347.5 kB / 1.033 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.732e-05/0.9814, allocations: 19.94 kB / 1.033 GB, free: 13.41 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.9826, allocations: 198.7 kB / 1.033 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.9828, allocations: 63.97 kB / 1.033 GB, free: 13.15 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * 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.001215/0.984, allocations: 0.7464 MB / 1.034 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/0.9843, allocations: 154.1 kB / 1.034 GB, free: 12.24 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.9863, allocations: 1.275 MB / 1.035 GB, free: 10.95 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.9863, allocations: 11.98 kB / 1.035 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.9863, allocations: 4 kB / 1.035 GB, free: 10.94 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001431/0.9877, allocations: 1.284 MB / 1.037 GB, free: 9.566 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00434/0.9921, allocations: 2.967 MB / 1.04 GB, free: 6.523 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.9921, allocations: 4 kB / 1.04 GB, free: 6.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007359/0.9929, allocations: 175.8 kB / 1.04 GB, free: 6.348 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.9929, allocations: 8.125 kB / 1.04 GB, free: 6.34 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-05/0.9929, allocations: 23.98 kB / 1.04 GB, free: 6.316 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.993, allocations: 7.938 kB / 1.04 GB, free: 6.309 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.993, allocations: 0 / 1.04 GB, free: 6.309 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002495/0.9955, allocations: 1.971 MB / 1.042 GB, free: 4.266 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008999/0.9964, allocations: 442.9 kB / 1.042 GB, free: 3.812 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.9966, allocations: 31.94 kB / 1.042 GB, free: 3.781 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008036/0.9974, allocations: 76.19 kB / 1.042 GB, free: 3.711 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.579e-05/0.9975, allocations: 52.88 kB / 1.042 GB, free: 3.656 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.9976, allocations: 39.97 kB / 1.042 GB, free: 3.617 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001688/0.9993, allocations: 1.265 MB / 1.044 GB, free: 2.355 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9993, allocations: 0 / 1.044 GB, free: 2.355 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.002449/1.002, allocations: 0.924 MB / 1.044 GB, free: 1.43 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.003368/1.005, allocations: 3.026 MB / 1.047 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003286/1.008, allocations: 2.309 MB / 1.05 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.008, allocations: 0 / 1.05 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006491/1.009, allocations: 0.5209 MB / 1.05 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003741/1.013, allocations: 0.8541 MB / 1.051 GB, free: 10.69 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/1.023, allocations: 11.54 MB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/1.025, allocations: 1.713 MB / 1.064 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002824/1.027, allocations: 0.9227 MB / 1.065 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009299/1.028, allocations: 0.6203 MB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of SimCode: time 9.62e-07/1.028, allocations: 3.938 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07687/1.105, allocations: 49.15 MB / 1.113 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002196/1.106, allocations: 246.9 kB / 1.114 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/3.804, allocations: 4 kB / 1.114 GB, free: 10.79 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat does not exist to compare? outputFormat=mat