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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006887/0.006887, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001336/0.001337, allocations: 191.4 kB / 16.67 MB, free: 5.887 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.644/2.644, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.91 kB / 1.054 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8634/0.8648, allocations: 157.4 MB / 1.208 GB, free: 13.58 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002593/0.8674, allocations: 1.585 MB / 1.209 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.8685, allocations: 0.5806 MB / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.493e-05/0.8686, allocations: 0 / 1.21 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.241e-05/0.8687, allocations: 7.922 kB / 1.21 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.662e-05/0.8688, allocations: 15.86 kB / 1.21 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003444/0.8691, allocations: 47.89 kB / 1.21 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.794e-05/0.8692, allocations: 55.77 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.8693, allocations: 16 kB / 1.21 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.8694, allocations: 23.92 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.517e-05/0.8695, allocations: 23.84 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.798e-05/0.8696, allocations: 7.938 kB / 1.21 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.8697, allocations: 51.95 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.065e-05/0.8698, allocations: 15.97 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.193e-05/0.8698, allocations: 27.81 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.87, allocations: 99.69 kB / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.87, allocations: 0 / 1.21 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.433e-06/0.87, allocations: 4 kB / 1.21 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.87, allocations: 0 / 1.21 GB, free: 11.01 MB / 0.9356 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.0005826/0.8706, allocations: 396.7 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.8707, allocations: 8.031 kB / 1.211 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.8715, allocations: 208.5 kB / 1.211 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.8717, allocations: 196.7 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.8718, allocations: 26.27 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.8718, allocations: 7.938 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004152/0.8722, allocations: 181.5 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.8722, allocations: 3.938 kB / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.8723, allocations: 3.938 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.8723, allocations: 0 / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005725/0.8728, allocations: 239.8 kB / 1.211 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008235/0.8737, allocations: 0.5038 MB / 1.212 GB, free: 9.121 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005767/0.8743, allocations: 238.3 kB / 1.212 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002973/0.8746, allocations: 120.8 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.8746, allocations: 0 / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.8746, allocations: 34.56 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 3.877e-06/0.8746, allocations: 3.984 kB / 1.212 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0009884/0.8756, allocations: 369.1 kB / 1.213 GB, free: 8.344 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.8757, allocations: 55.41 kB / 1.213 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.8758, allocations: 170.2 kB / 1.213 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.8759, allocations: 25.83 kB / 1.213 GB, free: 8.07 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.072e-05/0.8759, allocations: 108.1 kB / 1.213 GB, free: 7.961 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.8759, allocations: 11.89 kB / 1.213 GB, free: 7.949 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.876, allocations: 21.7 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.8761, allocations: 318.8 kB / 1.213 GB, free: 7.602 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.8764, allocations: 115.9 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002831/0.8767, allocations: 111.9 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005389/0.8773, allocations: 204.6 kB / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8773, allocations: 0 / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006211/0.8779, allocations: 257.3 kB / 1.214 GB, free: 6.918 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.8779, allocations: 4 kB / 1.214 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.8779, allocations: 3.984 kB / 1.214 GB, free: 6.91 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.878, allocations: 4.031 kB / 1.214 GB, free: 6.906 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.8782, allocations: 39.92 kB / 1.214 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.8782, allocations: 11.92 kB / 1.214 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.8784, allocations: 31.94 kB / 1.214 GB, free: 6.824 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.8784, allocations: 0 / 1.214 GB, free: 6.824 MB / 0.9356 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 9.263e-05/0.8785, allocations: 129.1 kB / 1.214 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.8785, allocations: 7.906 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.378e-05/0.8785, allocations: 7.875 kB / 1.214 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.8786, allocations: 3.984 kB / 1.214 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.8786, allocations: 7.875 kB / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.8786, allocations: 0 / 1.214 GB, free: 6.66 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.8789, allocations: 245.6 kB / 1.214 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.8789, allocations: 7.922 kB / 1.214 GB, free: 6.363 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.8791, allocations: 47.92 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.8791, allocations: 0 / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.8791, allocations: 3.984 kB / 1.215 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.8791, allocations: 0 / 1.215 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.8791, allocations: 7.938 kB / 1.215 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006734/0.8798, allocations: 351.1 kB / 1.215 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.8798, allocations: 85.02 kB / 1.215 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.8799, allocations: 8.031 kB / 1.215 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002016/0.8801, allocations: 35.94 kB / 1.215 GB, free: 5.801 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.8801, allocations: 3.938 kB / 1.215 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.8801, allocations: 7.984 kB / 1.215 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.194e-05/0.8802, allocations: 127.2 kB / 1.215 GB, free: 5.664 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8802, allocations: 4 kB / 1.215 GB, free: 5.66 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002529/0.8805, allocations: 12 kB / 1.215 GB, free: 5.648 MB / 0.9356 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.0001467/0.8807, allocations: 107.2 kB / 1.215 GB, free: 5.535 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006618/0.8813, allocations: 235.7 kB / 1.215 GB, free: 5.305 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.8813, allocations: 4 kB / 1.215 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.8817, allocations: 111.9 kB / 1.216 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.8819, allocations: 9.844 kB / 1.216 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006338/0.8825, allocations: 294.8 kB / 1.216 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000256/0.8828, allocations: 0.6963 MB / 1.217 GB, free: 4.148 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.394e-05/0.8829, allocations: 20 kB / 1.217 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.748e-05/0.883, allocations: 19.41 kB / 1.217 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.883, allocations: 0 / 1.217 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of Templates: time 0.003514/0.8865, allocations: 1.304 MB / 1.218 GB, free: 2.805 MB / 0.9356 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/jenkins/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