Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 87.58 kB / 20.45 MB, free: 4.121 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 161 kB / 23.82 MB, free: 0.7539 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9317/0.9317, allocations: 177.1 MB / 204.2 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.799/1.799, allocations: 377.8 MB / 0.6236 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 3.938 kB / 0.8115 GB, free: 1.68 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.765e-05/2.945e-05, allocations: 8.641 kB / 0.8116 GB, free: 1.672 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00308/0.003109, allocations: 1.644 MB / 0.8132 GB, free: 36 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.004372, allocations: 0.6371 MB / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.282e-05/0.004445, allocations: 0 / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 6.632e-05/0.004511, allocations: 3.938 kB / 0.8138 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.004637, allocations: 8.75 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005817/0.005219, allocations: 69.08 kB / 0.8139 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.00539, allocations: 47.84 kB / 0.8139 GB, free: 15.27 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.005501, allocations: 19.97 kB / 0.8139 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.005674, allocations: 29.86 kB / 0.814 GB, free: 15.22 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.466e-05/0.005749, allocations: 23.89 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.00577, allocations: 4 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.005942, allocations: 59.83 kB / 0.814 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.367e-05/0.006016, allocations: 21.59 kB / 0.8141 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.006063, allocations: 23.92 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002527/0.006315, allocations: 87.7 kB / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.00632, allocations: 0 / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.32e-07/0.006321, allocations: 0 / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.022e-06/0.006327, allocations: 0.9062 kB / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006389/0.006966, allocations: 428.1 kB / 0.8146 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.007012, allocations: 12.56 kB / 0.8146 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007377/0.00775, allocations: 245.9 kB / 0.8148 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.00802, allocations: 157 kB / 0.815 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.008141, allocations: 68.8 kB / 0.815 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.061e-05/0.008161, allocations: 4.375 kB / 0.815 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.008521, allocations: 168.7 kB / 0.8152 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.008531, allocations: 0 / 0.8152 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.00855, allocations: 7.938 kB / 0.8152 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.008561, allocations: 4 kB / 0.8152 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002024/0.008763, allocations: 136.7 kB / 0.8153 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.009547, allocations: 0.4924 MB / 0.8158 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002869/0.009834, allocations: 169.8 kB / 0.816 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.009937, allocations: 71.7 kB / 0.8161 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.537e-05/0.009953, allocations: 3.938 kB / 0.8161 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.009979, allocations: 33.39 kB / 0.8161 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 1.793e-06/0.009981, allocations: 2.781 kB / 0.8161 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0004499/0.01043, allocations: 221.5 kB / 0.8163 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.01047, allocations: 55.39 kB / 0.8164 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.01063, allocations: 203.6 kB / 0.8166 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.01065, allocations: 25.7 kB / 0.8166 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.01073, allocations: 150.8 kB / 0.8167 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.119e-05/0.01075, allocations: 8.453 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.998e-05/0.01082, allocations: 43.33 kB / 0.8168 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.01097, allocations: 0.4967 MB / 0.8173 GB, free: 11.65 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.01109, allocations: 73.19 kB / 0.8173 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.01119, allocations: 72.8 kB / 0.8174 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/0.01139, allocations: 128.9 kB / 0.8175 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.01139, allocations: 0 / 0.8175 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003055/0.0117, allocations: 190.4 kB / 0.8177 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.01172, allocations: 8.656 kB / 0.8177 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.01172, allocations: 4 kB / 0.8177 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.01174, allocations: 0.6562 kB / 0.8177 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.01192, allocations: 62.7 kB / 0.8178 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.01193, allocations: 0 / 0.8178 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.01202, allocations: 27.95 kB / 0.8178 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.83e-05/0.01211, allocations: 74.47 kB / 0.8179 GB, free: 11.02 MB / 0.7761 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 (2): * Single equations (assignments): 2 * 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.0001017/0.01221, allocations: 164.5 kB / 0.818 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.01226, allocations: 11.95 kB / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.56e-05/0.01229, allocations: 3.969 kB / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.01229, allocations: 0 / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.01229, allocations: 4 kB / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.0123, allocations: 0.9375 kB / 0.818 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/0.01255, allocations: 204.4 kB / 0.8182 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01255, allocations: 0 / 0.8182 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.01269, allocations: 60.94 kB / 0.8183 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.01269, allocations: 1.062 kB / 0.8183 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.01271, allocations: 11.98 kB / 0.8183 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01272, allocations: 0 / 0.8183 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01272, allocations: 1.125 kB / 0.8183 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.01309, allocations: 344.7 kB / 0.8186 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.93e-05/0.01311, allocations: 11.94 kB / 0.8187 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.01313, allocations: 1.562 kB / 0.8187 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.01325, allocations: 31.95 kB / 0.8187 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.01329, allocations: 0 / 0.8187 GB, free: 10.13 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.379e-05/0.01336, allocations: 70.53 kB / 0.8188 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.033e-05/0.01345, allocations: 161 kB / 0.8189 GB, free: 9.91 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1e-07/0.01345, allocations: 0 / 0.8189 GB, free: 9.91 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003059/0.01376, allocations: 16 kB / 0.8189 GB, free: 9.895 MB / 0.7761 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 (2): * Single equations (assignments): 2 * 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.0001785/0.01394, allocations: 95.97 kB / 0.819 GB, free: 9.789 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003108/0.01425, allocations: 181.1 kB / 0.8192 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01425, allocations: 0 / 0.8192 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.01438, allocations: 96.41 kB / 0.8193 GB, free: 9.512 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.01467, allocations: 22.28 kB / 0.8193 GB, free: 9.492 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000752/0.01542, allocations: 257.6 kB / 0.8195 GB, free: 9.211 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.724e-05/0.01547, allocations: 59.34 kB / 0.8196 GB, free: 9.133 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0002504/0.01572, allocations: 195.5 kB / 0.8198 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-05/0.01581, allocations: 36.45 kB / 0.8198 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of SimCode: time 8.72e-07/0.01581, allocations: 0 / 0.8198 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of Templates: time 0.004578/0.02039, allocations: 1.518 MB / 0.8213 GB, free: 7.406 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.973009983077645]