Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,fileNamePrefix="Buildings_latest_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.00111/0.00111, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.00882/0.008821, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.518/2.518, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 8.344 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.238, allocations: 159.6 MB / 1.059 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02585/0.2639, allocations: 27.76 MB / 1.086 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.009443/0.2733, allocations: 7.874 MB / 1.094 GB, free: 1.113 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008337/0.2742, allocations: 35.75 kB / 1.094 GB, free: 1.078 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007926/0.275, allocations: 326.1 kB / 1.094 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002/0.277, allocations: 0.9362 MB / 1.095 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001975/0.279, allocations: 0.9301 MB / 1.096 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004899/0.2839, allocations: 6.082 MB / 1.102 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.2859, allocations: 1.786 MB / 1.103 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00191/0.2878, allocations: 1.334 MB / 1.105 GB, free: 5.633 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.2894, allocations: 1.303 MB / 1.106 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.2896, allocations: 80 kB / 1.106 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.2914, allocations: 1.131 MB / 1.107 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003408/0.2918, allocations: 378.4 kB / 1.108 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009836/0.2928, allocations: 0.9772 MB / 1.108 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002874/0.2956, allocations: 3.462 MB / 1.112 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.2957, allocations: 0 / 1.112 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2957, allocations: 0 / 1.112 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.691e-05/0.2957, allocations: 0 / 1.112 GB, free: 14.28 MB / 0.8731 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.003335/0.299, allocations: 2.144 MB / 1.114 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.2991, allocations: 11.97 kB / 1.114 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002269/0.2993, allocations: 210.9 kB / 1.114 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006017/0.2999, allocations: 242.5 kB / 1.114 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/0.3022, allocations: 1.774 MB / 1.116 GB, free: 9.793 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.806e-05/0.3022, allocations: 110.7 kB / 1.116 GB, free: 9.684 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.3024, allocations: 148 kB / 1.116 GB, free: 9.539 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002523/0.305, allocations: 1.994 MB / 1.118 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.396e-05/0.305, allocations: 11.91 kB / 1.118 GB, free: 7.469 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001236/0.3052, allocations: 59.98 kB / 1.118 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.184e-05/0.3052, allocations: 43.94 kB / 1.118 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002313/0.3075, allocations: 1.798 MB / 1.12 GB, free: 5.562 MB / 0.8731 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.008798/0.3163, allocations: 7.617 MB / 1.128 GB, free: 13.64 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.3179, allocations: 1.444 MB / 1.129 GB, free: 12.17 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007704/0.3187, allocations: 0.6643 MB / 1.13 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005041/0.3237, allocations: 3.839 MB / 1.133 GB, free: 7.344 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.3238, allocations: 55.48 kB / 1.134 GB, free: 7.281 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=88): time 1.883e-06/0.3238, allocations: 0 / 1.134 GB, free: 7.281 MB / 0.8887 GB Notification: Performance of matching and sorting (n=88): time 0.001987/0.3258, allocations: 1.506 MB / 1.135 GB, free: 5.773 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3258, allocations: 68.41 kB / 1.135 GB, free: 5.691 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001696/0.3275, allocations: 1.606 MB / 1.137 GB, free: 4.074 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 7.648e-05/0.3276, allocations: 45.7 kB / 1.137 GB, free: 4.023 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005041/0.3281, allocations: 0.7498 MB / 1.137 GB, free: 3.266 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002156/0.3283, allocations: 323.4 kB / 1.138 GB, free: 2.945 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3285, allocations: 137.6 kB / 1.138 GB, free: 2.805 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.3286, allocations: 365.9 kB / 1.138 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008697/0.3295, allocations: 0.6831 MB / 1.139 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.3305, allocations: 1.024 MB / 1.14 GB, free: 0.6055 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.3323, allocations: 1.62 MB / 1.141 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3323, allocations: 4 kB / 1.141 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.00246/0.3348, allocations: 1.948 MB / 1.143 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001658/0.335, allocations: 356.9 kB / 1.144 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.335, allocations: 12 kB / 1.144 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.335, allocations: 19.94 kB / 1.144 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.3361, allocations: 335.5 kB / 1.144 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.009e-05/0.3362, allocations: 23.92 kB / 1.144 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009845/0.3372, allocations: 218.1 kB / 1.144 GB, free: 11.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-05/0.3373, allocations: 63.92 kB / 1.144 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.931e-06/0.3373, allocations: 4 kB / 1.144 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002289/0.3396, allocations: 1.788 MB / 1.146 GB, free: 9.969 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3396, allocations: 11.98 kB / 1.146 GB, free: 9.957 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3396, allocations: 20.09 kB / 1.146 GB, free: 9.938 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.3407, allocations: 331.5 kB / 1.146 GB, free: 9.613 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.3407, allocations: 23.92 kB / 1.146 GB, free: 9.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009016/0.3416, allocations: 194.4 kB / 1.147 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.351e-05/0.3417, allocations: 59.98 kB / 1.147 GB, free: 9.34 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007437/0.3425, allocations: 0.7464 MB / 1.147 GB, free: 8.582 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.3427, allocations: 150.2 kB / 1.148 GB, free: 8.434 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.3445, allocations: 1.292 MB / 1.149 GB, free: 7.125 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.3445, allocations: 8 kB / 1.149 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3445, allocations: 0 / 1.149 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001294/0.3458, allocations: 1.288 MB / 1.15 GB, free: 5.746 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003374/0.3492, allocations: 2.939 MB / 1.153 GB, free: 2.734 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3492, allocations: 4.062 kB / 1.153 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007123/0.3499, allocations: 187.8 kB / 1.153 GB, free: 2.547 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.3499, allocations: 4 kB / 1.153 GB, free: 2.543 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.35, allocations: 23.98 kB / 1.153 GB, free: 2.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.35, allocations: 4 kB / 1.153 GB, free: 2.516 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.35, allocations: 0 / 1.153 GB, free: 2.516 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/0.3522, allocations: 1.921 MB / 1.155 GB, free: 0.5625 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004981/0.3527, allocations: 426.7 kB / 1.155 GB, free: 128 kB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.3529, allocations: 20 kB / 1.155 GB, free: 108 kB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007704/0.3537, allocations: 75.73 kB / 1.156 GB, free: 32 kB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3538, allocations: 60.86 kB / 1.156 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.956e-05/0.3538, allocations: 35.98 kB / 1.156 GB, free: 15.93 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001322/0.3552, allocations: 1.207 MB / 1.157 GB, free: 14.73 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3552, allocations: 0 / 1.157 GB, free: 14.73 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001708/0.3569, allocations: 0.9084 MB / 1.158 GB, free: 13.82 MB / 0.92 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002873/0.3598, allocations: 2.713 MB / 1.16 GB, free: 11.08 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002703/0.3625, allocations: 2.328 MB / 1.163 GB, free: 8.754 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3625, allocations: 0 / 1.163 GB, free: 8.754 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005983/0.3631, allocations: 0.5176 MB / 1.163 GB, free: 8.234 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/0.3666, allocations: 0.8689 MB / 1.164 GB, free: 7.379 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/0.3904, allocations: 16.61 MB / 1.18 GB, free: 6.152 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.3915, allocations: 1.678 MB / 1.182 GB, free: 4.441 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002031/0.3935, allocations: 0.9183 MB / 1.183 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000763/0.3943, allocations: 0.6242 MB / 1.183 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.3943, allocations: 0 / 1.183 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.04/2.434, allocations: 47.03 MB / 1.229 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002987/2.434, allocations: 284.4 kB / 1.23 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/5.152, allocations: 0 / 1.23 GB, free: 4.098 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.fmu > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches