Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.733/1.733, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009259/0.0009259, allocations: 184.7 kB / 487 MB, free: 5.391 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.383 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.0008116/0.0008116, allocations: 95.84 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.881e-06/5.891e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.189/0.1891, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.514/0.7031, allocations: 168.9 MB / 1.37 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.7033, allocations: 98.48 kB / 1.37 GB, free: 7.234 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0679/0.7712, allocations: 31.04 MB / 1.401 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.431e-05/0.7713, allocations: 16 kB / 1.401 GB, free: 13.28 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.00139/0.7727, allocations: 0.8245 MB / 1.401 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.7727, allocations: 9.031 kB / 1.401 GB, free: 12.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007984/0.7735, allocations: 159 kB / 1.402 GB, free: 12.28 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005795/0.7741, allocations: 439.2 kB / 1.402 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.7742, allocations: 16 kB / 1.402 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.7742, allocations: 39.89 kB / 1.402 GB, free: 11.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006718/0.7749, allocations: 468.4 kB / 1.402 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000805/0.7757, allocations: 0.5957 MB / 1.403 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.7758, allocations: 3.938 kB / 1.403 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.7758, allocations: 0 / 1.403 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.676e-05/0.7759, allocations: 44.53 kB / 1.403 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.7787, allocations: 2.726 MB / 1.406 GB, free: 8.484 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.7794, allocations: 0.523 MB / 1.406 GB, free: 8.109 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002855/0.7797, allocations: 240.4 kB / 1.406 GB, free: 7.953 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004209/0.7802, allocations: 0.5584 MB / 1.407 GB, free: 7.266 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004293/0.7806, allocations: 342.4 kB / 1.407 GB, free: 7.008 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.743e-06/0.7806, allocations: 0 / 1.407 GB, free: 7.008 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007898/0.7814, allocations: 0.502 MB / 1.408 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.7815, allocations: 85.55 kB / 1.408 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002762/0.7818, allocations: 304 kB / 1.408 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.114e-05/0.7818, allocations: 41.59 kB / 1.408 GB, free: 6.254 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.7819, allocations: 233.8 kB / 1.408 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.782, allocations: 151.9 kB / 1.409 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.7821, allocations: 0 / 1.409 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.7822, allocations: 354 kB / 1.409 GB, free: 5.574 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.7825, allocations: 212.7 kB / 1.409 GB, free: 5.453 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003562/0.7828, allocations: 340.2 kB / 1.409 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.7832, allocations: 246.6 kB / 1.41 GB, free: 5.016 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7832, allocations: 0 / 1.41 GB, free: 5.016 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009043/0.7841, allocations: 0.5982 MB / 1.41 GB, free: 4.574 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003138/0.7845, allocations: 1.05 MB / 1.411 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.7845, allocations: 4 kB / 1.411 GB, free: 3.461 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.7845, allocations: 4 kB / 1.411 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005189/0.785, allocations: 114.9 kB / 1.411 GB, free: 3.348 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.785, allocations: 7.906 kB / 1.411 GB, free: 3.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/0.7855, allocations: 59.64 kB / 1.412 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.7856, allocations: 19.81 kB / 1.412 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.338e-06/0.7856, allocations: 0 / 1.412 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006978/0.7863, allocations: 480.4 kB / 1.412 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.7863, allocations: 4 kB / 1.412 GB, free: 2.934 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.131e-06/0.7863, allocations: 4 kB / 1.412 GB, free: 2.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.7867, allocations: 107.3 kB / 1.412 GB, free: 2.828 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.7867, allocations: 7.984 kB / 1.412 GB, free: 2.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003851/0.7871, allocations: 55.62 kB / 1.412 GB, free: 2.766 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.487e-05/0.7872, allocations: 19.31 kB / 1.412 GB, free: 2.75 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.0001295/0.7873, allocations: 127.5 kB / 1.412 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.477e-05/0.7874, allocations: 47.44 kB / 1.412 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008208/0.7882, allocations: 0.5436 MB / 1.413 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.7882, allocations: 8 kB / 1.413 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7882, allocations: 3.938 kB / 1.413 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.7882, allocations: 0 / 1.413 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.7888, allocations: 0.5545 MB / 1.413 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.7888, allocations: 4 kB / 1.413 GB, free: 1.715 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004862/0.7893, allocations: 91.31 kB / 1.414 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.7893, allocations: 4.031 kB / 1.414 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.647e-05/0.7894, allocations: 15.48 kB / 1.414 GB, free: 1.613 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.7894, allocations: 4 kB / 1.414 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7894, allocations: 0 / 1.414 GB, free: 1.609 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001073/0.7905, allocations: 0.8591 MB / 1.414 GB, free: 0.9883 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002432/0.7907, allocations: 176.5 kB / 1.415 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.7908, allocations: 6.5 kB / 1.415 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.7911, allocations: 31.95 kB / 1.415 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.7913, allocations: 46.17 kB / 1.415 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.7913, allocations: 19.12 kB / 1.415 GB, free: 0.7383 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002051/0.7915, allocations: 242.8 kB / 1.415 GB, free: 0.5547 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000648/0.7922, allocations: 254.1 kB / 1.415 GB, free: 316 kB / 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.0001955/0.7924, allocations: 144 kB / 1.415 GB, free: 164 kB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001067/0.7935, allocations: 0.861 MB / 1.416 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7935, allocations: 0 / 1.416 GB, free: 15.56 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003277/0.7938, allocations: 263.1 kB / 1.416 GB, free: 15.38 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006645/0.7945, allocations: 142.4 kB / 1.416 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.796, allocations: 0.8165 MB / 1.417 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006893/0.7967, allocations: 0.97 MB / 1.418 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of SimCode: time 2.3e-07/0.7967, allocations: 0 / 1.418 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of Templates: time 0.01565/0.8123, allocations: 10.54 MB / 1.429 GB, free: 3.133 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches