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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00154/0.00154, allocations: 109.7 kB / 16.37 MB, free: 6.477 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.001664/0.001664, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.485/2.485, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 77.25 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.26, allocations: 151.6 MB / 1.019 GB, free: 9.824 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002661/0.2627, allocations: 1.582 MB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000953/0.2637, allocations: 0.5906 MB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.319e-05/0.2638, allocations: 4 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.113e-05/0.2638, allocations: 7.875 kB / 1.021 GB, free: 7.613 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.308e-05/0.2639, allocations: 7.938 kB / 1.021 GB, free: 7.605 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002771/0.2642, allocations: 55.81 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.802e-05/0.2643, allocations: 43.91 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.294e-05/0.2644, allocations: 19.97 kB / 1.021 GB, free: 7.488 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 8.817e-05/0.2645, allocations: 23.81 kB / 1.021 GB, free: 7.465 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.2646, allocations: 23.91 kB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.2646, allocations: 8 kB / 1.021 GB, free: 7.434 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.2647, allocations: 51.95 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.047e-05/0.2648, allocations: 27.91 kB / 1.021 GB, free: 7.355 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.951e-05/0.2648, allocations: 23.8 kB / 1.021 GB, free: 7.332 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.265, allocations: 99.62 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.265, allocations: 0 / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.222e-06/0.265, allocations: 0 / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.265, allocations: 0 / 1.021 GB, free: 7.234 MB / 0.795 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.0004771/0.2655, allocations: 395.1 kB / 1.022 GB, free: 6.801 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.2656, allocations: 12.92 kB / 1.022 GB, free: 6.789 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009114/0.2665, allocations: 204.5 kB / 1.022 GB, free: 6.59 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.2666, allocations: 194.2 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.2667, allocations: 38.25 kB / 1.022 GB, free: 6.32 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.2667, allocations: 11.92 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.2671, allocations: 165.5 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.2672, allocations: 0 / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.2672, allocations: 4 kB / 1.022 GB, free: 6.137 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.2672, allocations: 8 kB / 1.022 GB, free: 6.129 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000587/0.2678, allocations: 231.7 kB / 1.023 GB, free: 5.902 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008328/0.2686, allocations: 0.5115 MB / 1.023 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.2692, allocations: 242.3 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.2695, allocations: 120.8 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.2695, allocations: 0 / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.844e-05/0.2695, allocations: 30.56 kB / 1.023 GB, free: 4.934 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.2696, allocations: 3.938 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.000971/0.2705, allocations: 373.3 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.2706, allocations: 55.41 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.2707, allocations: 169 kB / 1.024 GB, free: 4.32 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.2707, allocations: 25.7 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.081e-05/0.2708, allocations: 104.1 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.2708, allocations: 7.906 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-05/0.2709, allocations: 21.69 kB / 1.024 GB, free: 4.148 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.271, allocations: 326.8 kB / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2713, allocations: 107.9 kB / 1.025 GB, free: 3.715 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.2716, allocations: 119.9 kB / 1.025 GB, free: 3.598 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005026/0.2721, allocations: 200.7 kB / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2721, allocations: 0 / 1.025 GB, free: 3.398 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005978/0.2727, allocations: 253.4 kB / 1.025 GB, free: 3.145 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.2727, allocations: 4 kB / 1.025 GB, free: 3.141 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.2727, allocations: 4 kB / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2727, allocations: 0 / 1.025 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.273, allocations: 51.94 kB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.273, allocations: 7.875 kB / 1.025 GB, free: 3.078 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001635/0.2731, allocations: 35.84 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.794e-05/0.2732, allocations: 7.984 kB / 1.025 GB, free: 3.035 MB / 0.795 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.19e-05/0.2733, allocations: 113.8 kB / 1.025 GB, free: 2.914 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.081e-05/0.2733, allocations: 7.906 kB / 1.025 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.2733, allocations: 19.86 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2733, allocations: 0 / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2733, allocations: 3.938 kB / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.2734, allocations: 0 / 1.025 GB, free: 2.887 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.2736, allocations: 245.6 kB / 1.026 GB, free: 2.598 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2736, allocations: 0 / 1.026 GB, free: 2.598 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.2738, allocations: 39.92 kB / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2738, allocations: 0 / 1.026 GB, free: 2.559 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2738, allocations: 11.98 kB / 1.026 GB, free: 2.547 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.2738, allocations: 0 / 1.026 GB, free: 2.547 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2738, allocations: 3.938 kB / 1.026 GB, free: 2.543 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006434/0.2745, allocations: 351.2 kB / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.2745, allocations: 92.89 kB / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.2746, allocations: 0 / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2748, allocations: 39.95 kB / 1.026 GB, free: 2.035 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.945e-05/0.2748, allocations: 7.875 kB / 1.026 GB, free: 2.027 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.2748, allocations: 4 kB / 1.026 GB, free: 2.023 MB / 0.795 GB Notification: Performance of sorting global known variables: time 8.968e-05/0.2749, allocations: 129.4 kB / 1.026 GB, free: 1.898 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2749, allocations: 0 / 1.026 GB, free: 1.898 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002561/0.2752, allocations: 19.94 kB / 1.026 GB, free: 1.879 MB / 0.795 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.0001385/0.2753, allocations: 107.3 kB / 1.026 GB, free: 1.762 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0006201/0.276, allocations: 231.7 kB / 1.027 GB, free: 1.535 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.276, allocations: 0 / 1.027 GB, free: 1.535 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.2763, allocations: 123.9 kB / 1.027 GB, free: 1.414 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002308/0.2765, allocations: 4 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005997/0.2771, allocations: 287.2 kB / 1.027 GB, free: 1.102 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.2774, allocations: 0.6961 MB / 1.028 GB, free: 388 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.169e-05/0.2775, allocations: 31.98 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.2775, allocations: 15.42 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.2775, allocations: 0 / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of Templates: time 0.003532/0.2811, allocations: 1.288 MB / 1.029 GB, free: 15.04 MB / 0.8106 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 -s gbode -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