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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001638/0.001638, allocations: 97.88 kB / 16.35 MB, free: 5.824 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.001948/0.001948, allocations: 191.5 kB / 17.29 MB, free: 5.48 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.493/2.493, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 73.19 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2931, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002469/0.2956, allocations: 1.572 MB / 1.028 GB, free: 464 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009008/0.2965, allocations: 0.6007 MB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.526e-05/0.2966, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.2966, allocations: 11.92 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.079e-05/0.2967, allocations: 7.875 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.297, allocations: 47.88 kB / 1.029 GB, free: 15.78 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.775e-05/0.2971, allocations: 47.84 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.731e-05/0.2972, allocations: 16 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.536e-05/0.2973, allocations: 19.92 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.328e-05/0.2973, allocations: 35.78 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.2974, allocations: 4 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.2975, allocations: 55.94 kB / 1.029 GB, free: 15.6 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.38e-05/0.2976, allocations: 19.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.012e-05/0.2976, allocations: 23.81 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001595/0.2978, allocations: 99.67 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2978, allocations: 4 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2978, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.2978, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 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.0004974/0.2983, allocations: 395.1 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2983, allocations: 8.031 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008502/0.2992, allocations: 208.5 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.2994, allocations: 193.8 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/0.2994, allocations: 38.25 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.2994, allocations: 3.938 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.2998, allocations: 181.5 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2999, allocations: 0 / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/0.2999, allocations: 0 / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.2999, allocations: 4 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005686/0.3005, allocations: 231.8 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.3013, allocations: 0.5077 MB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.3019, allocations: 242.3 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.3022, allocations: 116.8 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.3022, allocations: 4 kB / 1.031 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3022, allocations: 34.56 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.3022, allocations: 0 / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0009328/0.3032, allocations: 369.2 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.3032, allocations: 55.39 kB / 1.032 GB, free: 12.72 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.3034, allocations: 168.3 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.3034, allocations: 29.7 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.855e-05/0.3035, allocations: 104.1 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.732e-05/0.3035, allocations: 7.906 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.956e-05/0.3035, allocations: 17.7 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3036, allocations: 322.8 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002956/0.3039, allocations: 119.8 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.3042, allocations: 111.9 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005055/0.3047, allocations: 200.6 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3047, allocations: 0 / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005973/0.3053, allocations: 257.3 kB / 1.033 GB, free: 11.37 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.3054, allocations: 4 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.3054, allocations: 4.031 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.3054, allocations: 0 / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002113/0.3056, allocations: 47.91 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3056, allocations: 3.938 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.3058, allocations: 43.84 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3058, allocations: 11.98 kB / 1.033 GB, free: 11.25 MB / 0.8106 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.323e-05/0.3059, allocations: 113.8 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.306, allocations: 7.906 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.439e-05/0.306, allocations: 15.86 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.306, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.306, allocations: 3.938 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.306, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002347/0.3062, allocations: 245.6 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3063, allocations: 4 kB / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001903/0.3064, allocations: 43.86 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3065, allocations: 0 / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.3065, allocations: 3.984 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3065, allocations: 4 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3065, allocations: 3.938 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006386/0.3071, allocations: 355.2 kB / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.585e-05/0.3072, allocations: 88.95 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.3072, allocations: 0 / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001883/0.3074, allocations: 31.94 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.3075, allocations: 7.922 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.3075, allocations: 8 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.553e-05/0.3076, allocations: 130.3 kB / 1.034 GB, free: 10.12 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3076, allocations: 4.031 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002546/0.3078, allocations: 16 kB / 1.034 GB, free: 10.1 MB / 0.8106 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.0001638/0.308, allocations: 99.19 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006269/0.3086, allocations: 243.7 kB / 1.034 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3087, allocations: 0 / 1.034 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.309, allocations: 115.9 kB / 1.035 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.3092, allocations: 15.92 kB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/0.3098, allocations: 283 kB / 1.035 GB, free: 9.316 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.3101, allocations: 0.6963 MB / 1.036 GB, free: 8.594 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.146e-05/0.3102, allocations: 27.92 kB / 1.036 GB, free: 8.566 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.748e-05/0.3103, allocations: 19.42 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3103, allocations: 4 kB / 1.036 GB, free: 8.543 MB / 0.8106 GB Notification: Performance of Templates: time 0.00344/0.3137, allocations: 1.276 MB / 1.037 GB, free: 7.266 MB / 0.8106 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 -s gbode -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/jenkins1/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