Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009369/0.009369, allocations: 102.1 kB / 15.73 MB, free: 6.008 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.001894/0.001893, allocations: 192.2 kB / 16.67 MB, free: 5.949 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 66.5 kB / 0.9509 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2813, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003056/0.2844, allocations: 1.572 MB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.2856, allocations: 0.5905 MB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.99e-05/0.2857, allocations: 0 / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.098e-05/0.2858, allocations: 7.922 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.187e-05/0.2859, allocations: 15.86 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.2862, allocations: 51.83 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001107/0.2864, allocations: 51.89 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2865, allocations: 11.98 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.2866, allocations: 31.86 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.768e-05/0.2867, allocations: 27.83 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.2867, allocations: 4 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.2869, allocations: 51.95 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.058e-05/0.2869, allocations: 15.92 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.593e-05/0.287, allocations: 31.81 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.2872, allocations: 103.6 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2872, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.795e-06/0.2872, allocations: 0 / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2872, allocations: 3.938 kB / 1.09 GB, free: 14.89 MB / 0.8575 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.0005962/0.2878, allocations: 391.1 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.2879, allocations: 8.031 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009219/0.2888, allocations: 212.4 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000181/0.289, allocations: 193.9 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.95e-05/0.2891, allocations: 34.23 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.2891, allocations: 7.938 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.2895, allocations: 173.5 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.2895, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.2896, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.2896, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005898/0.2902, allocations: 239.7 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009055/0.2911, allocations: 0.5075 MB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005694/0.2917, allocations: 238.3 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002986/0.292, allocations: 128.7 kB / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.292, allocations: 0 / 1.092 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.292, allocations: 30.56 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.92e-07/0.292, allocations: 0 / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001002/0.293, allocations: 365.2 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.2931, allocations: 59.53 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.2932, allocations: 166.8 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.2933, allocations: 29.64 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.2933, allocations: 100.2 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.2934, allocations: 11.89 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.067e-05/0.2934, allocations: 21.7 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.2936, allocations: 318.8 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.2939, allocations: 119.8 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.2942, allocations: 111.9 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000511/0.2947, allocations: 200.7 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2947, allocations: 4 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006032/0.2953, allocations: 257.3 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.2953, allocations: 9.812 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2953, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.2953, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002079/0.2956, allocations: 47.91 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.2956, allocations: 3.938 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.2957, allocations: 47.81 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.2958, allocations: 3.984 kB / 1.094 GB, free: 10.7 MB / 0.8575 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.554e-05/0.2959, allocations: 121.8 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.765e-05/0.2959, allocations: 7.906 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.204e-05/0.2959, allocations: 11.86 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2959, allocations: 0 / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2959, allocations: 3.938 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.296, allocations: 0 / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002373/0.2962, allocations: 249.6 kB / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2962, allocations: 0 / 1.095 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.2964, allocations: 43.92 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2964, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.2964, allocations: 3.984 kB / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2964, allocations: 0 / 1.095 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2964, allocations: 7.938 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006592/0.2971, allocations: 351.2 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.2972, allocations: 81.02 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.2972, allocations: 8 kB / 1.095 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.2974, allocations: 31.94 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.877e-05/0.2974, allocations: 11.86 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.2974, allocations: 4 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.912e-05/0.2975, allocations: 135.6 kB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2975, allocations: 0 / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002529/0.2978, allocations: 12 kB / 1.095 GB, free: 9.547 MB / 0.8575 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.0001476/0.298, allocations: 99.78 kB / 1.095 GB, free: 9.441 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006151/0.2986, allocations: 239.7 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2986, allocations: 4 kB / 1.096 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002952/0.2989, allocations: 123.9 kB / 1.096 GB, free: 9.082 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.2991, allocations: 8 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005982/0.2997, allocations: 287.1 kB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.3, allocations: 0.7 MB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.782e-05/0.3001, allocations: 31.89 kB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.3001, allocations: 15.42 kB / 1.097 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.3001, allocations: 0 / 1.097 GB, free: 7.992 MB / 0.8575 GB Notification: Performance of Templates: time 0.003442/0.3036, allocations: 1.296 MB / 1.098 GB, free: 6.695 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches