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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001642/0.001642, 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.002136/0.002136, allocations: 195 kB / 16.25 MB, free: 6.625 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.782/2.782, allocations: 461.9 MB / 0.7343 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 71.09 kB / 0.8986 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3034/0.3049, allocations: 157.4 MB / 1.052 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003114/0.308, allocations: 1.643 MB / 1.054 GB, free: 7.055 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00106/0.3091, allocations: 0.5966 MB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.194e-05/0.3092, allocations: 0 / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.215e-05/0.3092, allocations: 7.922 kB / 1.054 GB, free: 6.445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.092e-05/0.3094, allocations: 11.92 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.3097, allocations: 39.91 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001019/0.3098, allocations: 47.89 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.3099, allocations: 16 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.3101, allocations: 31.86 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8e-05/0.3101, allocations: 23.86 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.3102, allocations: 4 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.3103, allocations: 51.94 kB / 1.055 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.18e-05/0.3104, allocations: 23.91 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.456e-05/0.3104, allocations: 23.81 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.3106, allocations: 92.03 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3106, allocations: 4 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3106, allocations: 0 / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.3107, allocations: 0 / 1.055 GB, free: 6.082 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.0005937/0.3113, allocations: 387.1 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3113, allocations: 8.625 kB / 1.055 GB, free: 5.648 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009593/0.3123, allocations: 216.4 kB / 1.055 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001885/0.3125, allocations: 200.6 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.306e-05/0.3125, allocations: 30.27 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.3126, allocations: 3.938 kB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.313, allocations: 177.5 kB / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.313, allocations: 0 / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3131, allocations: 0 / 1.056 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3131, allocations: 4 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006113/0.3137, allocations: 231.8 kB / 1.056 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008801/0.3146, allocations: 0.5116 MB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000599/0.3152, allocations: 238.3 kB / 1.057 GB, free: 3.953 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.3155, allocations: 120.8 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.3155, allocations: 4 kB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.3156, allocations: 30.56 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.3156, allocations: 0 / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.001036/0.3166, allocations: 369.2 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.3167, allocations: 51.41 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.3168, allocations: 175.6 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.3169, allocations: 25.7 kB / 1.058 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.606e-05/0.3169, allocations: 104.1 kB / 1.058 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/0.3169, allocations: 7.844 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.716e-05/0.317, allocations: 21.7 kB / 1.058 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3171, allocations: 322.8 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.3174, allocations: 111.9 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.3177, allocations: 111.9 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000532/0.3183, allocations: 204.6 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3183, allocations: 0 / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006692/0.319, allocations: 257.3 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.319, allocations: 8.031 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.84e-06/0.319, allocations: 0 / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.319, allocations: 0 / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.3193, allocations: 43.92 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3193, allocations: 3.938 kB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.3195, allocations: 43.83 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.3195, allocations: 7.938 kB / 1.059 GB, free: 1.895 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 0.0001122/0.3196, allocations: 118.5 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.954e-05/0.3197, allocations: 7.906 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.3197, allocations: 7.875 kB / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.3197, allocations: 0 / 1.059 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.3197, allocations: 7.922 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3197, allocations: 0 / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.32, allocations: 249.7 kB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.32, allocations: 8 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.3202, allocations: 47.84 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.3202, allocations: 0 / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/0.3203, allocations: 7.984 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.3203, allocations: 0 / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3203, allocations: 3.938 kB / 1.059 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007124/0.321, allocations: 351.2 kB / 1.059 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.058e-05/0.3211, allocations: 92.95 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.3211, allocations: 0 / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.3213, allocations: 31.94 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.3213, allocations: 3.938 kB / 1.06 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.3214, allocations: 7.984 kB / 1.06 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001089/0.3215, allocations: 130.3 kB / 1.06 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2e-07/0.3215, allocations: 4.031 kB / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002623/0.3217, allocations: 16 kB / 1.06 GB, free: 0.7305 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.0001714/0.3219, allocations: 99.25 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006711/0.3226, allocations: 243.7 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3226, allocations: 0 / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.3229, allocations: 115.9 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.3232, allocations: 11.94 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006462/0.3238, allocations: 299.1 kB / 1.06 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.3241, allocations: 0.7001 MB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.3242, allocations: 20 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.3243, allocations: 19.41 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.3243, allocations: 0 / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of Templates: time 0.003798/0.3281, allocations: 1.266 MB / 1.062 GB, free: 13.91 MB / 0.8262 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