Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.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: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lmtdSta.lmtdSta|TIn.y|TOut.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lmtdSta.lmtdSta|TIn.y|TOut.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 182.9 kB / 16.92 MB, free: 6.672 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.366/1.366, allocations: 223.3 MB / 241 MB, free: 5.34 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.368/2.368, allocations: 390.9 MB / 0.667 GB, free: 2.375 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003435, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6669/0.6672, allocations: 142.4 MB / 0.9557 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.001483/0.6688, allocations: 1.252 MB / 0.9569 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001021/0.6698, allocations: 0.7555 MB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.6698, allocations: 1.375 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.6699, allocations: 0 / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.112e-05/0.67, allocations: 17.27 kB / 0.9577 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.6703, allocations: 71.42 kB / 0.9578 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.639e-05/0.6704, allocations: 53.52 kB / 0.9578 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.76e-05/0.6705, allocations: 13.56 kB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.502e-05/0.6706, allocations: 22.23 kB / 0.9578 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.701e-05/0.6706, allocations: 23.92 kB / 0.9579 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.6707, allocations: 2.156 kB / 0.9579 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.6708, allocations: 68.14 kB / 0.9579 GB, free: 6 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.6708, allocations: 10.22 kB / 0.9579 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.6709, allocations: 43.28 kB / 0.958 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.671, allocations: 65.59 kB / 0.9581 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.671, allocations: 0 / 0.9581 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.313e-06/0.671, allocations: 1.156 kB / 0.9581 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.671, allocations: 0 / 0.9581 GB, free: 5.914 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000393/0.6714, allocations: 377.9 kB / 0.9584 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.6715, allocations: 9.812 kB / 0.9584 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.6718, allocations: 30.84 kB / 0.9585 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.508e-05/0.6719, allocations: 179.2 kB / 0.9586 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.6719, allocations: 1.688 kB / 0.9586 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.672e-05/0.6719, allocations: 1.688 kB / 0.9586 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.6722, allocations: 87.77 kB / 0.9587 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.6722, allocations: 1.031 kB / 0.9587 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.6722, allocations: 0 / 0.9587 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.6722, allocations: 1.094 kB / 0.9587 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.6725, allocations: 78.31 kB / 0.9588 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000423/0.6729, allocations: 316.6 kB / 0.9591 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002433/0.6732, allocations: 80.12 kB / 0.9592 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.6733, allocations: 43.67 kB / 0.9592 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.6734, allocations: 0 / 0.9592 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.714e-05/0.6734, allocations: 36.59 kB / 0.9592 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.6734, allocations: 0 / 0.9592 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005102/0.6739, allocations: 153.4 kB / 0.9594 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.6739, allocations: 56.67 kB / 0.9594 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.362e-05/0.674, allocations: 120.3 kB / 0.9596 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.674, allocations: 29.7 kB / 0.9596 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/0.6741, allocations: 90.86 kB / 0.9597 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.6741, allocations: 9.234 kB / 0.9597 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.367e-05/0.6741, allocations: 11 kB / 0.9597 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.875e-05/0.6742, allocations: 323.8 kB / 0.96 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.6743, allocations: 37.03 kB / 0.96 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.6744, allocations: 37.5 kB / 0.9601 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.6747, allocations: 72.12 kB / 0.9601 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.6747, allocations: 0 / 0.9601 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000291/0.675, allocations: 119 kB / 0.9603 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.675, allocations: 9.109 kB / 0.9603 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.675, allocations: 0 / 0.9603 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.675, allocations: 0 / 0.9603 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.6752, allocations: 16.69 kB / 0.9603 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.6752, allocations: 4 kB / 0.9603 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.446e-05/0.6753, allocations: 14.86 kB / 0.9603 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.6753, allocations: 1.375 kB / 0.9603 GB, free: 3.836 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 5.466e-05/0.6754, allocations: 116.5 kB / 0.9604 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.931e-05/0.6754, allocations: 10.64 kB / 0.9604 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.08e-05/0.6754, allocations: 18.62 kB / 0.9604 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.6754, allocations: 0 / 0.9604 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6755, allocations: 1.375 kB / 0.9604 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.6755, allocations: 4 kB / 0.9604 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.6756, allocations: 191.2 kB / 0.9606 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6756, allocations: 0 / 0.9606 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.6758, allocations: 24.28 kB / 0.9606 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.6758, allocations: 0 / 0.9606 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.6758, allocations: 1.375 kB / 0.9606 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.6758, allocations: 1.375 kB / 0.9606 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6758, allocations: 0 / 0.9606 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003691/0.6762, allocations: 208.9 kB / 0.9608 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.879e-05/0.6762, allocations: 86.33 kB / 0.9609 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.6762, allocations: 1.375 kB / 0.9609 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.6764, allocations: 17.48 kB / 0.9609 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.449e-05/0.6764, allocations: 2.75 kB / 0.961 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.6764, allocations: 5.359 kB / 0.961 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.254e-05/0.6764, allocations: 92.89 kB / 0.961 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6765, allocations: 0 / 0.961 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002675/0.6767, allocations: 26 kB / 0.9611 GB, free: 3.07 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001735/0.6769, allocations: 120.1 kB / 0.9612 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003097/0.6772, allocations: 86.62 kB / 0.9613 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.6772, allocations: 0 / 0.9613 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.6774, allocations: 48.7 kB / 0.9613 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.6777, allocations: 14.62 kB / 0.9613 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003623/0.678, allocations: 210.8 kB / 0.9615 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/0.6781, allocations: 0.689 MB / 0.9622 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.6782, allocations: 16.92 kB / 0.9622 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6782, allocations: 0 / 0.9622 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of Templates: time 0.002609/0.6808, allocations: 1.281 MB / 0.9635 GB, free: 1.336 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_LMTDStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lmtdSta.lmtdSta,TIn.y,TOut.y Variables in the result:TIn.y,TOut.y,lmtdSta.lmtdSta,time