Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.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.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|norQSta.qNor|norQSta.canMelt|norQSta.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.003/2.003, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.0009319/0.0009319, allocations: 176.8 kB / 487.4 MB, free: 5.047 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.319/1.319, allocations: 221.5 MB / 0.7824 GB, free: 1.062 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008957/0.0008956, allocations: 99.78 kB / 0.9219 GB, free: 2.285 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.353e-05/1.355e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2313, allocations: 142.3 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7936/1.025, allocations: 151.3 MB / 1.354 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/1.025, allocations: 89.27 kB / 1.354 GB, free: 18.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008608/1.034, allocations: 3.028 MB / 1.357 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.833e-06/1.034, allocations: 0 / 1.357 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.349e-05/1.034, allocations: 3.875 kB / 1.357 GB, free: 33.77 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004663/1.034, allocations: 481.5 kB / 1.357 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/1.034, allocations: 11.75 kB / 1.357 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001278/1.036, allocations: 212 kB / 1.357 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/1.036, allocations: 316 kB / 1.358 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.305e-05/1.036, allocations: 72.27 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/1.036, allocations: 7.719 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004181/1.037, allocations: 360.6 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/1.037, allocations: 279.5 kB / 1.358 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.037, allocations: 4 kB / 1.358 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/1.037, allocations: 0 / 1.358 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/1.037, allocations: 3.969 kB / 1.358 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/1.038, allocations: 0.8723 MB / 1.359 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/1.039, allocations: 210.6 kB / 1.359 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/1.039, allocations: 184.1 kB / 1.36 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/1.039, allocations: 0 / 1.36 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.413e-05/1.039, allocations: 37.91 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 8.92e-07/1.039, allocations: 0 / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0007327/1.04, allocations: 378.3 kB / 1.36 GB, free: 32.6 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.764e-05/1.04, allocations: 51.41 kB / 1.36 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002226/1.04, allocations: 250.8 kB / 1.36 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/1.04, allocations: 25.7 kB / 1.36 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.006e-05/1.04, allocations: 153.7 kB / 1.361 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.205e-05/1.04, allocations: 21.09 kB / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.851e-05/1.04, allocations: 0 / 1.361 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001113/1.04, allocations: 340.4 kB / 1.361 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/1.04, allocations: 169.2 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/1.04, allocations: 164.2 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/1.041, allocations: 137.8 kB / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/1.041, allocations: 0 / 1.361 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0006526/1.042, allocations: 384.5 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/1.042, allocations: 9.672 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/1.042, allocations: 0.875 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/1.042, allocations: 0 / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003358/1.042, allocations: 61.92 kB / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/1.042, allocations: 0 / 1.362 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/1.042, allocations: 37.83 kB / 1.362 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.595e-05/1.042, allocations: 27.44 kB / 1.362 GB, free: 31.92 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (norQSta.canFreeze) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.075e-05/1.042, allocations: 112.7 kB / 1.362 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/1.042, allocations: 19.41 kB / 1.362 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/1.042, allocations: 26.86 kB / 1.362 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/1.042, allocations: 0 / 1.362 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/1.042, allocations: 5.594 kB / 1.362 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/1.042, allocations: 7.781 kB / 1.362 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/1.043, allocations: 395 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/1.043, allocations: 4 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002911/1.043, allocations: 58 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/1.043, allocations: 3.844 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/1.043, allocations: 10.41 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/1.043, allocations: 0.9375 kB / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.043, allocations: 0 / 1.362 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006829/1.044, allocations: 482.1 kB / 1.363 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/1.044, allocations: 102.1 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.137e-05/1.044, allocations: 1.828 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/1.044, allocations: 33.16 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/1.044, allocations: 12.02 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/1.044, allocations: 25.22 kB / 1.363 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001493/1.044, allocations: 203.7 kB / 1.363 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.044, allocations: 0 / 1.363 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002736/1.045, allocations: 42.5 kB / 1.363 GB, free: 31.26 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (norQSta.canFreeze) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0001482/1.045, allocations: 106.5 kB / 1.363 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003937/1.045, allocations: 410.9 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/1.045, allocations: 0 / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/1.046, allocations: 219.9 kB / 1.364 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001948/1.046, allocations: 20.67 kB / 1.364 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/1.046, allocations: 435.1 kB / 1.364 GB, free: 31.03 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/1.047, allocations: 0.7536 MB / 1.365 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001934/1.047, allocations: 66.3 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.827e-05/1.047, allocations: 28.97 kB / 1.365 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.047, allocations: 0 / 1.365 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of Templates: time 0.004152/1.051, allocations: 2.164 MB / 1.367 GB, free: 30.13 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_NormalizedHeatFlowRate.csv","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.NormalizedHeatFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches