Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.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.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") translateModel(Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|soc.Q_flow|soc.SOC",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.05/2.05, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.0009727/0.0009727, allocations: 172.5 kB / 487.4 MB, free: 5.051 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.367/1.367, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 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.00087/0.00087, allocations: 95.64 kB / 0.9219 GB, free: 2.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.806e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2412, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8119/1.053, allocations: 149.7 MB / 1.352 GB, free: 18.37 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/1.053, allocations: 82.66 kB / 1.352 GB, free: 18.37 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003766/1.057, allocations: 1.175 MB / 1.353 GB, free: 34 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.273e-06/1.057, allocations: 0 / 1.353 GB, free: 34 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.712e-06/1.057, allocations: 0 / 1.353 GB, free: 34 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003914/1.058, allocations: 362.7 kB / 1.354 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/1.058, allocations: 8.344 kB / 1.354 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.245e-05/1.058, allocations: 4.391 kB / 1.354 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.206e-05/1.058, allocations: 171.6 kB / 1.354 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/1.058, allocations: 5.047 kB / 1.354 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/1.058, allocations: 4.625 kB / 1.354 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/1.058, allocations: 31.27 kB / 1.354 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/1.058, allocations: 71.52 kB / 1.354 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/1.058, allocations: 0 / 1.354 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/1.058, allocations: 0.7969 kB / 1.354 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.058, allocations: 4 kB / 1.354 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/1.059, allocations: 293.7 kB / 1.354 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/1.059, allocations: 99.55 kB / 1.354 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.878e-05/1.059, allocations: 37.92 kB / 1.354 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/1.059, allocations: 3.844 kB / 1.354 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/1.059, allocations: 95.84 kB / 1.354 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=11): time 2.385e-06/1.059, allocations: 0 / 1.354 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0002483/1.059, allocations: 118.2 kB / 1.355 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/1.059, allocations: 63.22 kB / 1.355 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.111e-05/1.06, allocations: 99.97 kB / 1.355 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/1.06, allocations: 28.77 kB / 1.355 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.237e-05/1.06, allocations: 97.2 kB / 1.355 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/1.06, allocations: 22.27 kB / 1.355 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.57e-06/1.06, allocations: 0 / 1.355 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.06, allocations: 320.3 kB / 1.355 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.539e-05/1.06, allocations: 26.88 kB / 1.355 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-05/1.06, allocations: 41.11 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.025e-05/1.06, allocations: 18.31 kB / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/1.06, allocations: 0 / 1.355 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001165/1.06, allocations: 93.77 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/1.06, allocations: 7.625 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/1.06, allocations: 0.6562 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/1.06, allocations: 3.938 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.531e-05/1.06, allocations: 14.12 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/1.06, allocations: 0 / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.578e-05/1.06, allocations: 13.94 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/1.06, allocations: 0.7969 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.soc.charged,soc.charged,$PRE.soc.discharged,soc.discharged,soc.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 8.62e-05/1.06, allocations: 123.7 kB / 1.356 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/1.06, allocations: 8.578 kB / 1.356 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/1.06, allocations: 11.58 kB / 1.356 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/1.06, allocations: 0.5625 kB / 1.356 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/1.06, allocations: 0 / 1.356 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/1.06, allocations: 0.5625 kB / 1.356 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/1.061, allocations: 178.7 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/1.061, allocations: 1.188 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.255e-05/1.061, allocations: 10.19 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/1.061, allocations: 0 / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/1.061, allocations: 5.109 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/1.061, allocations: 0.7031 kB / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.061, allocations: 0 / 1.356 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/1.061, allocations: 198.4 kB / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/1.061, allocations: 89.81 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/1.061, allocations: 7.609 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.934e-05/1.061, allocations: 6.594 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.27e-05/1.061, allocations: 14.36 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/1.061, allocations: 8.906 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.219e-05/1.061, allocations: 87.95 kB / 1.356 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.061, allocations: 0 / 1.356 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001991/1.061, allocations: 16.45 kB / 1.356 GB, free: 31.81 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (soc.SOC) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,soc.charged,soc.discharged,soc.suspend) * Number of discrete states: 2 (soc.discharged,soc.charged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001325/1.062, allocations: 109.4 kB / 1.356 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000132/1.062, allocations: 68.94 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/1.062, allocations: 0 / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.817e-05/1.062, allocations: 56.97 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001571/1.062, allocations: 7.016 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/1.062, allocations: 189.2 kB / 1.357 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/1.063, allocations: 0.6929 MB / 1.357 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.061e-05/1.063, allocations: 13.94 kB / 1.357 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/1.063, allocations: 12.69 kB / 1.357 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.063, allocations: 0 / 1.357 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of Templates: time 0.002895/1.066, allocations: 0.8655 MB / 1.358 GB, free: 30.8 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.sim & ./Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Ice_BaseClasses_Examples_StateOfCharge.csv","../files/Buildings_9_Buildings.Fluid.Storage.Ice.BaseClasses.Examples.StateOfCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches