Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001512/0.001512, allocations: 100.1 kB / 15.88 MB, free: 12 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.001313/0.001313, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.417/1.417, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.825/2.825, allocations: 461.8 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.5 kB / 0.8991 GB, free: 37.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.346, allocations: 157.4 MB / 1.053 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003522/0.3496, allocations: 1.635 MB / 1.054 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3508, allocations: 0.6039 MB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.553e-05/0.3509, allocations: 0 / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.551e-05/0.351, allocations: 3.984 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001296/0.3512, allocations: 7.938 kB / 1.055 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.3515, allocations: 51.83 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.3516, allocations: 47.84 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.3517, allocations: 12 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.3519, allocations: 23.91 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.352, allocations: 27.86 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.859e-05/0.352, allocations: 0 / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.3522, allocations: 47.95 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.958e-05/0.3522, allocations: 27.84 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.034e-05/0.3523, allocations: 27.8 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.3525, allocations: 64.17 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3525, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3525, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.3525, allocations: 0 / 1.055 GB, free: 5.668 MB / 0.8106 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.000675/0.3532, allocations: 395.2 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3532, allocations: 8.031 kB / 1.056 GB, free: 5.227 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000949/0.3542, allocations: 212.5 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.3544, allocations: 180.7 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.513e-05/0.3545, allocations: 34.25 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.3545, allocations: 11.94 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.355, allocations: 169.5 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.355, allocations: 0 / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.355, allocations: 4 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.355, allocations: 0 / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006038/0.3556, allocations: 243.7 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009422/0.3566, allocations: 0.5077 MB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006085/0.3572, allocations: 246.3 kB / 1.057 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.3575, allocations: 116.8 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3575, allocations: 4 kB / 1.057 GB, free: 3.41 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.3576, allocations: 30.56 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.3576, allocations: 0 / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.001041/0.3586, allocations: 361.2 kB / 1.058 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.3587, allocations: 55.53 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.3589, allocations: 176.1 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.3589, allocations: 25.7 kB / 1.058 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.149e-05/0.359, allocations: 104.1 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.359, allocations: 3.906 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.632e-05/0.3591, allocations: 17.7 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3592, allocations: 326.8 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.3595, allocations: 115.9 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.3598, allocations: 111.9 kB / 1.059 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005293/0.3603, allocations: 196.7 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3603, allocations: 0 / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006306/0.361, allocations: 261.3 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.361, allocations: 12.03 kB / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.361, allocations: 0 / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.3611, allocations: 0 / 1.059 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.3613, allocations: 39.92 kB / 1.059 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.3613, allocations: 7.875 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.3615, allocations: 47.83 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.3615, allocations: 0 / 1.059 GB, free: 1.488 MB / 0.8106 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.0001121/0.3616, allocations: 117.8 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.3617, allocations: 11.89 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.3617, allocations: 11.88 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3617, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3617, allocations: 11.94 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.3617, allocations: 0 / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.362, allocations: 245.6 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.362, allocations: 0 / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.3622, allocations: 47.84 kB / 1.06 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.3622, allocations: 4 kB / 1.06 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.3623, allocations: 3.984 kB / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3623, allocations: 0 / 1.06 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3623, allocations: 3.938 kB / 1.06 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006953/0.363, allocations: 351.2 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-05/0.3631, allocations: 96.88 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.66e-05/0.3631, allocations: 0 / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001857/0.3633, allocations: 31.94 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.3633, allocations: 7.938 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.3633, allocations: 3.984 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001013/0.3635, allocations: 128.8 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3635, allocations: 0 / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002647/0.3637, allocations: 23.98 kB / 1.06 GB, free: 324 kB / 0.8106 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.0001755/0.3639, allocations: 103.2 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006345/0.3646, allocations: 231.7 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3646, allocations: 0 / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.3649, allocations: 123.9 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.3651, allocations: 0 / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007058/0.3659, allocations: 328.1 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.3661, allocations: 0.7004 MB / 1.062 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.946e-05/0.3662, allocations: 23.41 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of SimCode: time 4.71e-07/0.3662, allocations: 4 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.003603/0.3698, allocations: 1.66 MB / 1.063 GB, free: 13.09 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches