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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001148/0.001149, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00124/0.00124, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.351/1.351, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.791/2.791, allocations: 472.6 MB / 0.7448 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 69.5 kB / 0.9116 GB, free: 33.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2972, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00257/0.2998, allocations: 1.637 MB / 1.069 GB, free: 9.113 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0008909/0.3007, allocations: 0.5923 MB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.444e-05/0.3007, allocations: 7.875 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.747e-05/0.3008, allocations: 7.984 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.761e-05/0.3009, allocations: 3.938 kB / 1.07 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.3012, allocations: 47.89 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.596e-05/0.3013, allocations: 39.92 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.802e-05/0.3014, allocations: 23.97 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.287e-05/0.3014, allocations: 23.86 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.138e-05/0.3015, allocations: 27.86 kB / 1.07 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.3015, allocations: 4 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.3017, allocations: 47.95 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.925e-05/0.3017, allocations: 23.91 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.957e-05/0.3018, allocations: 31.8 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001703/0.302, allocations: 88.03 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.302, allocations: 0 / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.974e-06/0.302, allocations: 4 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.15e-06/0.302, allocations: 0 / 1.07 GB, free: 8.141 MB / 0.8262 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.0005105/0.3025, allocations: 395 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3025, allocations: 15.97 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009428/0.3035, allocations: 208.5 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.3036, allocations: 188.8 kB / 1.071 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.292e-05/0.3037, allocations: 34.25 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.3037, allocations: 3.938 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.3042, allocations: 177.5 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.3042, allocations: 0 / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.3042, allocations: 4 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3042, allocations: 0 / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006047/0.3048, allocations: 239.7 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008539/0.3057, allocations: 0.5115 MB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.3063, allocations: 234.3 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.3066, allocations: 116.8 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.3066, allocations: 0 / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3067, allocations: 50.5 kB / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3067, allocations: 0 / 1.072 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.001017/0.3077, allocations: 365.1 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.3078, allocations: 51.41 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.3079, allocations: 175.5 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.308, allocations: 29.83 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.592e-05/0.308, allocations: 100.1 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.3081, allocations: 3.906 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/0.3081, allocations: 21.7 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.3082, allocations: 322.8 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.3085, allocations: 115.9 kB / 1.073 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.3088, allocations: 111.8 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005249/0.3094, allocations: 200.6 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3094, allocations: 0 / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006303/0.31, allocations: 257.3 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.31, allocations: 4 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.31, allocations: 0 / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3101, allocations: 8.031 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.3103, allocations: 39.92 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3103, allocations: 3.938 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.3105, allocations: 43.86 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.3105, allocations: 8 kB / 1.074 GB, free: 3.949 MB / 0.8262 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 9.195e-05/0.3106, allocations: 113.8 kB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.3107, allocations: 7.906 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.796e-05/0.3107, allocations: 11.88 kB / 1.074 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3107, allocations: 3.938 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3107, allocations: 3.938 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3107, allocations: 0 / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002521/0.311, allocations: 245.6 kB / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.311, allocations: 0 / 1.075 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.3112, allocations: 47.91 kB / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3112, allocations: 0 / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.3112, allocations: 11.98 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3112, allocations: 0 / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3112, allocations: 3.938 kB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006839/0.3119, allocations: 343.2 kB / 1.075 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.312, allocations: 96.97 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.412e-05/0.312, allocations: 0 / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.3122, allocations: 31.94 kB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.532e-05/0.3123, allocations: 11.94 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.3123, allocations: 3.984 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.877e-05/0.3124, allocations: 127.2 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3124, allocations: 3.938 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002569/0.3126, allocations: 27.98 kB / 1.075 GB, free: 2.777 MB / 0.8262 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.0001482/0.3128, allocations: 105 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000671/0.3135, allocations: 235.7 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3135, allocations: 0 / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.3138, allocations: 111.9 kB / 1.076 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.3141, allocations: 13.69 kB / 1.076 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006848/0.3148, allocations: 310.8 kB / 1.076 GB, free: 1.988 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.3151, allocations: 0.6963 MB / 1.077 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001105/0.3152, allocations: 24 kB / 1.077 GB, free: 1.242 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.97e-05/0.3153, allocations: 19.36 kB / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of SimCode: time 2.044e-06/0.3153, allocations: 0 / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of Templates: time 0.003905/0.3192, allocations: 1.272 MB / 1.078 GB, free: 15.95 MB / 0.8419 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 -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/jenkins/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