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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001683/0.001684, allocations: 179.4 kB / 498.1 MB, free: 5.691 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.737/1.737, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009672, allocations: 100.3 kB / 0.9346 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003959/0.000396, allocations: 9.75 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3448, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.223/0.5679, allocations: 150.8 MB / 1.37 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/0.5683, allocations: 91.92 kB / 1.37 GB, free: 11.13 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007375/0.5757, allocations: 1.709 MB / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.166e-06/0.5758, allocations: 0 / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.319e-05/0.5758, allocations: 0 / 1.372 GB, free: 9.426 MB / 0.8698 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.0007006/0.5765, allocations: 382.9 kB / 1.372 GB, free: 9.004 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.5766, allocations: 8.031 kB / 1.372 GB, free: 8.996 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/0.5776, allocations: 103.8 kB / 1.372 GB, free: 8.895 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002839/0.5779, allocations: 195.3 kB / 1.373 GB, free: 8.66 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.578, allocations: 37.69 kB / 1.373 GB, free: 8.617 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.709e-05/0.5781, allocations: 4 kB / 1.373 GB, free: 8.613 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.5787, allocations: 165.5 kB / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.5787, allocations: 0 / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.5788, allocations: 0 / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.5788, allocations: 0 / 1.373 GB, free: 8.445 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008583/0.5796, allocations: 195.8 kB / 1.373 GB, free: 8.254 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.581, allocations: 467.8 kB / 1.373 GB, free: 7.742 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/0.5818, allocations: 202.3 kB / 1.374 GB, free: 7.535 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.5818, allocations: 0 / 1.374 GB, free: 7.535 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.414e-05/0.5819, allocations: 38.52 kB / 1.374 GB, free: 7.488 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.633e-06/0.5819, allocations: 4 kB / 1.374 GB, free: 7.484 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.001426/0.5833, allocations: 309.4 kB / 1.374 GB, free: 7.176 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.5834, allocations: 55.44 kB / 1.374 GB, free: 7.109 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.5836, allocations: 154 kB / 1.374 GB, free: 6.953 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.5837, allocations: 29.7 kB / 1.374 GB, free: 6.918 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/0.5838, allocations: 96.14 kB / 1.374 GB, free: 6.82 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.5838, allocations: 11.89 kB / 1.374 GB, free: 6.809 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.5838, allocations: 0 / 1.374 GB, free: 6.809 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001897/0.584, allocations: 318.8 kB / 1.375 GB, free: 6.488 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003757/0.5844, allocations: 95.91 kB / 1.375 GB, free: 6.395 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000368/0.5848, allocations: 91.89 kB / 1.375 GB, free: 6.305 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/0.5852, allocations: 79.98 kB / 1.375 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.5852, allocations: 0 / 1.375 GB, free: 6.227 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0008324/0.586, allocations: 221.4 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.5861, allocations: 4.781 kB / 1.375 GB, free: 6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.5861, allocations: 3.984 kB / 1.375 GB, free: 5.996 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.5861, allocations: 7.984 kB / 1.375 GB, free: 5.988 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.5864, allocations: 31.95 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.5864, allocations: 0 / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001905/0.5866, allocations: 15.92 kB / 1.375 GB, free: 5.941 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.195e-05/0.5867, allocations: 11.98 kB / 1.375 GB, free: 5.93 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.5868, allocations: 118.5 kB / 1.375 GB, free: 5.805 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.388e-05/0.5869, allocations: 15.89 kB / 1.375 GB, free: 5.789 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.5869, allocations: 11.88 kB / 1.375 GB, free: 5.777 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.587, allocations: 3.953 kB / 1.375 GB, free: 5.773 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.587, allocations: 3.938 kB / 1.375 GB, free: 5.77 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.587, allocations: 0 / 1.375 GB, free: 5.77 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.5874, allocations: 233.5 kB / 1.376 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.5874, allocations: 0 / 1.376 GB, free: 5.492 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.5876, allocations: 27.95 kB / 1.376 GB, free: 5.465 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.5876, allocations: 0 / 1.376 GB, free: 5.465 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.5877, allocations: 11.98 kB / 1.376 GB, free: 5.453 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.5877, allocations: 4 kB / 1.376 GB, free: 5.449 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.5877, allocations: 7.891 kB / 1.376 GB, free: 5.441 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009281/0.5886, allocations: 315.3 kB / 1.376 GB, free: 5.117 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.951e-05/0.5888, allocations: 88.92 kB / 1.376 GB, free: 5.012 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.5888, allocations: 4 kB / 1.376 GB, free: 5.008 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.589, allocations: 19.97 kB / 1.376 GB, free: 4.988 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.5891, allocations: 3.953 kB / 1.376 GB, free: 4.984 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.5891, allocations: 15.92 kB / 1.376 GB, free: 4.969 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001559/0.5893, allocations: 128.7 kB / 1.376 GB, free: 4.844 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5893, allocations: 4.031 kB / 1.376 GB, free: 4.84 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0004136/0.5897, allocations: 16 kB / 1.376 GB, free: 4.824 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002418/0.59, allocations: 107 kB / 1.376 GB, free: 4.711 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0007944/0.5908, allocations: 219.8 kB / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.5908, allocations: 0 / 1.376 GB, free: 4.496 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.5912, allocations: 103.9 kB / 1.377 GB, free: 4.395 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.5915, allocations: 4 kB / 1.377 GB, free: 4.391 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008765/0.5924, allocations: 290.5 kB / 1.377 GB, free: 4.078 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.5928, allocations: 0.7004 MB / 1.378 GB, free: 3.352 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.593, allocations: 24 kB / 1.378 GB, free: 3.328 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.329e-05/0.5931, allocations: 19.42 kB / 1.378 GB, free: 3.309 MB / 0.8698 GB Notification: Performance of SimCode: time 4.01e-07/0.5931, allocations: 0 / 1.378 GB, free: 3.309 MB / 0.8698 GB Notification: Performance of Templates: time 0.00515/0.5983, allocations: 1.122 MB / 1.379 GB, free: 2.188 MB / 0.8698 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","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.QStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches