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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001047/0.001047, 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.00798/0.00798, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.325/1.325, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.201/2.201, allocations: 390.9 MB / 0.6664 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003173/0.0003173, allocations: 19.98 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5742/0.5745, allocations: 142.4 MB / 0.9552 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.02257/0.5971, allocations: 27.75 MB / 0.9823 GB, free: 1.469 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009443/0.6066, allocations: 7.859 MB / 0.9899 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005424/0.6072, allocations: 33.84 kB / 0.99 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0007375/0.6079, allocations: 333.5 kB / 0.9903 GB, free: 10.83 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001674/0.6096, allocations: 0.9342 MB / 0.9912 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.6114, allocations: 0.9349 MB / 0.9921 GB, free: 9.375 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00453/0.6159, allocations: 6.09 MB / 0.9981 GB, free: 3.305 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001648/0.6176, allocations: 1.788 MB / 0.9998 GB, free: 1.48 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.619, allocations: 1.326 MB / 1.001 GB, free: 152 kB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.6202, allocations: 1.295 MB / 1.002 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.6204, allocations: 80 kB / 1.002 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.622, allocations: 1.139 MB / 1.004 GB, free: 13.63 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0003035/0.6223, allocations: 382.2 kB / 1.004 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0007822/0.6231, allocations: 0.9695 MB / 1.005 GB, free: 12.27 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.002648/0.6258, allocations: 3.47 MB / 1.008 GB, free: 8.793 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.6258, allocations: 0 / 1.008 GB, free: 8.793 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6258, allocations: 0 / 1.008 GB, free: 8.793 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.655e-05/0.6258, allocations: 8 kB / 1.008 GB, free: 8.785 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.003388/0.6292, allocations: 2.125 MB / 1.01 GB, free: 6.605 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.6293, allocations: 11.97 kB / 1.01 GB, free: 6.594 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002379/0.6295, allocations: 210.9 kB / 1.011 GB, free: 6.379 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006018/0.6301, allocations: 238.4 kB / 1.011 GB, free: 6.145 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002275/0.6324, allocations: 1.77 MB / 1.013 GB, free: 4.32 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.169e-05/0.6325, allocations: 110.7 kB / 1.013 GB, free: 4.211 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002103/0.6327, allocations: 152 kB / 1.013 GB, free: 4.062 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/0.6353, allocations: 1.994 MB / 1.015 GB, free: 2.004 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/0.6353, allocations: 7.938 kB / 1.015 GB, free: 1.996 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001295/0.6354, allocations: 59.98 kB / 1.015 GB, free: 1.938 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-05/0.6355, allocations: 36 kB / 1.015 GB, free: 1.902 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002336/0.6378, allocations: 1.802 MB / 1.017 GB, free: 96 kB / 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.008956/0.6468, allocations: 7.625 MB / 1.024 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.6484, allocations: 1.449 MB / 1.025 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000781/0.6492, allocations: 0.6731 MB / 1.026 GB, free: 6.023 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005114/0.6543, allocations: 3.838 MB / 1.03 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.6544, allocations: 47.5 kB / 1.03 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=88): time 1.654e-06/0.6544, allocations: 0 / 1.03 GB, free: 1.809 MB / 0.7794 GB Notification: Performance of matching and sorting (n=88): time 0.001997/0.6564, allocations: 1.51 MB / 1.031 GB, free: 300 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.6564, allocations: 64.41 kB / 1.031 GB, free: 224 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.6581, allocations: 1.602 MB / 1.033 GB, free: 14.6 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 7.679e-05/0.6582, allocations: 49.64 kB / 1.033 GB, free: 14.55 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005206/0.6587, allocations: 0.7652 MB / 1.034 GB, free: 13.78 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.659, allocations: 311.6 kB / 1.034 GB, free: 13.47 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.6591, allocations: 129.6 kB / 1.034 GB, free: 13.34 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.6593, allocations: 365.9 kB / 1.035 GB, free: 12.97 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000891/0.6602, allocations: 0.6869 MB / 1.035 GB, free: 12.29 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.6613, allocations: 1.02 MB / 1.036 GB, free: 11.13 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/0.6631, allocations: 1.624 MB / 1.038 GB, free: 9.383 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.6632, allocations: 0 / 1.038 GB, free: 9.383 MB / 0.795 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002537/0.6657, allocations: 1.955 MB / 1.04 GB, free: 7.418 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001891/0.6659, allocations: 354.8 kB / 1.04 GB, free: 6.953 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.6659, allocations: 8 kB / 1.04 GB, free: 6.945 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.6659, allocations: 20 kB / 1.04 GB, free: 6.926 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.6671, allocations: 339.4 kB / 1.04 GB, free: 6.594 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.6671, allocations: 23.88 kB / 1.04 GB, free: 6.57 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009883/0.6681, allocations: 218.1 kB / 1.041 GB, free: 6.355 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.826e-05/0.6682, allocations: 63.98 kB / 1.041 GB, free: 6.293 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 5.771e-06/0.6682, allocations: 4 kB / 1.041 GB, free: 6.289 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002304/0.6705, allocations: 1.788 MB / 1.042 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.6706, allocations: 12.03 kB / 1.042 GB, free: 4.488 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.6706, allocations: 16 kB / 1.042 GB, free: 4.473 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.6717, allocations: 335.5 kB / 1.043 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.6717, allocations: 23.92 kB / 1.043 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009011/0.6726, allocations: 186.6 kB / 1.043 GB, free: 3.938 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.894e-05/0.6727, allocations: 55.98 kB / 1.043 GB, free: 3.883 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000745/0.6734, allocations: 0.7619 MB / 1.044 GB, free: 3.109 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.6737, allocations: 150.1 kB / 1.044 GB, free: 2.961 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.6755, allocations: 1.285 MB / 1.045 GB, free: 1.664 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.6755, allocations: 11.98 kB / 1.045 GB, free: 1.652 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6755, allocations: 4 kB / 1.045 GB, free: 1.648 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001316/0.6768, allocations: 1.28 MB / 1.046 GB, free: 288 kB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003526/0.6804, allocations: 2.943 MB / 1.049 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6804, allocations: 4 kB / 1.049 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000716/0.6811, allocations: 187.8 kB / 1.05 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.6811, allocations: 4 kB / 1.05 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.6812, allocations: 23.98 kB / 1.05 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.6812, allocations: 4 kB / 1.05 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6812, allocations: 8 kB / 1.05 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.6834, allocations: 1.917 MB / 1.051 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005247/0.6839, allocations: 422.8 kB / 1.052 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.6841, allocations: 19.98 kB / 1.052 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007792/0.6849, allocations: 83.14 kB / 1.052 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.685, allocations: 56.88 kB / 1.052 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.186e-05/0.6851, allocations: 35.97 kB / 1.052 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001371/0.6865, allocations: 1.207 MB / 1.053 GB, free: 9.262 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.522e-06/0.6865, allocations: 0 / 1.053 GB, free: 9.262 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001797/0.6883, allocations: 0.9162 MB / 1.054 GB, free: 8.344 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 (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.003086/0.6914, allocations: 2.718 MB / 1.057 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002955/0.6943, allocations: 2.321 MB / 1.059 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.6943, allocations: 320 / 1.059 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006325/0.695, allocations: 0.5248 MB / 1.06 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00368/0.6987, allocations: 0.8685 MB / 1.06 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/0.7238, allocations: 16.6 MB / 1.077 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.7249, allocations: 1.682 MB / 1.078 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.002287/0.7272, allocations: 0.9212 MB / 1.079 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008286/0.728, allocations: 0.632 MB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of SimCode: time 7.22e-07/0.7281, allocations: 0 / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.421/3.149, allocations: 47.03 MB / 1.126 GB, free: 14.98 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002405/3.149, allocations: 272.2 kB / 1.126 GB, free: 14.62 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.441/6.59, allocations: 4 kB / 1.126 GB, free: 14.61 MB / 0.8887 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/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) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches