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.001012/0.001012, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001209/0.001209, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.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.564/2.564, allocations: 437.7 MB / 0.7117 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003302, allocations: 12 kB / 0.8722 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5711/0.5715, allocations: 153.8 MB / 1.022 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001571/0.5731, allocations: 1.291 MB / 1.024 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000828/0.5739, allocations: 0.5546 MB / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.296e-05/0.574, allocations: 0 / 1.024 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.11e-05/0.574, allocations: 3.938 kB / 1.024 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.844e-05/0.5741, allocations: 11.94 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.5743, allocations: 43.88 kB / 1.024 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.074e-05/0.5744, allocations: 39.86 kB / 1.024 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.632e-05/0.5745, allocations: 11.98 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.175e-05/0.5746, allocations: 23.91 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.306e-05/0.5747, allocations: 19.92 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.5747, allocations: 0 / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.5748, allocations: 51.89 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.297e-05/0.5749, allocations: 15.98 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.5749, allocations: 37.58 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.575, allocations: 63.89 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.575, allocations: 0 / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5751, allocations: 0 / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.056e-06/0.5751, allocations: 0 / 1.025 GB, free: 13.9 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.0004753/0.5755, allocations: 389 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.5756, allocations: 12.03 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000825/0.5764, allocations: 211.5 kB / 1.025 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.5766, allocations: 188 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.197e-05/0.5766, allocations: 33.69 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.5767, allocations: 11.95 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.5771, allocations: 165.5 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.5771, allocations: 3.984 kB / 1.025 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.5771, allocations: 12 kB / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.5771, allocations: 0 / 1.026 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005841/0.5777, allocations: 243.7 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008057/0.5785, allocations: 0.5076 MB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005459/0.5791, allocations: 246.3 kB / 1.026 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002734/0.5794, allocations: 116.8 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.5794, allocations: 0 / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.5794, allocations: 38.56 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.5794, allocations: 0 / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0009256/0.5804, allocations: 377.2 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.5804, allocations: 51.41 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.5806, allocations: 171.8 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.5806, allocations: 25.7 kB / 1.027 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.639e-05/0.5806, allocations: 108 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.5807, allocations: 8.016 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.226e-06/0.5807, allocations: 3.938 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.298e-05/0.5808, allocations: 318.8 kB / 1.028 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002778/0.5811, allocations: 119.9 kB / 1.028 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002732/0.5813, allocations: 111.9 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002522/0.5816, allocations: 107.9 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5816, allocations: 0 / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005896/0.5822, allocations: 261.3 kB / 1.028 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5822, allocations: 4 kB / 1.028 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.5822, allocations: 0 / 1.028 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.5823, allocations: 0 / 1.028 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.5825, allocations: 51.94 kB / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.5825, allocations: 0 / 1.028 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.5826, allocations: 39.84 kB / 1.028 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.5827, allocations: 3.984 kB / 1.028 GB, free: 9.809 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/0.5828, allocations: 130.4 kB / 1.028 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.367e-05/0.5828, allocations: 7.906 kB / 1.028 GB, free: 9.664 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.361e-05/0.5828, allocations: 15.86 kB / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5828, allocations: 0 / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.5829, allocations: 0 / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.5829, allocations: 0 / 1.028 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002537/0.5831, allocations: 249.5 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.5831, allocations: 4 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.5833, allocations: 47.92 kB / 1.029 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.5833, allocations: 0 / 1.029 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.5833, allocations: 7.984 kB / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.5834, allocations: 0 / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5834, allocations: 0 / 1.029 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006452/0.584, allocations: 367.1 kB / 1.029 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.165e-05/0.5841, allocations: 85.02 kB / 1.029 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.273e-05/0.5841, allocations: 0 / 1.029 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.5843, allocations: 39.92 kB / 1.029 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.5843, allocations: 0 / 1.029 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.5843, allocations: 0 / 1.029 GB, free: 8.785 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.673e-05/0.5844, allocations: 130.5 kB / 1.029 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.673e-06/0.5844, allocations: 4.031 kB / 1.029 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002617/0.5847, allocations: 19.94 kB / 1.029 GB, free: 8.637 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001489/0.5849, allocations: 103.2 kB / 1.029 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006145/0.5855, allocations: 239.7 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5855, allocations: 7.938 kB / 1.03 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.00029/0.5858, allocations: 127.9 kB / 1.03 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002382/0.5861, allocations: 5.672 kB / 1.03 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005686/0.5866, allocations: 302.5 kB / 1.03 GB, free: 7.836 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.5869, allocations: 0.6926 MB / 1.031 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001107/0.587, allocations: 27.89 kB / 1.031 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.587, allocations: 15.42 kB / 1.031 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.587, allocations: 0 / 1.031 GB, free: 7.074 MB / 0.7794 GB Notification: Performance of Templates: time 0.003414/0.5905, allocations: 1.216 MB / 1.032 GB, free: 5.859 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