Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001042/0.001042, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.008731/0.008731, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.609/1.609, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.742/2.742, allocations: 437.8 MB / 0.7121 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005435/0.0005437, allocations: 8 kB / 0.8728 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7527/0.7533, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001683/0.755, allocations: 1.306 MB / 1.024 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009291/0.756, allocations: 0.5815 MB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.09e-05/0.756, allocations: 4 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.705e-05/0.7561, allocations: 0 / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.589e-05/0.7561, allocations: 11.86 kB / 1.025 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.7564, allocations: 43.89 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.862e-05/0.7565, allocations: 43.86 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8e-05/0.7565, allocations: 15.98 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.286e-05/0.7566, allocations: 23.91 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.126e-05/0.7567, allocations: 27.8 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.7567, allocations: 4 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.7569, allocations: 47.95 kB / 1.025 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.469e-05/0.7569, allocations: 19.92 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.66e-05/0.757, allocations: 49.45 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.7571, allocations: 97.69 kB / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.7572, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.332e-06/0.7572, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.226e-06/0.7572, allocations: 0 / 1.025 GB, free: 13.59 MB / 0.7794 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.0004739/0.7576, allocations: 379.2 kB / 1.026 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.7577, allocations: 12.03 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/0.7586, allocations: 208.5 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001479/0.7587, allocations: 195.5 kB / 1.026 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.31e-05/0.7588, allocations: 42 kB / 1.026 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.59e-05/0.7588, allocations: 3.938 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.7593, allocations: 173.5 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.7593, allocations: 0 / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.7593, allocations: 3.938 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.7593, allocations: 4 kB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005862/0.7599, allocations: 243.8 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008236/0.7607, allocations: 0.5193 MB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.7613, allocations: 242.3 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.7616, allocations: 124.8 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.7616, allocations: 0 / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.7617, allocations: 34.56 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.7617, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.000955/0.7626, allocations: 373.2 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.7627, allocations: 55.34 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.7628, allocations: 173.9 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.749e-05/0.7629, allocations: 25.7 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.903e-05/0.7629, allocations: 104.1 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.763, allocations: 7.844 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.763, allocations: 13.72 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.7631, allocations: 318.8 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.7634, allocations: 119.9 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.7637, allocations: 115.9 kB / 1.029 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005181/0.7642, allocations: 200.7 kB / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.7642, allocations: 4 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006185/0.7649, allocations: 261.3 kB / 1.029 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.7649, allocations: 9.719 kB / 1.029 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.7649, allocations: 0 / 1.029 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.017e-06/0.7649, allocations: 0 / 1.029 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.7651, allocations: 55.78 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.7651, allocations: 3.938 kB / 1.029 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.7653, allocations: 39.88 kB / 1.029 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.855e-05/0.7653, allocations: 11.98 kB / 1.029 GB, free: 9.363 MB / 0.7794 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 8.185e-05/0.7654, allocations: 109.8 kB / 1.029 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.7655, allocations: 7.906 kB / 1.029 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.431e-05/0.7655, allocations: 19.8 kB / 1.029 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.7655, allocations: 4 kB / 1.029 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.7655, allocations: 3.938 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.7655, allocations: 0 / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.7658, allocations: 245.6 kB / 1.03 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7658, allocations: 0 / 1.03 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.766, allocations: 39.92 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.766, allocations: 4 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.766, allocations: 7.984 kB / 1.03 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.766, allocations: 0 / 1.03 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.766, allocations: 3.938 kB / 1.03 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000672/0.7667, allocations: 363.1 kB / 1.03 GB, free: 8.5 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.7668, allocations: 81.02 kB / 1.03 GB, free: 8.402 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.7668, allocations: 4 kB / 1.03 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001999/0.767, allocations: 35.97 kB / 1.03 GB, free: 8.363 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.767, allocations: 7.922 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.767, allocations: 4 kB / 1.03 GB, free: 8.352 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000104/0.7671, allocations: 131.2 kB / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7672, allocations: 0 / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002526/0.7674, allocations: 16 kB / 1.03 GB, free: 8.207 MB / 0.7794 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.0001419/0.7676, allocations: 107.2 kB / 1.03 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006194/0.7682, allocations: 243.7 kB / 1.031 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7682, allocations: 0 / 1.031 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002967/0.7685, allocations: 115.9 kB / 1.031 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002316/0.7687, allocations: 11.94 kB / 1.031 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005694/0.7693, allocations: 314.5 kB / 1.031 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.7696, allocations: 0.6965 MB / 1.032 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001003/0.7697, allocations: 24 kB / 1.032 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.869e-05/0.7697, allocations: 23.41 kB / 1.032 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.7697, allocations: 0 / 1.032 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of Templates: time 0.003952/0.7737, allocations: 1.218 MB / 1.033 GB, free: 5.41 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches