Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.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.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") [: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.768/1.768, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001019/0.001019, allocations: 199.8 kB / 487 MB, free: 5.367 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.118/1.118, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0007862/0.0007862, allocations: 91.19 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.851e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.191, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5217/0.7127, allocations: 167.4 MB / 1.369 GB, free: 8.848 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.713, allocations: 88.75 kB / 1.369 GB, free: 8.797 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.06232/0.7753, allocations: 29.11 MB / 1.397 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.682e-05/0.7754, allocations: 16 kB / 1.397 GB, free: 0.5 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001367/0.7768, allocations: 0.8231 MB / 1.398 GB, free: 15.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.7768, allocations: 8.031 kB / 1.398 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007897/0.7776, allocations: 155 kB / 1.398 GB, free: 15.51 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.7782, allocations: 445.1 kB / 1.399 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.7782, allocations: 16 kB / 1.399 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-05/0.7783, allocations: 38.97 kB / 1.399 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006651/0.779, allocations: 460.7 kB / 1.399 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007968/0.7798, allocations: 0.6004 MB / 1.4 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.7798, allocations: 0 / 1.4 GB, free: 14.28 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.803e-05/0.7799, allocations: 7.922 kB / 1.4 GB, free: 14.27 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-05/0.7799, allocations: 40.23 kB / 1.4 GB, free: 14.24 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.7826, allocations: 2.727 MB / 1.402 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006762/0.7833, allocations: 0.5251 MB / 1.403 GB, free: 11.32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002768/0.7836, allocations: 241.9 kB / 1.403 GB, free: 11.17 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003826/0.784, allocations: 0.5583 MB / 1.404 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004081/0.7844, allocations: 345.9 kB / 1.404 GB, free: 10.22 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.894e-06/0.7844, allocations: 0 / 1.404 GB, free: 10.22 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008182/0.7852, allocations: 0.5015 MB / 1.405 GB, free: 9.844 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.7853, allocations: 82.3 kB / 1.405 GB, free: 9.746 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.7856, allocations: 303.1 kB / 1.405 GB, free: 9.512 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.7856, allocations: 43.92 kB / 1.405 GB, free: 9.469 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.7858, allocations: 232.2 kB / 1.405 GB, free: 9.258 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.7859, allocations: 154.8 kB / 1.405 GB, free: 9.125 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.651e-05/0.7859, allocations: 0 / 1.405 GB, free: 9.125 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.786, allocations: 362.7 kB / 1.406 GB, free: 8.781 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002764/0.7863, allocations: 211.1 kB / 1.406 GB, free: 8.66 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.7867, allocations: 332.3 kB / 1.406 GB, free: 8.387 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.787, allocations: 246.3 kB / 1.406 GB, free: 8.23 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.787, allocations: 0 / 1.406 GB, free: 8.23 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008182/0.7878, allocations: 0.5963 MB / 1.407 GB, free: 7.793 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002819/0.7881, allocations: 1.052 MB / 1.408 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.7882, allocations: 0 / 1.408 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.7882, allocations: 8 kB / 1.408 GB, free: 6.672 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/0.7887, allocations: 111.5 kB / 1.408 GB, free: 6.566 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.7887, allocations: 11.84 kB / 1.408 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004436/0.7892, allocations: 59.64 kB / 1.408 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.7892, allocations: 19.88 kB / 1.408 GB, free: 6.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.29e-06/0.7892, allocations: 4 kB / 1.408 GB, free: 6.477 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006734/0.7899, allocations: 469.7 kB / 1.409 GB, free: 6.156 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.7899, allocations: 4 kB / 1.409 GB, free: 6.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.67e-06/0.7899, allocations: 4 kB / 1.409 GB, free: 6.148 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003982/0.7903, allocations: 107.7 kB / 1.409 GB, free: 6.047 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.7903, allocations: 11.89 kB / 1.409 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.7907, allocations: 51.72 kB / 1.409 GB, free: 5.984 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.7908, allocations: 19.31 kB / 1.409 GB, free: 5.969 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0001174/0.7909, allocations: 130.8 kB / 1.409 GB, free: 5.84 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.791, allocations: 47.44 kB / 1.409 GB, free: 5.793 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008107/0.7918, allocations: 0.5478 MB / 1.41 GB, free: 5.398 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.7918, allocations: 8 kB / 1.41 GB, free: 5.391 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.7918, allocations: 4 kB / 1.41 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.7918, allocations: 7.875 kB / 1.41 GB, free: 5.379 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005075/0.7923, allocations: 0.5494 MB / 1.41 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.7923, allocations: 0 / 1.41 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.7928, allocations: 87.12 kB / 1.41 GB, free: 4.844 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.7928, allocations: 4 kB / 1.41 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.31e-05/0.7929, allocations: 7.984 kB / 1.41 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.7929, allocations: 4 kB / 1.41 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.7929, allocations: 0 / 1.41 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001047/0.7939, allocations: 0.8673 MB / 1.411 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.7941, allocations: 180.6 kB / 1.411 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.898e-05/0.7942, allocations: 3.375 kB / 1.411 GB, free: 4.031 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.7946, allocations: 35.95 kB / 1.411 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.7947, allocations: 50.33 kB / 1.411 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.7947, allocations: 18.38 kB / 1.411 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001912/0.7949, allocations: 234.3 kB / 1.412 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005832/0.7955, allocations: 247.2 kB / 1.412 GB, free: 3.527 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.0001967/0.7957, allocations: 153.3 kB / 1.412 GB, free: 3.379 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001003/0.7967, allocations: 0.8545 MB / 1.413 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7967, allocations: 0 / 1.413 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003194/0.7971, allocations: 267.8 kB / 1.413 GB, free: 2.598 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.7977, allocations: 143.7 kB / 1.413 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.7991, allocations: 0.814 MB / 1.414 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005622/0.7997, allocations: 0.9714 MB / 1.415 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.7997, allocations: 0 / 1.415 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of Templates: time 0.0149/0.8146, allocations: 10.54 MB / 1.425 GB, free: 6.344 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches