Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006558/0.006558, allocations: 104.9 kB / 15.74 MB, free: 6.066 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.0017/0.0017, allocations: 194.5 kB / 16.68 MB, free: 5.977 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.861/2.861, allocations: 469.8 MB / 0.7425 GB, free: 7.426 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 63.91 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3511, allocations: 159.1 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00335/0.3545, allocations: 1.58 MB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.3556, allocations: 0.5923 MB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.183e-05/0.3556, allocations: 7.875 kB / 1.223 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 5.359e-05/0.3557, allocations: 3.938 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 9.37e-05/0.3558, allocations: 7.938 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.3561, allocations: 51.81 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001087/0.3562, allocations: 47.84 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.3563, allocations: 15.97 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.3564, allocations: 23.94 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.422e-05/0.3565, allocations: 27.84 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.3565, allocations: 0 / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001465/0.3567, allocations: 55.95 kB / 1.223 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.3567, allocations: 23.84 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.113e-05/0.3568, allocations: 35.8 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.357, allocations: 95.62 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.357, allocations: 0 / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.483e-06/0.357, allocations: 3.938 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.61e-06/0.357, allocations: 0 / 1.223 GB, free: 11.28 MB / 0.9825 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.0005795/0.3576, allocations: 391 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3576, allocations: 8.031 kB / 1.224 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009619/0.3586, allocations: 212.5 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001691/0.3587, allocations: 193.9 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.228e-05/0.3588, allocations: 34.25 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.3588, allocations: 3.938 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004449/0.3593, allocations: 177.5 kB / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3593, allocations: 0 / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.3593, allocations: 0 / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3593, allocations: 0 / 1.224 GB, free: 10.19 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006164/0.3599, allocations: 235.8 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009329/0.3608, allocations: 0.5194 MB / 1.225 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.3614, allocations: 238.3 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.3618, allocations: 124.8 kB / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.3618, allocations: 0 / 1.225 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.3618, allocations: 34.56 kB / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.3618, allocations: 0 / 1.225 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.001103/0.3629, allocations: 365.3 kB / 1.226 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.3629, allocations: 63.47 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.3631, allocations: 167.9 kB / 1.226 GB, free: 8.367 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.3631, allocations: 25.7 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/0.3632, allocations: 100.1 kB / 1.226 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.3632, allocations: 3.953 kB / 1.226 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.3633, allocations: 29.69 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3634, allocations: 314.8 kB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.3637, allocations: 115.9 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002851/0.364, allocations: 115.8 kB / 1.226 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/0.3645, allocations: 204.7 kB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3645, allocations: 4 kB / 1.227 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006237/0.3651, allocations: 257.3 kB / 1.227 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3651, allocations: 8 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3651, allocations: 0 / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.3651, allocations: 0 / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.3654, allocations: 43.91 kB / 1.227 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3654, allocations: 3.938 kB / 1.227 GB, free: 7.133 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.3655, allocations: 39.97 kB / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.3656, allocations: 7.969 kB / 1.227 GB, free: 7.086 MB / 0.9825 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.0001/0.3657, allocations: 118.5 kB / 1.227 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/0.3657, allocations: 11.91 kB / 1.227 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.779e-05/0.3657, allocations: 11.86 kB / 1.227 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.3657, allocations: 0 / 1.227 GB, free: 6.938 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3657, allocations: 3.938 kB / 1.227 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.3657, allocations: 4 kB / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.366, allocations: 245.6 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.366, allocations: 0 / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.3662, allocations: 43.92 kB / 1.227 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3662, allocations: 0 / 1.227 GB, free: 6.598 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3662, allocations: 3.984 kB / 1.227 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3663, allocations: 0 / 1.227 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3663, allocations: 3.938 kB / 1.227 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.3669, allocations: 355.2 kB / 1.228 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/0.367, allocations: 85.06 kB / 1.228 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.367, allocations: 4 kB / 1.228 GB, free: 6.121 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.3672, allocations: 39.92 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.3672, allocations: 3.938 kB / 1.228 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.3673, allocations: 3.984 kB / 1.228 GB, free: 6.074 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.299e-05/0.3674, allocations: 132.1 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3674, allocations: 0 / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002621/0.3676, allocations: 19.94 kB / 1.228 GB, free: 5.93 MB / 0.9825 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.0001889/0.3678, allocations: 111.3 kB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006308/0.3684, allocations: 231.8 kB / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3684, allocations: 0 / 1.228 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.3687, allocations: 127.9 kB / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002444/0.369, allocations: 15.62 kB / 1.228 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007068/0.3697, allocations: 286.9 kB / 1.229 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.37, allocations: 0.6924 MB / 1.229 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.059e-05/0.3701, allocations: 31.97 kB / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.989e-05/0.3702, allocations: 19.36 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.3702, allocations: 0 / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of Templates: time 0.003666/0.3738, allocations: 1.284 MB / 1.231 GB, free: 3.086 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches