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.005354/0.005354, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001239/0.001239, allocations: 194.5 kB / 16.67 MB, free: 5.52 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.17 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.174/2.174, allocations: 390.2 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.89 kB / 0.9509 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8335/0.8347, allocations: 140.4 MB / 1.088 GB, free: 5.539 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.00299/0.8378, allocations: 1.587 MB / 1.089 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.8388, allocations: 0.5936 MB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.619e-05/0.8389, allocations: 1.062 kB / 1.09 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.67e-05/0.8389, allocations: 5.156 kB / 1.09 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.965e-05/0.839, allocations: 10.3 kB / 1.09 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.8394, allocations: 51.78 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000113/0.8395, allocations: 55.45 kB / 1.09 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.8396, allocations: 16.8 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.722e-05/0.8397, allocations: 20.22 kB / 1.09 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.214e-05/0.8398, allocations: 20.94 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.8398, allocations: 3.094 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.84, allocations: 61.33 kB / 1.09 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.702e-05/0.8401, allocations: 23.72 kB / 1.09 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.8401, allocations: 24.78 kB / 1.09 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.8403, allocations: 93.31 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.8403, allocations: 0.8125 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.253e-06/0.8403, allocations: 3.938 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.8403, allocations: 4.906 kB / 1.09 GB, free: 3.848 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.0005452/0.8409, allocations: 393.3 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.8409, allocations: 10.52 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009557/0.8419, allocations: 212.1 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.8421, allocations: 188.4 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.333e-05/0.8421, allocations: 31.95 kB / 1.091 GB, free: 3.207 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.8422, allocations: 13.88 kB / 1.091 GB, free: 3.195 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005002/0.8427, allocations: 170.4 kB / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.8427, allocations: 0 / 1.091 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.8427, allocations: 4.688 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.8427, allocations: 0.7812 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006704/0.8434, allocations: 234.9 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009142/0.8443, allocations: 0.5135 MB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.845, allocations: 240.6 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003871/0.8454, allocations: 119.6 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.8454, allocations: 0.625 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.8454, allocations: 36.08 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.264e-06/0.8454, allocations: 1.062 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.001156/0.8466, allocations: 374.9 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.8466, allocations: 52.03 kB / 1.093 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001817/0.8468, allocations: 167.8 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.8468, allocations: 25.7 kB / 1.093 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.095e-05/0.8469, allocations: 112.4 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.092e-05/0.8469, allocations: 4.656 kB / 1.093 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.937e-05/0.847, allocations: 20.72 kB / 1.093 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.635e-05/0.8471, allocations: 320.5 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.8474, allocations: 109.9 kB / 1.094 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.8477, allocations: 119 kB / 1.094 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005867/0.8483, allocations: 197.9 kB / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.8483, allocations: 0 / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0007039/0.849, allocations: 258.5 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.8491, allocations: 6.141 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.8491, allocations: 0 / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.8491, allocations: 0.7188 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.8494, allocations: 47.22 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.824e-06/0.8494, allocations: 4.469 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.8496, allocations: 38.27 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.8496, allocations: 4.781 kB / 1.094 GB, free: 1.766 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.54e-05/0.8497, allocations: 121.5 kB / 1.094 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.8498, allocations: 7.844 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.834e-05/0.8498, allocations: 13.42 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.8498, allocations: 4.719 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.8498, allocations: 3.938 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.8498, allocations: 1.531 kB / 1.094 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.8501, allocations: 246 kB / 1.095 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.8501, allocations: 0.5156 kB / 1.095 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002103/0.8503, allocations: 46.77 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.8504, allocations: 1.406 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.8504, allocations: 7.922 kB / 1.095 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.8504, allocations: 0.75 kB / 1.095 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.8504, allocations: 5 kB / 1.095 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007644/0.8512, allocations: 354 kB / 1.095 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.8512, allocations: 85.03 kB / 1.095 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.8512, allocations: 9.375 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002005/0.8514, allocations: 34.56 kB / 1.095 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.8515, allocations: 5.641 kB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-05/0.8515, allocations: 3.953 kB / 1.095 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001042/0.8516, allocations: 128.2 kB / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8516, allocations: 0 / 1.095 GB, free: 1.039 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002676/0.8519, allocations: 19.59 kB / 1.095 GB, free: 1.035 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.0001612/0.8521, allocations: 105.1 kB / 1.095 GB, free: 0.9453 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007277/0.8528, allocations: 235.4 kB / 1.096 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.8528, allocations: 0 / 1.096 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.8532, allocations: 119.5 kB / 1.096 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.8534, allocations: 3.047 kB / 1.096 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007091/0.8541, allocations: 290.2 kB / 1.096 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.8543, allocations: 0.697 MB / 1.097 GB, free: 40 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.617e-05/0.8544, allocations: 27.44 kB / 1.097 GB, free: 28 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.691e-05/0.8545, allocations: 20.05 kB / 1.097 GB, free: 16 kB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.8545, allocations: 0 / 1.097 GB, free: 16 kB / 0.8575 GB Notification: Performance of Templates: time 0.004602/0.8591, allocations: 1.299 MB / 1.098 GB, free: 15.88 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/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