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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.999/1.999, allocations: 387.2 MB / 394.5 MB, free: 4.504 MB / 306.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 193 kB / 487 MB, free: 11.06 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 221.3 MB / 0.7819 GB, free: 3.969 MB / 0.5497 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 107.3 kB / 0.9213 GB, free: 5.07 MB / 0.6903 GB Notification: Performance of FrontEnd - loaded program: time 8.566e-06/8.587e-06, allocations: 4 kB / 1.066 GB, free: 141.1 MB / 0.7216 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2813, allocations: 142.3 MB / 1.205 GB, free: 14.78 MB / 0.7372 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7664/1.048, allocations: 149.6 MB / 1.351 GB, free: 2.57 MB / 0.8153 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/1.048, allocations: 87.94 kB / 1.351 GB, free: 2.484 MB / 0.8153 GB Notification: Performance of FrontEnd: time 0.003202/1.051, allocations: 0.8619 MB / 1.352 GB, free: 1.633 MB / 0.8153 GB Notification: Performance of Transformations before backend: time 6.983e-06/1.051, allocations: 4 kB / 1.352 GB, free: 1.629 MB / 0.8153 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.0004152/1.052, allocations: 354.3 kB / 1.353 GB, free: 1.238 MB / 0.8153 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/1.052, allocations: 8.031 kB / 1.353 GB, free: 1.23 MB / 0.8153 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.181e-05/1.052, allocations: 7.906 kB / 1.353 GB, free: 1.223 MB / 0.8153 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/1.052, allocations: 167 kB / 1.353 GB, free: 1.02 MB / 0.8153 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/1.052, allocations: 7.984 kB / 1.353 GB, free: 1.012 MB / 0.8153 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.284e-05/1.052, allocations: 8 kB / 1.353 GB, free: 1.004 MB / 0.8153 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001016/1.052, allocations: 28 kB / 1.353 GB, free: 0.9766 MB / 0.8153 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/1.052, allocations: 73.56 kB / 1.353 GB, free: 0.8984 MB / 0.8153 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/1.052, allocations: 0 / 1.353 GB, free: 0.8984 MB / 0.8153 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/1.052, allocations: 4 kB / 1.353 GB, free: 0.8945 MB / 0.8153 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/1.052, allocations: 0 / 1.353 GB, free: 0.8945 MB / 0.8153 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/1.053, allocations: 297.2 kB / 1.353 GB, free: 0.5664 MB / 0.8153 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/1.053, allocations: 87.42 kB / 1.353 GB, free: 484 kB / 0.8153 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.501e-05/1.053, allocations: 40.86 kB / 1.353 GB, free: 440 kB / 0.8153 GB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/1.053, allocations: 0 / 1.353 GB, free: 440 kB / 0.8153 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001296/1.053, allocations: 88.59 kB / 1.353 GB, free: 340 kB / 0.8153 GB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/1.053, allocations: 0 / 1.353 GB, free: 340 kB / 0.8153 GB Notification: Performance of matching and sorting (n=11): time 0.0001914/1.053, allocations: 103.2 kB / 1.353 GB, free: 228 kB / 0.8153 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/1.053, allocations: 52.61 kB / 1.353 GB, free: 164 kB / 0.8153 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.286e-05/1.054, allocations: 101 kB / 1.354 GB, free: 56 kB / 0.8153 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/1.054, allocations: 29.7 kB / 1.354 GB, free: 20 kB / 0.8153 GB Notification: Performance of collectInitialEqns (initialization): time 4.352e-05/1.054, allocations: 96.2 kB / 1.354 GB, free: 15.92 MB / 0.8309 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/1.054, allocations: 23.72 kB / 1.354 GB, free: 15.89 MB / 0.8309 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.758e-06/1.054, allocations: 0 / 1.354 GB, free: 15.89 MB / 0.8309 GB Notification: Performance of setup shared object (initialization): time 0.0001306/1.054, allocations: 322.8 kB / 1.354 GB, free: 15.57 MB / 0.8309 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-05/1.054, allocations: 20 kB / 1.354 GB, free: 15.55 MB / 0.8309 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.369e-05/1.054, allocations: 37.72 kB / 1.354 GB, free: 15.51 MB / 0.8309 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.971e-05/1.054, allocations: 24.48 kB / 1.354 GB, free: 15.48 MB / 0.8309 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/1.054, allocations: 0.75 kB / 1.354 GB, free: 15.48 MB / 0.8309 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000148/1.054, allocations: 101.5 kB / 1.354 GB, free: 15.38 MB / 0.8309 GB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/1.054, allocations: 8 kB / 1.354 GB, free: 15.37 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/1.054, allocations: 0 / 1.354 GB, free: 15.37 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/1.054, allocations: 4 kB / 1.354 GB, free: 15.37 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.94e-05/1.054, allocations: 12 kB / 1.354 GB, free: 15.36 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/1.054, allocations: 7.984 kB / 1.354 GB, free: 15.35 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.067e-05/1.054, allocations: 5.688 kB / 1.354 GB, free: 15.34 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/1.054, allocations: 7.938 kB / 1.354 GB, free: 15.34 MB / 0.8309 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 6.497e-05/1.054, allocations: 112.9 kB / 1.354 GB, free: 15.22 MB / 0.8309 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.928e-05/1.054, allocations: 7.906 kB / 1.354 GB, free: 15.21 MB / 0.8309 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/1.054, allocations: 16.28 kB / 1.354 GB, free: 15.19 MB / 0.8309 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/1.054, allocations: 0 / 1.354 GB, free: 15.19 MB / 0.8309 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.055, allocations: 0 / 1.354 GB, free: 15.19 MB / 0.8309 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/1.055, allocations: 3.938 kB / 1.354 GB, free: 15.19 MB / 0.8309 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/1.055, allocations: 170.3 kB / 1.355 GB, free: 14.98 MB / 0.8309 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/1.055, allocations: 0 / 1.355 GB, free: 14.98 MB / 0.8309 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.392e-05/1.055, allocations: 11.98 kB / 1.355 GB, free: 14.97 MB / 0.8309 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/1.055, allocations: 4 kB / 1.355 GB, free: 14.97 MB / 0.8309 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/1.055, allocations: 8 kB / 1.355 GB, free: 14.96 MB / 0.8309 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/1.055, allocations: 3.906 kB / 1.355 GB, free: 14.96 MB / 0.8309 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.055, allocations: 4 kB / 1.355 GB, free: 14.95 MB / 0.8309 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002601/1.055, allocations: 164.9 kB / 1.355 GB, free: 14.77 MB / 0.8309 GB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/1.055, allocations: 88.95 kB / 1.355 GB, free: 14.67 MB / 0.8309 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/1.055, allocations: 4 kB / 1.355 GB, free: 14.66 MB / 0.8309 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.32e-05/1.055, allocations: 16.16 kB / 1.355 GB, free: 14.65 MB / 0.8309 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/1.055, allocations: 15.91 kB / 1.355 GB, free: 14.63 MB / 0.8309 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/1.055, allocations: 4 kB / 1.355 GB, free: 14.63 MB / 0.8309 GB Notification: Performance of sort global known variables: time 3.617e-05/1.055, allocations: 87.27 kB / 1.355 GB, free: 14.54 MB / 0.8309 GB Notification: Performance of remove unused functions: time 0.000189/1.056, allocations: 16 kB / 1.355 GB, free: 14.53 MB / 0.8309 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.0001194/1.056, allocations: 103.2 kB / 1.355 GB, free: 14.42 MB / 0.8309 GB Notification: Performance of simCode: created initialization part: time 0.0001404/1.056, allocations: 75.92 kB / 1.355 GB, free: 14.34 MB / 0.8309 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/1.056, allocations: 4 kB / 1.355 GB, free: 14.34 MB / 0.8309 GB Notification: Performance of simCode: created simulation system equations: time 7.785e-05/1.056, allocations: 55.94 kB / 1.355 GB, free: 14.29 MB / 0.8309 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/1.056, allocations: 14.81 kB / 1.355 GB, free: 14.27 MB / 0.8309 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003655/1.056, allocations: 160.6 kB / 1.355 GB, free: 14.1 MB / 0.8309 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/1.057, allocations: 0.7114 MB / 1.356 GB, free: 13.36 MB / 0.8309 GB Notification: Performance of SimCode: time 1.462e-06/1.057, allocations: 0 / 1.356 GB, free: 13.36 MB / 0.8309 GB Notification: Performance of Templates: time 0.002929/1.06, allocations: 1.088 MB / 1.357 GB, free: 12.28 MB / 0.8309 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