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.001321/0.001321, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001739/0.001739, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.415/1.415, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.753/2.753, allocations: 461.8 MB / 0.7342 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 64.66 kB / 0.8984 GB, free: 37.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3093, allocations: 157.4 MB / 1.052 GB, free: 8.902 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.004373/0.3137, allocations: 1.631 MB / 1.054 GB, free: 7.254 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001639/0.3154, allocations: 0.6117 MB / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.625e-05/0.3156, allocations: 0 / 1.054 GB, free: 6.637 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 7.464e-05/0.3156, allocations: 3.938 kB / 1.054 GB, free: 6.633 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.3158, allocations: 7.922 kB / 1.054 GB, free: 6.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.3162, allocations: 47.89 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001482/0.3164, allocations: 39.92 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.3166, allocations: 15.98 kB / 1.054 GB, free: 6.523 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.3167, allocations: 35.78 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.718e-05/0.3168, allocations: 19.92 kB / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.3169, allocations: 0 / 1.054 GB, free: 6.469 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.3171, allocations: 47.95 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.885e-05/0.3171, allocations: 19.92 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.3172, allocations: 35.78 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.3174, allocations: 91.91 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3175, allocations: 4 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3175, allocations: 0 / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.588e-06/0.3175, allocations: 0 / 1.055 GB, free: 6.273 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.0007152/0.3182, allocations: 391.2 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.3183, allocations: 8.031 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009533/0.3192, allocations: 208.5 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.3194, allocations: 192.6 kB / 1.055 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.671e-05/0.3195, allocations: 34.25 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.3195, allocations: 7.938 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004479/0.32, allocations: 169.5 kB / 1.056 GB, free: 5.188 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.32, allocations: 3.984 kB / 1.056 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.769e-05/0.32, allocations: 4 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3201, allocations: 0 / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005946/0.3207, allocations: 239.7 kB / 1.056 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00093/0.3216, allocations: 0.5077 MB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005884/0.3222, allocations: 238.3 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.3225, allocations: 116.8 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.3225, allocations: 4 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.3226, allocations: 30.56 kB / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.3226, allocations: 0 / 1.057 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.001073/0.3237, allocations: 373.2 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/0.3237, allocations: 55.41 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.3239, allocations: 172.9 kB / 1.057 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.3239, allocations: 25.7 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.539e-05/0.324, allocations: 96.14 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.324, allocations: 11.91 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/0.3241, allocations: 21.69 kB / 1.057 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.3242, allocations: 322.8 kB / 1.058 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.3245, allocations: 111.9 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000292/0.3248, allocations: 115.9 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005347/0.3254, allocations: 204.6 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3254, allocations: 0 / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006531/0.326, allocations: 253.4 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3261, allocations: 4 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3261, allocations: 8.016 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3261, allocations: 0 / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.3263, allocations: 43.92 kB / 1.058 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3264, allocations: 3.938 kB / 1.058 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.3265, allocations: 39.84 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.3266, allocations: 11.98 kB / 1.059 GB, free: 2.09 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.0001046/0.3267, allocations: 117.8 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.017e-05/0.3267, allocations: 11.84 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.3268, allocations: 11.88 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3268, allocations: 0 / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.3268, allocations: 3.938 kB / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3268, allocations: 0 / 1.059 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.3271, allocations: 241.6 kB / 1.059 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3271, allocations: 8 kB / 1.059 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.3273, allocations: 47.84 kB / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.3273, allocations: 0 / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.3273, allocations: 0 / 1.059 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-05/0.3273, allocations: 4 kB / 1.059 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3274, allocations: 3.938 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006939/0.328, allocations: 355.2 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.3281, allocations: 84.95 kB / 1.059 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.84e-05/0.3282, allocations: 7.984 kB / 1.059 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.3284, allocations: 31.94 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.3284, allocations: 3.938 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.3284, allocations: 7.984 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.84e-05/0.3285, allocations: 125.4 kB / 1.06 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3285, allocations: 4.031 kB / 1.06 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002674/0.3288, allocations: 16 kB / 1.06 GB, free: 0.9336 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.0001801/0.329, allocations: 107.2 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006551/0.3297, allocations: 235.7 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3297, allocations: 3.938 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003107/0.33, allocations: 123.9 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.3302, allocations: 4 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006897/0.3309, allocations: 301 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.3313, allocations: 0.6926 MB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001292/0.3314, allocations: 28 kB / 1.061 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.3315, allocations: 15.42 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3315, allocations: 3.938 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.003898/0.3354, allocations: 1.248 MB / 1.062 GB, free: 14.13 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