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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 387.1 MB / 399.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 176.8 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 221.3 MB / 0.7872 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000903/0.000903, allocations: 95.91 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.877e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2873, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.294/1.581, allocations: 421.1 MB / 1.624 GB, free: 9.52 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/1.581, allocations: 99.25 kB / 1.624 GB, free: 9.469 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.644/3.226, allocations: 422.9 MB / 2.037 GB, free: 167.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.082e-06/3.226, allocations: 0 / 2.037 GB, free: 167.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003396/3.226, allocations: 47.98 kB / 2.037 GB, free: 167.3 MB / 1.151 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.006795/3.233, allocations: 1.935 MB / 2.039 GB, free: 165.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/3.233, allocations: 8.031 kB / 2.039 GB, free: 165.3 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000838/3.234, allocations: 214.7 kB / 2.039 GB, free: 165.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001658/3.235, allocations: 221.5 kB / 2.039 GB, free: 164.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005494/3.241, allocations: 2.123 MB / 2.041 GB, free: 162.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/3.241, allocations: 110.7 kB / 2.041 GB, free: 162.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000622/3.242, allocations: 155.9 kB / 2.041 GB, free: 162.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004338/3.246, allocations: 1.869 MB / 2.043 GB, free: 160.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.183e-05/3.246, allocations: 4 kB / 2.043 GB, free: 160.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/3.246, allocations: 59.98 kB / 2.043 GB, free: 160.4 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.033e-05/3.246, allocations: 36 kB / 2.043 GB, free: 160.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00305/3.249, allocations: 1.662 MB / 2.045 GB, free: 158.7 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.01288/3.262, allocations: 7.548 MB / 2.052 GB, free: 150.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/3.264, allocations: 1.319 MB / 2.054 GB, free: 149.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007832/3.265, allocations: 0.6258 MB / 2.054 GB, free: 148.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006397/3.271, allocations: 3.838 MB / 2.058 GB, free: 144.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/3.271, allocations: 47.44 kB / 2.058 GB, free: 144.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=86): time 2.736e-06/3.271, allocations: 3.938 kB / 2.058 GB, free: 144.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=86): time 0.00202/3.273, allocations: 1.041 MB / 2.059 GB, free: 143.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/3.273, allocations: 60.19 kB / 2.059 GB, free: 143.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002688/3.276, allocations: 1.515 MB / 2.061 GB, free: 142.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001608/3.276, allocations: 49.7 kB / 2.061 GB, free: 142 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007094/3.277, allocations: 0.7691 MB / 2.061 GB, free: 141.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/3.277, allocations: 307.6 kB / 2.062 GB, free: 140.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/3.277, allocations: 32 kB / 2.062 GB, free: 140.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001178/3.278, allocations: 369.9 kB / 2.062 GB, free: 140.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009814/3.279, allocations: 0.6598 MB / 2.063 GB, free: 139.9 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/3.28, allocations: 1.006 MB / 2.064 GB, free: 138.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/3.281, allocations: 0.8557 MB / 2.065 GB, free: 137.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/3.281, allocations: 8 kB / 2.065 GB, free: 137.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003031/3.284, allocations: 1.916 MB / 2.066 GB, free: 135.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001168/3.285, allocations: 3.525 MB / 2.07 GB, free: 132.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.214e-05/3.285, allocations: 8 kB / 2.07 GB, free: 132.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.592e-05/3.285, allocations: 20 kB / 2.07 GB, free: 132.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/3.287, allocations: 347.5 kB / 2.07 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.3e-05/3.287, allocations: 23.92 kB / 2.07 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002013/3.289, allocations: 226 kB / 2.07 GB, free: 131.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001894/3.289, allocations: 55.98 kB / 2.07 GB, free: 131.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/3.289, allocations: 4 kB / 2.07 GB, free: 131.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002514/3.291, allocations: 1.764 MB / 2.072 GB, free: 129.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/3.291, allocations: 8 kB / 2.072 GB, free: 129.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/3.291, allocations: 16 kB / 2.072 GB, free: 129.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/3.293, allocations: 351.4 kB / 2.073 GB, free: 129.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.141e-05/3.293, allocations: 19.92 kB / 2.073 GB, free: 129.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/3.294, allocations: 190.7 kB / 2.073 GB, free: 129.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/3.295, allocations: 67.94 kB / 2.073 GB, free: 129.1 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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.0003352/3.295, allocations: 184.5 kB / 2.073 GB, free: 128.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006125/3.295, allocations: 150.1 kB / 2.073 GB, free: 128.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00207/3.298, allocations: 1.199 MB / 2.074 GB, free: 127.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/3.298, allocations: 8 kB / 2.074 GB, free: 127.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/3.298, allocations: 4 kB / 2.074 GB, free: 127.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001215/3.299, allocations: 1.236 MB / 2.076 GB, free: 126.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004972/3.304, allocations: 2.87 MB / 2.078 GB, free: 123.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/3.304, allocations: 8 kB / 2.078 GB, free: 123.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007479/3.305, allocations: 179.8 kB / 2.079 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-05/3.305, allocations: 4 kB / 2.079 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.844e-05/3.305, allocations: 28.08 kB / 2.079 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/3.305, allocations: 7.953 kB / 2.079 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/3.305, allocations: 0 / 2.079 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002471/3.307, allocations: 1.882 MB / 2.08 GB, free: 121.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/3.308, allocations: 426.8 kB / 2.081 GB, free: 120.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005405/3.309, allocations: 23.98 kB / 2.081 GB, free: 120.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/3.31, allocations: 71.78 kB / 2.081 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/3.31, allocations: 52.7 kB / 2.081 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/3.31, allocations: 31.98 kB / 2.081 GB, free: 120.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.00219/3.312, allocations: 1.248 MB / 2.082 GB, free: 119.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 8.62e-07/3.312, allocations: 0 / 2.082 GB, free: 119.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003737/3.316, allocations: 0.9552 MB / 2.083 GB, free: 118.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * 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.003848/3.32, allocations: 3.03 MB / 2.086 GB, free: 115.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003728/3.324, allocations: 2.317 MB / 2.088 GB, free: 112.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/3.324, allocations: 0.9375 kB / 2.088 GB, free: 112.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006228/3.324, allocations: 0.5003 MB / 2.089 GB, free: 112.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004487/3.329, allocations: 0.8578 MB / 2.09 GB, free: 111.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008157/3.337, allocations: 3.689 MB / 2.093 GB, free: 107.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/3.339, allocations: 1.712 MB / 2.095 GB, free: 106.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.004102/3.343, allocations: 1.293 MB / 2.096 GB, free: 104.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/3.344, allocations: 0.5969 MB / 2.097 GB, free: 104.2 MB / 1.151 GB Notification: Performance of SimCode: time 1.914e-06/3.344, allocations: 0 / 2.097 GB, free: 104.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09295/3.437, allocations: 53.32 MB / 2.149 GB, free: 51.22 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/3.437, allocations: 213.7 kB / 2.149 GB, free: 50.99 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.838/7.275, allocations: 7.938 kB / 2.149 GB, free: 50.98 MB / 1.151 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