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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.0009988/0.0009988, allocations: 98.03 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.009759/0.009759, allocations: 172.1 kB / 16.27 MB, free: 6.648 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.408/1.408, allocations: 223.3 MB / 240.3 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.405/2.405, allocations: 390.9 MB / 0.6663 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003292, allocations: 16.22 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7396/0.7399, allocations: 142.4 MB / 0.9551 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar): time 0.001592/0.7415, allocations: 1.251 MB / 0.9563 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001116/0.7427, allocations: 0.7494 MB / 0.957 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.385e-05/0.7428, allocations: 0 / 0.957 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.804e-05/0.7428, allocations: 5.062 kB / 0.957 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.853e-05/0.7429, allocations: 9.188 kB / 0.957 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004089/0.7433, allocations: 79.48 kB / 0.9571 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.459e-05/0.7434, allocations: 53.47 kB / 0.9571 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.7435, allocations: 17.06 kB / 0.9572 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.7437, allocations: 18.55 kB / 0.9572 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.865e-05/0.7438, allocations: 19.77 kB / 0.9572 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.7438, allocations: 1.906 kB / 0.9572 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.744, allocations: 68.94 kB / 0.9573 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.802e-05/0.744, allocations: 14.36 kB / 0.9573 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.352e-05/0.7441, allocations: 43.7 kB / 0.9573 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001898/0.7442, allocations: 89.62 kB / 0.9574 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.7443, allocations: 3.984 kB / 0.9574 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.414e-06/0.7443, allocations: 0 / 0.9574 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7443, allocations: 0 / 0.9574 GB, free: 6.043 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.0004884/0.7448, allocations: 374.3 kB / 0.9578 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.7448, allocations: 10.62 kB / 0.9578 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003417/0.7452, allocations: 28.94 kB / 0.9578 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.7453, allocations: 176.3 kB / 0.958 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.7453, allocations: 13.36 kB / 0.958 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.7454, allocations: 1.781 kB / 0.958 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.7456, allocations: 85.08 kB / 0.9581 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.7457, allocations: 0 / 0.9581 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.7457, allocations: 4 kB / 0.9581 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.7457, allocations: 1.906 kB / 0.9581 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.746, allocations: 69.25 kB / 0.9581 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005299/0.7465, allocations: 325.6 kB / 0.9585 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.7468, allocations: 76.12 kB / 0.9585 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.7469, allocations: 42.92 kB / 0.9586 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.747, allocations: 4 kB / 0.9586 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.747, allocations: 31.94 kB / 0.9586 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.747, allocations: 0 / 0.9586 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005478/0.7476, allocations: 154.8 kB / 0.9588 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.7476, allocations: 51.41 kB / 0.9588 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.972e-05/0.7477, allocations: 124.2 kB / 0.9589 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.7477, allocations: 26.45 kB / 0.9589 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.62e-05/0.7478, allocations: 90.3 kB / 0.959 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.7478, allocations: 9.016 kB / 0.959 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.599e-05/0.7478, allocations: 11 kB / 0.959 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.7479, allocations: 325.1 kB / 0.9594 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.748, allocations: 40.94 kB / 0.9594 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.7482, allocations: 32.47 kB / 0.9594 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.7484, allocations: 80 kB / 0.9595 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.7484, allocations: 5.469 kB / 0.9595 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003039/0.7487, allocations: 109.5 kB / 0.9596 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.7488, allocations: 9.406 kB / 0.9596 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7488, allocations: 0 / 0.9596 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.7488, allocations: 1.156 kB / 0.9596 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.749, allocations: 18.81 kB / 0.9596 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.749, allocations: 1.25 kB / 0.9596 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.692e-05/0.7491, allocations: 17.64 kB / 0.9597 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.7491, allocations: 2.094 kB / 0.9597 GB, free: 3.961 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.885e-05/0.7491, allocations: 120.5 kB / 0.9598 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.966e-05/0.7492, allocations: 6.656 kB / 0.9598 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.963e-05/0.7492, allocations: 10.55 kB / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.7492, allocations: 0 / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.7492, allocations: 1.406 kB / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.7492, allocations: 0 / 0.9598 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.7494, allocations: 191.8 kB / 0.96 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.7494, allocations: 0 / 0.96 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.7495, allocations: 27.08 kB / 0.96 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.7495, allocations: 4.953 kB / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.7495, allocations: 1.031 kB / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.7495, allocations: 1.094 kB / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.7496, allocations: 0 / 0.96 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.7499, allocations: 210 kB / 0.9602 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.7499, allocations: 82.48 kB / 0.9603 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.75, allocations: 0 / 0.9603 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.7501, allocations: 10.89 kB / 0.9603 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.464e-05/0.7501, allocations: 1.344 kB / 0.9603 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.7501, allocations: 13.77 kB / 0.9603 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.227e-05/0.7502, allocations: 92.67 kB / 0.9604 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7502, allocations: 0 / 0.9604 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002735/0.7505, allocations: 25.59 kB / 0.9604 GB, free: 3.203 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.0001919/0.7507, allocations: 120.7 kB / 0.9605 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000325/0.751, allocations: 82.69 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.751, allocations: 0 / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.7512, allocations: 41.19 kB / 0.9607 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.7515, allocations: 15.88 kB / 0.9607 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003944/0.7519, allocations: 189.1 kB / 0.9609 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.752, allocations: 0.6812 MB / 0.9615 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.785e-05/0.7521, allocations: 28.25 kB / 0.9615 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.997e-05/0.7521, allocations: 19.5 kB / 0.9616 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of SimCode: time 4.91e-07/0.7521, allocations: 4 kB / 0.9616 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of Templates: time 0.003299/0.7554, allocations: 0.989 MB / 0.9625 GB, free: 1.629 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.LMTDStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches