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.001622/0.001622, allocations: 108.1 kB / 16.41 MB, free: 6.496 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.001732/0.001732, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.217/2.217, allocations: 390.3 MB / 0.6655 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 67.91 kB / 0.9516 GB, free: 7.625 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.1/1.102, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.003161/1.105, allocations: 1.577 MB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001111/1.106, allocations: 0.5986 MB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.818e-05/1.106, allocations: 1.125 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.387e-05/1.106, allocations: 5.438 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/1.106, allocations: 10.73 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/1.107, allocations: 47.81 kB / 1.091 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001225/1.107, allocations: 54.81 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/1.107, allocations: 12.86 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/1.107, allocations: 28.17 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.786e-05/1.107, allocations: 20.72 kB / 1.091 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/1.107, allocations: 2.875 kB / 1.091 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/1.107, allocations: 57.28 kB / 1.091 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/1.107, allocations: 20.42 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.658e-05/1.107, allocations: 32.31 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002573/1.108, allocations: 97.47 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/1.108, allocations: 0.9062 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.754e-06/1.108, allocations: 0 / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.715e-06/1.108, allocations: 1.125 kB / 1.091 GB, free: 3.828 MB / 0.8575 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.000573/1.108, allocations: 389.8 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/1.108, allocations: 9.547 kB / 1.092 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009684/1.109, allocations: 212.2 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/1.11, allocations: 192.1 kB / 1.092 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.218e-05/1.11, allocations: 32.02 kB / 1.092 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/1.11, allocations: 6.281 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/1.11, allocations: 174.4 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/1.11, allocations: 3.938 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/1.11, allocations: 0.7812 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/1.11, allocations: 0.75 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/1.111, allocations: 235 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/1.112, allocations: 0.5141 MB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006785/1.113, allocations: 240 kB / 1.093 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/1.113, allocations: 124 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/1.113, allocations: 0.9062 kB / 1.093 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/1.113, allocations: 31.69 kB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.675e-06/1.113, allocations: 0 / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001125/1.114, allocations: 367.7 kB / 1.094 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/1.114, allocations: 56.34 kB / 1.094 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/1.115, allocations: 177.8 kB / 1.094 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/1.115, allocations: 25.7 kB / 1.094 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.348e-05/1.115, allocations: 107.2 kB / 1.094 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/1.115, allocations: 5.453 kB / 1.094 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.087e-05/1.115, allocations: 23.83 kB / 1.094 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.264e-05/1.115, allocations: 320.8 kB / 1.094 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/1.115, allocations: 113.9 kB / 1.094 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/1.115, allocations: 111 kB / 1.094 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000604/1.116, allocations: 201.9 kB / 1.095 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/1.116, allocations: 4 kB / 1.095 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0007165/1.117, allocations: 255.2 kB / 1.095 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/1.117, allocations: 5.25 kB / 1.095 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/1.117, allocations: 4 kB / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/1.117, allocations: 1.906 kB / 1.095 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002434/1.117, allocations: 46.78 kB / 1.095 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/1.117, allocations: 4.438 kB / 1.095 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/1.117, allocations: 41.59 kB / 1.095 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/1.117, allocations: 4.891 kB / 1.095 GB, free: 1.738 MB / 0.8575 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 8.557e-05/1.117, allocations: 118.2 kB / 1.095 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/1.117, allocations: 7.688 kB / 1.095 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/1.118, allocations: 8.594 kB / 1.095 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.118, allocations: 1.812 kB / 1.095 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/1.118, allocations: 3.938 kB / 1.095 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/1.118, allocations: 4.906 kB / 1.095 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/1.118, allocations: 250 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.118, allocations: 0.7969 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00021/1.118, allocations: 42.94 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/1.118, allocations: 0.5938 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/1.118, allocations: 4.234 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/1.118, allocations: 1.297 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/1.118, allocations: 5.062 kB / 1.095 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/1.119, allocations: 358.1 kB / 1.096 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.905e-05/1.119, allocations: 84.5 kB / 1.096 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/1.119, allocations: 9.719 kB / 1.096 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/1.119, allocations: 33.36 kB / 1.096 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/1.119, allocations: 5.672 kB / 1.096 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.46e-05/1.119, allocations: 9.078 kB / 1.096 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001077/1.119, allocations: 128 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/1.119, allocations: 0 / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002795/1.12, allocations: 15.53 kB / 1.096 GB, free: 1.016 MB / 0.8575 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.0001657/1.12, allocations: 101.6 kB / 1.096 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007233/1.121, allocations: 234.3 kB / 1.096 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/1.121, allocations: 4.625 kB / 1.096 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000377/1.121, allocations: 124 kB / 1.096 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002403/1.121, allocations: 6.281 kB / 1.096 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/1.122, allocations: 316.5 kB / 1.097 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/1.122, allocations: 0.6984 MB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.258e-05/1.122, allocations: 20.42 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/1.122, allocations: 0 / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of Templates: time 0.004627/1.127, allocations: 1.671 MB / 1.099 GB, free: 15.82 MB / 0.8731 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