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.001882/0.001882, allocations: 104.2 kB / 16.41 MB, free: 6.52 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.002063/0.002063, allocations: 187 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.157/2.157, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 3.498/3.498, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002619/0.00262, allocations: 68.12 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345/1.347, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.005232/1.353, allocations: 1.589 MB / 1.169 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001906/1.354, allocations: 0.5814 MB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.926e-05/1.355, allocations: 0 / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 8.342e-05/1.355, allocations: 7.938 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001783/1.355, allocations: 19.84 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005507/1.356, allocations: 51.83 kB / 1.17 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001792/1.356, allocations: 47.84 kB / 1.17 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/1.356, allocations: 11.98 kB / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000173/1.356, allocations: 23.92 kB / 1.17 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/1.356, allocations: 27.86 kB / 1.17 GB, free: 1.488 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.717e-05/1.356, allocations: 4 kB / 1.17 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002433/1.357, allocations: 55.88 kB / 1.17 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.782e-05/1.357, allocations: 19.92 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.207e-05/1.357, allocations: 31.8 kB / 1.17 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003496/1.357, allocations: 92.19 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/1.357, allocations: 4 kB / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.666e-06/1.357, allocations: 0 / 1.17 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.328e-06/1.357, allocations: 0 / 1.17 GB, free: 1.289 MB / 0.8887 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.001019/1.358, allocations: 398.9 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 7.402e-05/1.358, allocations: 8.922 kB / 1.17 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001588/1.36, allocations: 212.5 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/1.36, allocations: 194.5 kB / 1.171 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/1.36, allocations: 38.19 kB / 1.171 GB, free: 376 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.502e-05/1.36, allocations: 7.938 kB / 1.171 GB, free: 368 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007769/1.361, allocations: 169.5 kB / 1.171 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/1.361, allocations: 0 / 1.171 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/1.361, allocations: 4 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/1.361, allocations: 0 / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/1.362, allocations: 239.7 kB / 1.171 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/1.364, allocations: 0.5038 MB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009892/1.365, allocations: 238.3 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005169/1.365, allocations: 120.8 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/1.365, allocations: 3.938 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/1.366, allocations: 38.55 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 2.284e-06/1.366, allocations: 0 / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.001689/1.367, allocations: 369.3 kB / 1.172 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.367, allocations: 55.41 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002573/1.368, allocations: 168.4 kB / 1.172 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/1.368, allocations: 29.7 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.919e-05/1.368, allocations: 96.14 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.846e-05/1.368, allocations: 7.938 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/1.368, allocations: 29.73 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002329/1.368, allocations: 318.8 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/1.369, allocations: 111.9 kB / 1.173 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005029/1.369, allocations: 115.9 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009218/1.37, allocations: 196.7 kB / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/1.37, allocations: 0 / 1.173 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.001118/1.371, allocations: 253.3 kB / 1.174 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/1.371, allocations: 11.98 kB / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/1.371, allocations: 0 / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/1.371, allocations: 0 / 1.174 GB, free: 13.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003562/1.372, allocations: 47.89 kB / 1.174 GB, free: 13.15 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/1.372, allocations: 3.938 kB / 1.174 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002825/1.372, allocations: 39.94 kB / 1.174 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/1.372, allocations: 3.984 kB / 1.174 GB, free: 13.1 MB / 0.9044 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.0001589/1.372, allocations: 117.8 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.641e-05/1.372, allocations: 7.953 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/1.372, allocations: 15.88 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/1.372, allocations: 0 / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/1.372, allocations: 3.938 kB / 1.174 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/1.372, allocations: 3.984 kB / 1.174 GB, free: 12.94 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004534/1.373, allocations: 253.5 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/1.373, allocations: 0 / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003143/1.373, allocations: 47.91 kB / 1.174 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/1.373, allocations: 4 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/1.373, allocations: 4 kB / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.373, allocations: 0 / 1.174 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/1.373, allocations: 7.922 kB / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/1.375, allocations: 351.2 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 8.015e-05/1.375, allocations: 89.05 kB / 1.175 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.061e-05/1.375, allocations: 0 / 1.175 GB, free: 12.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003598/1.375, allocations: 39.97 kB / 1.175 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.381e-05/1.375, allocations: 3.938 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/1.375, allocations: 7.984 kB / 1.175 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002002/1.375, allocations: 130 kB / 1.175 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3e-07/1.375, allocations: 0 / 1.175 GB, free: 11.94 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000524/1.376, allocations: 16 kB / 1.175 GB, free: 11.93 MB / 0.9044 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.0002695/1.376, allocations: 107.2 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001125/1.377, allocations: 239.7 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.377, allocations: 4.062 kB / 1.175 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005135/1.378, allocations: 115.9 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004639/1.378, allocations: 14.75 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001161/1.38, allocations: 316.6 kB / 1.175 GB, free: 11.11 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/1.38, allocations: 0.6963 MB / 1.176 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/1.38, allocations: 19.41 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of SimCode: time 5.71e-07/1.38, allocations: 3.938 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of Templates: time 0.006061/1.386, allocations: 1.674 MB / 1.178 GB, free: 8.684 MB / 0.9044 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/jenkins1/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