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.0008197/0.0008197, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0008423/0.0008424, allocations: 172.7 kB / 15.95 MB, free: 208 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.365/1.365, allocations: 223.3 MB / 240 MB, free: 5.438 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.436/2.436, allocations: 390.4 MB / 0.6655 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003448, allocations: 8 kB / 0.8149 GB, free: 14.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7747/0.7751, allocations: 142.3 MB / 0.9538 GB, free: 8.281 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02593/0.801, allocations: 26.28 MB / 0.9795 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01214/0.8132, allocations: 7.401 MB / 0.9867 GB, free: 13.31 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.8151, allocations: 30.28 kB / 0.9868 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.8163, allocations: 287.7 kB / 0.987 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.003041/0.8194, allocations: 0.8066 MB / 0.9878 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002805/0.8222, allocations: 0.7753 MB / 0.9886 GB, free: 11.86 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.006289/0.8285, allocations: 5.263 MB / 0.9937 GB, free: 7.305 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002447/0.831, allocations: 1.615 MB / 0.9953 GB, free: 5.668 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002997/0.834, allocations: 1.311 MB / 0.9966 GB, free: 4.352 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002151/0.8362, allocations: 1.221 MB / 0.9978 GB, free: 3.125 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002692/0.8365, allocations: 83.94 kB / 0.9979 GB, free: 3.043 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002595/0.8391, allocations: 0.9866 MB / 0.9988 GB, free: 2.055 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004723/0.8396, allocations: 358.5 kB / 0.9992 GB, free: 1.703 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0007608/0.8403, allocations: 420.7 kB / 0.9996 GB, free: 1.285 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.003461/0.8438, allocations: 2.821 MB / 1.002 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.8438, allocations: 0 / 1.002 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.074e-06/0.8438, allocations: 0 / 1.002 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.979e-05/0.8439, allocations: 0 / 1.002 GB, free: 14.46 MB / 0.7637 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.004341/0.8483, allocations: 2.156 MB / 1.004 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.8483, allocations: 12.03 kB / 1.004 GB, free: 12.23 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003795/0.8487, allocations: 210.8 kB / 1.005 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007378/0.8495, allocations: 233.5 kB / 1.005 GB, free: 11.79 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002992/0.8525, allocations: 1.722 MB / 1.007 GB, free: 10.01 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.505e-05/0.8526, allocations: 114.7 kB / 1.007 GB, free: 9.898 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.8528, allocations: 148 kB / 1.007 GB, free: 9.754 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.856, allocations: 1.99 MB / 1.009 GB, free: 7.699 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/0.856, allocations: 4 kB / 1.009 GB, free: 7.695 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001313/0.8562, allocations: 59.95 kB / 1.009 GB, free: 7.637 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.245e-05/0.8562, allocations: 40 kB / 1.009 GB, free: 7.598 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.859, allocations: 1.79 MB / 1.011 GB, free: 5.801 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.0113/0.8703, allocations: 7.614 MB / 1.018 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001848/0.8722, allocations: 1.449 MB / 1.019 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008527/0.873, allocations: 0.6601 MB / 1.02 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006301/0.8794, allocations: 3.842 MB / 1.024 GB, free: 7.582 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.8794, allocations: 47.55 kB / 1.024 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 2.815e-06/0.8794, allocations: 0 / 1.024 GB, free: 7.527 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.00263/0.8821, allocations: 1.51 MB / 1.025 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.8821, allocations: 60.41 kB / 1.025 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/0.8845, allocations: 1.598 MB / 1.027 GB, free: 4.332 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.00013/0.8847, allocations: 53.7 kB / 1.027 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006746/0.8854, allocations: 0.7536 MB / 1.028 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003298/0.8857, allocations: 307.6 kB / 1.028 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.935e-05/0.8858, allocations: 28 kB / 1.028 GB, free: 3.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.8859, allocations: 365.9 kB / 1.028 GB, free: 2.816 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.887, allocations: 0.6792 MB / 1.029 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.8882, allocations: 1.012 MB / 1.03 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.8895, allocations: 0.8689 MB / 1.031 GB, free: 128 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.8895, allocations: 4 kB / 1.031 GB, free: 124 kB / 0.7794 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003121/0.8926, allocations: 1.939 MB / 1.033 GB, free: 14.17 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.8929, allocations: 361.3 kB / 1.033 GB, free: 13.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.8929, allocations: 12 kB / 1.033 GB, free: 13.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.8929, allocations: 19.94 kB / 1.033 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.8941, allocations: 335.4 kB / 1.034 GB, free: 13.34 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.59e-05/0.8942, allocations: 19.94 kB / 1.034 GB, free: 13.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.8955, allocations: 222 kB / 1.034 GB, free: 13.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.8956, allocations: 59.98 kB / 1.034 GB, free: 13.04 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.8957, allocations: 4 kB / 1.034 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002558/0.8982, allocations: 1.784 MB / 1.036 GB, free: 11.25 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.8982, allocations: 8 kB / 1.036 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.8983, allocations: 20 kB / 1.036 GB, free: 11.22 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.8994, allocations: 335.5 kB / 1.036 GB, free: 10.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/0.8994, allocations: 23.92 kB / 1.036 GB, free: 10.87 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00127/0.9007, allocations: 186.7 kB / 1.036 GB, free: 10.69 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.9008, allocations: 56 kB / 1.036 GB, free: 10.63 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.001221/0.9021, allocations: 0.758 MB / 1.037 GB, free: 9.863 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003824/0.9025, allocations: 150.1 kB / 1.037 GB, free: 9.715 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002042/0.9045, allocations: 1.286 MB / 1.038 GB, free: 8.414 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.9045, allocations: 15.98 kB / 1.038 GB, free: 8.398 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.9046, allocations: 0 / 1.038 GB, free: 8.398 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001431/0.906, allocations: 1.277 MB / 1.04 GB, free: 7.039 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004486/0.9105, allocations: 2.931 MB / 1.042 GB, free: 4.031 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.9105, allocations: 4 kB / 1.042 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.9113, allocations: 187.8 kB / 1.043 GB, free: 3.844 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/0.9113, allocations: 4 kB / 1.043 GB, free: 3.84 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-05/0.9114, allocations: 23.98 kB / 1.043 GB, free: 3.816 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.155e-06/0.9114, allocations: 8.125 kB / 1.043 GB, free: 3.809 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.9114, allocations: 4 kB / 1.043 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.9141, allocations: 1.909 MB / 1.044 GB, free: 1.863 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008037/0.9149, allocations: 419 kB / 1.045 GB, free: 1.434 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000212/0.9152, allocations: 31.98 kB / 1.045 GB, free: 1.402 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/0.9159, allocations: 79.7 kB / 1.045 GB, free: 1.324 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.61e-05/0.916, allocations: 56.89 kB / 1.045 GB, free: 1.266 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.349e-05/0.9161, allocations: 39.97 kB / 1.045 GB, free: 1.227 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001708/0.9178, allocations: 1.191 MB / 1.046 GB, free: 40 kB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9179, allocations: 0 / 1.046 GB, free: 40 kB / 0.795 GB Notification: Performance of remove unused functions: time 0.002632/0.9205, allocations: 0.9045 MB / 1.047 GB, free: 15.13 MB / 0.8106 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.003414/0.9239, allocations: 2.693 MB / 1.05 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00388/0.9278, allocations: 2.313 MB / 1.052 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.9278, allocations: 0 / 1.052 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007592/0.9286, allocations: 0.5172 MB / 1.053 GB, free: 9.586 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004372/0.933, allocations: 0.8687 MB / 1.053 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02752/0.9605, allocations: 12.45 MB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/0.9621, allocations: 1.682 MB / 1.067 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003197/0.9653, allocations: 0.9238 MB / 1.068 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009785/0.9663, allocations: 0.6161 MB / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of SimCode: time 1.432e-06/0.9663, allocations: 0 / 1.069 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08135/1.048, allocations: 49.44 MB / 1.117 GB, free: 7.734 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/1.048, allocations: 253 kB / 1.117 GB, free: 7.395 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.896/3.944, allocations: 0 / 1.117 GB, free: 7.395 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