Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001318/0.001318, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 196.8 kB / 16.53 MB, free: 6.672 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.476/2.476, allocations: 390.2 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 67.89 kB / 0.8125 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7116/0.7129, allocations: 140.3 MB / 0.9496 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003602/0.7166, allocations: 1.586 MB / 0.9511 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.7181, allocations: 0.5872 MB / 0.9517 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.7182, allocations: 1.406 kB / 0.9517 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.172e-05/0.7184, allocations: 3.938 kB / 0.9517 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.7185, allocations: 14.14 kB / 0.9517 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005759/0.7191, allocations: 51.78 kB / 0.9518 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.7193, allocations: 48.36 kB / 0.9518 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.7195, allocations: 18.34 kB / 0.9518 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001701/0.7197, allocations: 25.02 kB / 0.9519 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.7198, allocations: 23.94 kB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.7198, allocations: 2.875 kB / 0.9519 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002302/0.7201, allocations: 56.8 kB / 0.9519 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.7202, allocations: 18.64 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.815e-05/0.7203, allocations: 29.92 kB / 0.952 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000326/0.7206, allocations: 99.75 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.7206, allocations: 0 / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.664e-06/0.7207, allocations: 1.406 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.383e-05/0.7207, allocations: 0 / 0.9521 GB, free: 7.129 MB / 0.7169 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.0009293/0.7216, allocations: 390.8 kB / 0.9525 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.34e-05/0.7217, allocations: 12.84 kB / 0.9525 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/0.7227, allocations: 205.2 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000193/0.7229, allocations: 194.6 kB / 0.9529 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.248e-05/0.723, allocations: 37.56 kB / 0.9529 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.723, allocations: 6.156 kB / 0.9529 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.7235, allocations: 169.3 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.7235, allocations: 0 / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.7236, allocations: 1.562 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.7236, allocations: 0 / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005716/0.7242, allocations: 242.8 kB / 0.9533 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009197/0.7251, allocations: 0.5045 MB / 0.9538 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/0.7257, allocations: 237.1 kB / 0.954 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.726, allocations: 120.2 kB / 0.9541 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.726, allocations: 5.234 kB / 0.9541 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.726, allocations: 34.55 kB / 0.9542 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 2.355e-06/0.726, allocations: 1.219 kB / 0.9542 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009956/0.727, allocations: 377.4 kB / 0.9545 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.7271, allocations: 52.66 kB / 0.9546 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.7272, allocations: 177.1 kB / 0.9547 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.7272, allocations: 27.11 kB / 0.9548 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/0.7273, allocations: 104 kB / 0.9549 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.7273, allocations: 8.922 kB / 0.9549 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.255e-05/0.7274, allocations: 22.77 kB / 0.9549 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.7275, allocations: 329.3 kB / 0.9552 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002871/0.7278, allocations: 110 kB / 0.9553 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.728, allocations: 114.9 kB / 0.9554 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005046/0.7285, allocations: 196.7 kB / 0.9556 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7285, allocations: 0 / 0.9556 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005607/0.7291, allocations: 256.4 kB / 0.9559 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.7291, allocations: 9.828 kB / 0.9559 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.7291, allocations: 0 / 0.9559 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.7292, allocations: 4 kB / 0.9559 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.7294, allocations: 42.33 kB / 0.9559 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.7294, allocations: 11.91 kB / 0.9559 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/0.7296, allocations: 33.59 kB / 0.956 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.7296, allocations: 5.109 kB / 0.956 GB, free: 4.281 MB / 0.7169 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 7.233e-05/0.7297, allocations: 115.4 kB / 0.9561 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.7297, allocations: 12.5 kB / 0.9561 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.7297, allocations: 11.69 kB / 0.9561 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.7297, allocations: 0 / 0.9561 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.7298, allocations: 3.938 kB / 0.9561 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.7298, allocations: 0.75 kB / 0.9561 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.73, allocations: 242.6 kB / 0.9563 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.73, allocations: 1.312 kB / 0.9563 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.7302, allocations: 49.03 kB / 0.9564 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.7302, allocations: 0 / 0.9564 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.7302, allocations: 6.375 kB / 0.9564 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.7302, allocations: 0 / 0.9564 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.7302, allocations: 3.938 kB / 0.9564 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.7308, allocations: 352.8 kB / 0.9567 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.429e-05/0.7309, allocations: 90.78 kB / 0.9568 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.7309, allocations: 5.75 kB / 0.9568 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.7311, allocations: 39.47 kB / 0.9569 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.7311, allocations: 5.688 kB / 0.9569 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.7311, allocations: 5.984 kB / 0.9569 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.04e-05/0.7312, allocations: 125 kB / 0.957 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7312, allocations: 0 / 0.957 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002595/0.7315, allocations: 15.12 kB / 0.957 GB, free: 3.414 MB / 0.7169 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.0001476/0.7317, allocations: 107.1 kB / 0.9571 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006523/0.7323, allocations: 232.9 kB / 0.9573 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.7323, allocations: 0 / 0.9573 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.7326, allocations: 122 kB / 0.9574 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.7329, allocations: 11.27 kB / 0.9574 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006464/0.7335, allocations: 294.2 kB / 0.9577 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.7337, allocations: 0.6944 MB / 0.9584 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001033/0.7338, allocations: 25.56 kB / 0.9584 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.653e-05/0.7339, allocations: 15.89 kB / 0.9584 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.7339, allocations: 0 / 0.9584 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of Templates: time 0.004237/0.7381, allocations: 1.287 MB / 0.9597 GB, free: 1.582 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_QStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches