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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001033/0.001033, allocations: 92.16 kB / 16.02 MB, free: 80 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.001303/0.001303, allocations: 176.9 kB / 16.92 MB, free: 6.652 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.494/2.494, allocations: 390.9 MB / 0.667 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004014/0.0004014, allocations: 8 kB / 0.8166 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8732/0.8737, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001675/0.8754, allocations: 1.294 MB / 0.957 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00092/0.8763, allocations: 0.5803 MB / 0.9575 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.451e-05/0.8764, allocations: 1.5 kB / 0.9575 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.254e-05/0.8764, allocations: 3.938 kB / 0.9576 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.179e-05/0.8765, allocations: 17.14 kB / 0.9576 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002529/0.8768, allocations: 42.39 kB / 0.9576 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.936e-05/0.8769, allocations: 43.67 kB / 0.9577 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.758e-05/0.877, allocations: 18.22 kB / 0.9577 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.262e-05/0.8771, allocations: 24.89 kB / 0.9577 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.875e-05/0.8772, allocations: 23.31 kB / 0.9577 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.593e-05/0.8772, allocations: 5.469 kB / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.8773, allocations: 41.92 kB / 0.9578 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.8774, allocations: 19.02 kB / 0.9578 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.33e-05/0.8774, allocations: 52.45 kB / 0.9578 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.8776, allocations: 71.73 kB / 0.9579 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.8776, allocations: 3.938 kB / 0.9579 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.665e-06/0.8776, allocations: 1.156 kB / 0.9579 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.03e-06/0.8776, allocations: 0 / 0.9579 GB, free: 6.059 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.000467/0.8781, allocations: 383.3 kB / 0.9583 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.8781, allocations: 10.69 kB / 0.9583 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008337/0.8789, allocations: 215.3 kB / 0.9585 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.8791, allocations: 194.2 kB / 0.9587 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.715e-05/0.8792, allocations: 34.38 kB / 0.9587 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.8792, allocations: 5.312 kB / 0.9587 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.8796, allocations: 171.3 kB / 0.9589 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.8796, allocations: 1.25 kB / 0.9589 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.8796, allocations: 4 kB / 0.9589 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.8797, allocations: 1.156 kB / 0.9589 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005711/0.8802, allocations: 243.3 kB / 0.9591 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007626/0.881, allocations: 0.5095 MB / 0.9596 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005291/0.8815, allocations: 241.7 kB / 0.9598 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002632/0.8818, allocations: 121.5 kB / 0.96 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.8818, allocations: 5.359 kB / 0.96 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.8819, allocations: 34.56 kB / 0.96 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.8819, allocations: 1.375 kB / 0.96 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009256/0.8828, allocations: 377 kB / 0.9604 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.8828, allocations: 56.66 kB / 0.9604 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.883, allocations: 173.1 kB / 0.9606 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.883, allocations: 27.05 kB / 0.9606 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.719e-05/0.8831, allocations: 104.3 kB / 0.9607 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.8831, allocations: 8.938 kB / 0.9607 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.8831, allocations: 9.719 kB / 0.9607 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.396e-05/0.8832, allocations: 322.5 kB / 0.961 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.8835, allocations: 116.6 kB / 0.9611 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002751/0.8838, allocations: 113.5 kB / 0.9612 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.8843, allocations: 209.6 kB / 0.9614 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8843, allocations: 7.875 kB / 0.9614 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0006014/0.8849, allocations: 265.9 kB / 0.9617 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.8849, allocations: 5.562 kB / 0.9617 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.885, allocations: 0 / 0.9617 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.885, allocations: 0 / 0.9617 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.8852, allocations: 46.98 kB / 0.9618 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.8852, allocations: 4.906 kB / 0.9618 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.8854, allocations: 38.77 kB / 0.9618 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.8854, allocations: 1.062 kB / 0.9618 GB, free: 3.227 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.675e-05/0.8855, allocations: 119.8 kB / 0.9619 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.503e-05/0.8855, allocations: 11.78 kB / 0.9619 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.8855, allocations: 10.88 kB / 0.9619 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.8855, allocations: 1.031 kB / 0.9619 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.8855, allocations: 3.938 kB / 0.9619 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.8856, allocations: 4.953 kB / 0.9619 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.8858, allocations: 242.6 kB / 0.9622 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.8858, allocations: 0 / 0.9622 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.886, allocations: 50.5 kB / 0.9622 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.886, allocations: 5.031 kB / 0.9622 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.886, allocations: 5.016 kB / 0.9622 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.886, allocations: 1.125 kB / 0.9622 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.886, allocations: 3.938 kB / 0.9622 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006561/0.8867, allocations: 348.9 kB / 0.9626 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.8867, allocations: 88.75 kB / 0.9627 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.8868, allocations: 0 / 0.9627 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.887, allocations: 46.53 kB / 0.9627 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.04e-05/0.887, allocations: 5.156 kB / 0.9627 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.887, allocations: 5.422 kB / 0.9627 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.242e-05/0.8871, allocations: 129.6 kB / 0.9628 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8871, allocations: 0 / 0.9628 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002618/0.8874, allocations: 14.59 kB / 0.9628 GB, free: 2.355 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.0001638/0.8875, allocations: 104.9 kB / 0.9629 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006198/0.8882, allocations: 246 kB / 0.9632 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8882, allocations: 0 / 0.9632 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002892/0.8885, allocations: 119.9 kB / 0.9633 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.8887, allocations: 10.19 kB / 0.9633 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005952/0.8893, allocations: 337.8 kB / 0.9636 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.8895, allocations: 0.6979 MB / 0.9643 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.8895, allocations: 18.62 kB / 0.9643 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of SimCode: time 1.242e-06/0.8896, allocations: 0 / 0.9643 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of Templates: time 0.003302/0.8929, allocations: 1.655 MB / 0.9659 GB, free: 292 kB / 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/jenkins1/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