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.001433/0.001433, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001787/0.001788, allocations: 191.1 kB / 16.25 MB, free: 6.625 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.396/1.396, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.41/2.41, allocations: 390.2 MB / 0.6643 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6664/0.6677, allocations: 140.4 MB / 0.9491 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar): time 0.002771/0.6705, allocations: 1.635 MB / 0.9507 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.6716, allocations: 0.582 MB / 0.9513 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.824e-05/0.6717, allocations: 5.219 kB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.814e-05/0.6718, allocations: 3.984 kB / 0.9513 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.886e-05/0.6719, allocations: 6.906 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.6723, allocations: 46.61 kB / 0.9513 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.6724, allocations: 52.56 kB / 0.9514 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.6726, allocations: 19.73 kB / 0.9514 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.43e-05/0.6727, allocations: 28.44 kB / 0.9514 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.987e-05/0.6728, allocations: 19.61 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.6728, allocations: 3.594 kB / 0.9514 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.673, allocations: 48.64 kB / 0.9515 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.827e-05/0.673, allocations: 23.34 kB / 0.9515 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.6731, allocations: 26.53 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.6732, allocations: 103.1 kB / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.6733, allocations: 0 / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6733, allocations: 0 / 0.9516 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.6733, allocations: 5.125 kB / 0.9516 GB, free: 7.137 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.0005672/0.6738, allocations: 394.5 kB / 0.952 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.6739, allocations: 9.156 kB / 0.952 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009031/0.6748, allocations: 217.4 kB / 0.9522 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.675, allocations: 189.7 kB / 0.9524 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.804e-05/0.675, allocations: 34.14 kB / 0.9525 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.675, allocations: 5.219 kB / 0.9525 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004113/0.6755, allocations: 178 kB / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.6755, allocations: 0 / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.6755, allocations: 0 / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.6755, allocations: 1.219 kB / 0.9526 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005685/0.6761, allocations: 241.8 kB / 0.9529 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007677/0.6769, allocations: 0.5051 MB / 0.9534 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005579/0.6774, allocations: 237.3 kB / 0.9536 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.6777, allocations: 120.1 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.6777, allocations: 1.094 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.6778, allocations: 43.53 kB / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.6778, allocations: 0 / 0.9537 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0009547/0.6787, allocations: 362.4 kB / 0.9541 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.6788, allocations: 51.41 kB / 0.9541 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.679, allocations: 177.9 kB / 0.9543 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.466e-05/0.679, allocations: 29.83 kB / 0.9543 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.837e-05/0.679, allocations: 105.2 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.6791, allocations: 9.344 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.6791, allocations: 17.98 kB / 0.9545 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.449e-05/0.6792, allocations: 321.8 kB / 0.9548 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.6795, allocations: 114.9 kB / 0.9549 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.6797, allocations: 110.1 kB / 0.955 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.6802, allocations: 204.6 kB / 0.9552 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.6803, allocations: 0 / 0.9552 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0005932/0.6808, allocations: 256.8 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.6809, allocations: 4.5 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6809, allocations: 1.031 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.6809, allocations: 8.016 kB / 0.9554 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.6811, allocations: 41.58 kB / 0.9555 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.6811, allocations: 4.969 kB / 0.9555 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.6813, allocations: 36.52 kB / 0.9555 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.6813, allocations: 6.656 kB / 0.9555 GB, free: 4.293 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.459e-05/0.6814, allocations: 118.9 kB / 0.9556 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.6814, allocations: 7.781 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.174e-05/0.6815, allocations: 7.156 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.6815, allocations: 5.125 kB / 0.9556 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.6815, allocations: 7.922 kB / 0.9557 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.6815, allocations: 0 / 0.9557 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.6817, allocations: 243.2 kB / 0.9559 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.6817, allocations: 1.438 kB / 0.9559 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.6819, allocations: 48.5 kB / 0.9559 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.6819, allocations: 3.938 kB / 0.9559 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.6819, allocations: 6.141 kB / 0.9559 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.6819, allocations: 0 / 0.9559 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6819, allocations: 9.812 kB / 0.956 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.6825, allocations: 358.4 kB / 0.9563 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.6826, allocations: 83.48 kB / 0.9564 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.6826, allocations: 5.531 kB / 0.9564 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.6828, allocations: 32.34 kB / 0.9564 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-05/0.6828, allocations: 5.781 kB / 0.9564 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.6828, allocations: 5.922 kB / 0.9564 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.815e-05/0.6829, allocations: 128.3 kB / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6829, allocations: 3.938 kB / 0.9565 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002547/0.6832, allocations: 20.09 kB / 0.9566 GB, free: 3.41 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.0001334/0.6833, allocations: 98.28 kB / 0.9567 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005873/0.6839, allocations: 236.7 kB / 0.9569 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.6839, allocations: 1.375 kB / 0.9569 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002886/0.6842, allocations: 113.6 kB / 0.957 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.6845, allocations: 9.688 kB / 0.957 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005634/0.685, allocations: 311.5 kB / 0.9573 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.6852, allocations: 0.6948 MB / 0.958 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001061/0.6853, allocations: 21.09 kB / 0.958 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.257e-05/0.6853, allocations: 20 kB / 0.958 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.6853, allocations: 0 / 0.958 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of Templates: time 0.003343/0.6887, allocations: 1.276 MB / 0.9593 GB, free: 1.57 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