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.00131/0.00131, allocations: 106.5 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.001282/0.001282, allocations: 189.4 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.563/2.563, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 66.33 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3333, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002981/0.3363, allocations: 1.587 MB / 1.028 GB, free: 452 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001111/0.3374, allocations: 0.593 MB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.252e-05/0.3375, allocations: 0 / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.39e-05/0.3376, allocations: 7.875 kB / 1.029 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.3377, allocations: 7.922 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.338, allocations: 59.81 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.3381, allocations: 39.92 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.3383, allocations: 15.98 kB / 1.029 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.771e-05/0.3384, allocations: 23.86 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.34e-05/0.3385, allocations: 27.84 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.696e-05/0.3385, allocations: 4 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.3386, allocations: 51.95 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.308e-05/0.3387, allocations: 23.92 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.983e-05/0.3387, allocations: 35.8 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.3389, allocations: 95.61 kB / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3389, allocations: 0 / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3389, allocations: 0 / 1.029 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.3389, allocations: 0 / 1.029 GB, free: 15.45 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.0005405/0.3395, allocations: 399.1 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.3395, allocations: 8.031 kB / 1.03 GB, free: 15.01 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009036/0.3404, allocations: 212.5 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001796/0.3406, allocations: 180.7 kB / 1.03 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.382e-05/0.3407, allocations: 42.23 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.3407, allocations: 7.938 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.3412, allocations: 169.5 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.3412, allocations: 0 / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.3412, allocations: 4 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3412, allocations: 7.922 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005789/0.3418, allocations: 239.7 kB / 1.03 GB, free: 14.11 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009686/0.3428, allocations: 0.5039 MB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000575/0.3434, allocations: 242.3 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.3437, allocations: 120.7 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.3437, allocations: 4 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3437, allocations: 30.56 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.3437, allocations: 0 / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0009847/0.3447, allocations: 365.2 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.3448, allocations: 55.53 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.345, allocations: 172.1 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.345, allocations: 25.7 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.96e-05/0.345, allocations: 104.1 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.3451, allocations: 3.906 kB / 1.032 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.296e-05/0.3451, allocations: 17.7 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3453, allocations: 322.8 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002772/0.3455, allocations: 119.8 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.3458, allocations: 115.9 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004972/0.3463, allocations: 200.6 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3464, allocations: 4 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005866/0.347, allocations: 257.3 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.347, allocations: 8 kB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.347, allocations: 0 / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.347, allocations: 0 / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.3472, allocations: 39.92 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.3472, allocations: 3.938 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/0.3474, allocations: 51.8 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.3474, allocations: 0 / 1.033 GB, free: 11.26 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 9.434e-05/0.3475, allocations: 121.8 kB / 1.033 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.3476, allocations: 7.906 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.3476, allocations: 11.88 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3476, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3476, allocations: 7.938 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3476, allocations: 4 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.3479, allocations: 241.6 kB / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3479, allocations: 0 / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001889/0.3481, allocations: 43.91 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3481, allocations: 4 kB / 1.034 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3481, allocations: 3.984 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3481, allocations: 0 / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.3481, allocations: 3.938 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007336/0.3489, allocations: 351.2 kB / 1.034 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-05/0.3489, allocations: 96.88 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.199e-05/0.349, allocations: 3.938 kB / 1.034 GB, free: 10.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002253/0.3492, allocations: 31.94 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.481e-05/0.3492, allocations: 7.938 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.3493, allocations: 4.016 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.68e-05/0.3494, allocations: 134.3 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.01e-07/0.3494, allocations: 0 / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002557/0.3496, allocations: 20 kB / 1.034 GB, free: 10.09 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.0001697/0.3498, allocations: 99.25 kB / 1.034 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0006199/0.3504, allocations: 231.7 kB / 1.034 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3505, allocations: 3.938 kB / 1.034 GB, free: 9.75 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.3507, allocations: 123.9 kB / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.351, allocations: 0 / 1.035 GB, free: 9.629 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00067/0.3517, allocations: 297.5 kB / 1.035 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.352, allocations: 0.6963 MB / 1.036 GB, free: 8.59 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 9.242e-05/0.3521, allocations: 24 kB / 1.036 GB, free: 8.566 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.656e-05/0.3522, allocations: 19.42 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3522, allocations: 0 / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of Templates: time 0.003847/0.356, allocations: 1.298 MB / 1.037 GB, free: 7.25 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 cvode -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