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.001658/0.001658, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00174/0.00174, allocations: 196.3 kB / 16.14 MB, free: 6.633 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.544/1.544, allocations: 222.9 MB / 239.8 MB, free: 4.602 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.847/2.847, allocations: 437 MB / 0.71 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 67.89 kB / 0.8686 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7647/0.7666, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003201/0.7699, allocations: 1.641 MB / 1.018 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.7709, allocations: 0.6009 MB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.771, allocations: 0 / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.224e-05/0.7711, allocations: 0 / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-05/0.7711, allocations: 11.92 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002187/0.7714, allocations: 35.91 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.194e-05/0.7715, allocations: 55.77 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.347e-05/0.7715, allocations: 16 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.189e-05/0.7716, allocations: 23.92 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.59e-05/0.7717, allocations: 27.84 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.612e-05/0.7717, allocations: 4 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.7718, allocations: 51.94 kB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.353e-05/0.7719, allocations: 15.92 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.6e-05/0.772, allocations: 27.8 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.7722, allocations: 89.67 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.7722, allocations: 4 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of FrontEnd: time 6.61e-07/0.7722, allocations: 0 / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.856e-06/0.7722, allocations: 0 / 1.019 GB, free: 128 kB / 0.7637 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.0006691/0.7729, allocations: 391.2 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.7729, allocations: 12.03 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009958/0.7739, allocations: 208.5 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.7741, allocations: 193.2 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.762e-05/0.7742, allocations: 38.23 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.128e-05/0.7742, allocations: 11.94 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004527/0.7746, allocations: 169.5 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.7747, allocations: 3.938 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.7747, allocations: 4 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-06/0.7747, allocations: 0 / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006422/0.7753, allocations: 235.7 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008967/0.7762, allocations: 0.5116 MB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006961/0.777, allocations: 238.3 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.7773, allocations: 116.7 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.7773, allocations: 12 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.7774, allocations: 30.56 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.183e-06/0.7774, allocations: 0 / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.001087/0.7785, allocations: 365.2 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/0.7785, allocations: 55.34 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001739/0.7787, allocations: 176.1 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.7787, allocations: 25.7 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.762e-05/0.7788, allocations: 104.1 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.7788, allocations: 3.906 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.7789, allocations: 21.7 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.779, allocations: 322.8 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.7794, allocations: 119.8 kB / 1.022 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.7797, allocations: 107.9 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005679/0.7803, allocations: 196.7 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.7803, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0007587/0.781, allocations: 261.3 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.7811, allocations: 4 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.7811, allocations: 8.031 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.7811, allocations: 0 / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002228/0.7813, allocations: 43.91 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.7813, allocations: 3.938 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/0.7815, allocations: 43.84 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.7816, allocations: 7.922 kB / 1.023 GB, free: 11.92 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 0.0001308/0.7817, allocations: 110.6 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/0.7817, allocations: 11.91 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.54e-05/0.7818, allocations: 11.86 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.7818, allocations: 0 / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.7818, allocations: 7.875 kB / 1.023 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.7818, allocations: 4 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.7821, allocations: 245.6 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.7821, allocations: 4 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.7823, allocations: 43.92 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.7823, allocations: 0 / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.7824, allocations: 7.984 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.7824, allocations: 0 / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7824, allocations: 3.938 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007527/0.7831, allocations: 351.2 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.7832, allocations: 85.02 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.7832, allocations: 4 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.7834, allocations: 39.88 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.317e-05/0.7835, allocations: 11.92 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.7835, allocations: 0 / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001254/0.7836, allocations: 131.2 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.9e-07/0.7836, allocations: 4.031 kB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002637/0.7839, allocations: 20 kB / 1.024 GB, free: 10.76 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.0001769/0.7841, allocations: 99.25 kB / 1.024 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006886/0.7848, allocations: 239.7 kB / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7848, allocations: 0 / 1.024 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003302/0.7851, allocations: 123.9 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.7854, allocations: 4 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007075/0.7861, allocations: 312.7 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.7864, allocations: 0.6926 MB / 1.026 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001071/0.7866, allocations: 23.98 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/0.7866, allocations: 15.42 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of SimCode: time 3.01e-07/0.7866, allocations: 0 / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of Templates: time 0.00393/0.7906, allocations: 1.241 MB / 1.027 GB, free: 7.961 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=400 -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