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.001074/0.001074, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01042/0.01042, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.415/2.415, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003483, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7233/0.7236, allocations: 142.4 MB / 0.955 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.001438/0.7251, allocations: 1.302 MB / 0.9563 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007773/0.7259, allocations: 0.588 MB / 0.9569 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.949e-05/0.726, allocations: 1 kB / 0.9569 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.982e-05/0.726, allocations: 0 / 0.9569 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.884e-05/0.7261, allocations: 6.156 kB / 0.9569 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.7263, allocations: 48 kB / 0.9569 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.003e-05/0.7264, allocations: 41.11 kB / 0.957 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.766e-05/0.7265, allocations: 25.28 kB / 0.957 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.262e-05/0.7266, allocations: 17.25 kB / 0.957 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.533e-05/0.7267, allocations: 27.64 kB / 0.957 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.7267, allocations: 1.094 kB / 0.957 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.7268, allocations: 46.7 kB / 0.9571 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.11e-05/0.7269, allocations: 18.77 kB / 0.9571 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.7269, allocations: 47.42 kB / 0.9572 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.7271, allocations: 98.67 kB / 0.9572 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.7271, allocations: 5.031 kB / 0.9573 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.7271, allocations: 0 / 0.9573 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.878e-06/0.7271, allocations: 0 / 0.9573 GB, free: 5.934 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.000438/0.7275, allocations: 386.7 kB / 0.9576 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.7276, allocations: 7.156 kB / 0.9576 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008454/0.7284, allocations: 210.8 kB / 0.9578 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.7286, allocations: 192.7 kB / 0.958 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.7286, allocations: 37.75 kB / 0.958 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.73e-05/0.7287, allocations: 6.156 kB / 0.9581 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.729, allocations: 175.9 kB / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.7291, allocations: 0 / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.7291, allocations: 1.094 kB / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.7291, allocations: 1.188 kB / 0.9582 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005463/0.7296, allocations: 243 kB / 0.9585 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007136/0.7304, allocations: 0.5054 MB / 0.959 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.7309, allocations: 245.1 kB / 0.9592 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.7312, allocations: 122.9 kB / 0.9593 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.7312, allocations: 11.86 kB / 0.9593 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.7312, allocations: 31.94 kB / 0.9593 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.7312, allocations: 3.938 kB / 0.9593 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009133/0.7321, allocations: 382.4 kB / 0.9597 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.501e-05/0.7322, allocations: 51.41 kB / 0.9598 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.7323, allocations: 170.4 kB / 0.9599 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.7323, allocations: 25.7 kB / 0.9599 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.975e-05/0.7324, allocations: 113.6 kB / 0.9601 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.7324, allocations: 7.969 kB / 0.9601 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.7324, allocations: 10.81 kB / 0.9601 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.146e-05/0.7325, allocations: 321.7 kB / 0.9604 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002802/0.7328, allocations: 116.4 kB / 0.9605 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002669/0.7331, allocations: 122 kB / 0.9606 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004858/0.7336, allocations: 201.9 kB / 0.9608 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.7336, allocations: 0 / 0.9608 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005708/0.7341, allocations: 262.2 kB / 0.9611 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.7342, allocations: 8.219 kB / 0.9611 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.7342, allocations: 0.8125 kB / 0.9611 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.7342, allocations: 1 kB / 0.9611 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.7344, allocations: 42.36 kB / 0.9611 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.7344, allocations: 7.922 kB / 0.9611 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.7346, allocations: 42.92 kB / 0.9611 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.398e-05/0.7346, allocations: 1.969 kB / 0.9612 GB, free: 3.098 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 6.33e-05/0.7347, allocations: 123.4 kB / 0.9613 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.7347, allocations: 11.59 kB / 0.9613 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.037e-05/0.7347, allocations: 11.5 kB / 0.9613 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.7347, allocations: 0 / 0.9613 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.7347, allocations: 9.016 kB / 0.9613 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.7347, allocations: 4 kB / 0.9613 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.735, allocations: 239.5 kB / 0.9615 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.735, allocations: 0 / 0.9615 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001754/0.7351, allocations: 46.78 kB / 0.9616 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.7352, allocations: 0 / 0.9616 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.7352, allocations: 6.266 kB / 0.9616 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7352, allocations: 0 / 0.9616 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.7352, allocations: 7.875 kB / 0.9616 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005899/0.7358, allocations: 360.8 kB / 0.9619 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.7358, allocations: 84.02 kB / 0.962 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.7358, allocations: 0.9688 kB / 0.962 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.736, allocations: 34.25 kB / 0.962 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.41e-05/0.7361, allocations: 13.03 kB / 0.9621 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.7361, allocations: 6.391 kB / 0.9621 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.211e-05/0.7362, allocations: 128.8 kB / 0.9622 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7362, allocations: 0 / 0.9622 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002527/0.7364, allocations: 23.03 kB / 0.9622 GB, free: 2.215 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.0001112/0.7365, allocations: 99.53 kB / 0.9623 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005904/0.7371, allocations: 237.4 kB / 0.9625 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7372, allocations: 4.062 kB / 0.9625 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.7374, allocations: 120.2 kB / 0.9627 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.7377, allocations: 2.625 kB / 0.9627 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005253/0.7382, allocations: 315.7 kB / 0.963 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.7383, allocations: 0.6994 MB / 0.9636 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.809e-05/0.7384, allocations: 21.09 kB / 0.9637 GB, free: 1.039 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/0.7385, allocations: 15.67 kB / 0.9637 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7385, allocations: 4 kB / 0.9637 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of Templates: time 0.003175/0.7417, allocations: 1.217 MB / 0.9649 GB, free: 420 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/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