Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.QStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|qSta.qNor|fra.y|lmtd.y",fileNamePrefix="Buildings_9_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_9_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.00134/0.00134, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001614/0.001614, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.505/1.505, allocations: 222.9 MB / 239.8 MB, free: 4.531 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.409/2.409, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.00122, allocations: 67.89 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.6547, allocations: 140.4 MB / 0.9489 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002594/0.6573, allocations: 1.634 MB / 0.9505 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008964/0.6582, allocations: 0.5972 MB / 0.9511 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.299e-05/0.6583, allocations: 1.188 kB / 0.9511 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.486e-05/0.6584, allocations: 0 / 0.9511 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.008e-05/0.6584, allocations: 14.62 kB / 0.9511 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.6587, allocations: 36.41 kB / 0.9512 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.953e-05/0.6588, allocations: 47.91 kB / 0.9512 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.217e-05/0.6589, allocations: 26.34 kB / 0.9512 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.541e-05/0.659, allocations: 22.08 kB / 0.9513 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.909e-05/0.6591, allocations: 22.58 kB / 0.9513 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.686e-05/0.6591, allocations: 6.422 kB / 0.9513 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.6592, allocations: 47.52 kB / 0.9513 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.6593, allocations: 19.36 kB / 0.9513 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.6593, allocations: 30.05 kB / 0.9514 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.6595, allocations: 91.06 kB / 0.9515 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6595, allocations: 7.938 kB / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.6595, allocations: 0 / 0.9515 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.6595, allocations: 3.938 kB / 0.9515 GB, free: 7.098 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005311/0.6601, allocations: 392.2 kB / 0.9518 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.6601, allocations: 8.656 kB / 0.9519 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009088/0.661, allocations: 207.8 kB / 0.952 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.6612, allocations: 196.9 kB / 0.9522 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.754e-05/0.6612, allocations: 32.97 kB / 0.9523 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.6612, allocations: 6.688 kB / 0.9523 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.6617, allocations: 172 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.6617, allocations: 1.25 kB / 0.9524 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.6617, allocations: 3.938 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.6617, allocations: 1.531 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000553/0.6623, allocations: 245.6 kB / 0.9527 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007564/0.663, allocations: 0.5014 MB / 0.9532 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005468/0.6636, allocations: 233.8 kB / 0.9534 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.6639, allocations: 119.7 kB / 0.9535 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.519e-05/0.6639, allocations: 7.938 kB / 0.9535 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.6639, allocations: 36.02 kB / 0.9535 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.6639, allocations: 0 / 0.9535 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009394/0.6649, allocations: 361.8 kB / 0.9539 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.6649, allocations: 52.91 kB / 0.9539 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.6651, allocations: 181.7 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.6651, allocations: 25.7 kB / 0.9541 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.6651, allocations: 100.3 kB / 0.9542 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.6651, allocations: 8.953 kB / 0.9542 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.914e-05/0.6652, allocations: 22.58 kB / 0.9543 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.6652, allocations: 322 kB / 0.9546 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/0.6655, allocations: 114.2 kB / 0.9547 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.6658, allocations: 114.3 kB / 0.9548 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.6663, allocations: 200.5 kB / 0.955 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6663, allocations: 0 / 0.955 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005703/0.6669, allocations: 259.6 kB / 0.9552 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.6669, allocations: 11.52 kB / 0.9552 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.6669, allocations: 0 / 0.9552 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.6669, allocations: 0 / 0.9552 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.6671, allocations: 41.52 kB / 0.9553 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.6672, allocations: 3.938 kB / 0.9553 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.6673, allocations: 38.06 kB / 0.9553 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.6673, allocations: 5.234 kB / 0.9553 GB, free: 4.266 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 (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 6.723e-05/0.6674, allocations: 123.7 kB / 0.9554 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.6675, allocations: 7.5 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.17e-05/0.6675, allocations: 7.906 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.6675, allocations: 0 / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6675, allocations: 9.062 kB / 0.9555 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.6675, allocations: 3.938 kB / 0.9555 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.6677, allocations: 251.4 kB / 0.9557 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.6677, allocations: 4 kB / 0.9557 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.6679, allocations: 44.69 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.6679, allocations: 1.156 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.6679, allocations: 1.094 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.6679, allocations: 1.25 kB / 0.9558 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.668, allocations: 3.938 kB / 0.9558 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006105/0.6686, allocations: 355.8 kB / 0.9561 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.494e-05/0.6686, allocations: 92.72 kB / 0.9562 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.6686, allocations: 0 / 0.9562 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.6688, allocations: 32 kB / 0.9562 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.6689, allocations: 9.688 kB / 0.9562 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.6689, allocations: 9.75 kB / 0.9562 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.157e-05/0.669, allocations: 129.2 kB / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.669, allocations: 0 / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002529/0.6692, allocations: 15.44 kB / 0.9564 GB, free: 3.383 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 (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.0001103/0.6693, allocations: 103.1 kB / 0.9565 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005679/0.6699, allocations: 231.9 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.6699, allocations: 1.375 kB / 0.9567 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.6702, allocations: 121.6 kB / 0.9568 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.6704, allocations: 5.156 kB / 0.9568 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005424/0.671, allocations: 309.4 kB / 0.9571 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.6711, allocations: 0.6949 MB / 0.9578 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001028/0.6712, allocations: 26.47 kB / 0.9578 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.45e-05/0.6713, allocations: 14.92 kB / 0.9578 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of SimCode: time 3.9e-07/0.6713, allocations: 0 / 0.9578 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of Templates: time 0.003413/0.6747, allocations: 1.234 MB / 0.959 GB, free: 1.57 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches