Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.711/1.711, allocations: 390.4 MB / 397.7 MB, free: 1.922 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008978/0.0008978, allocations: 175.1 kB / 490.8 MB, free: 7.516 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.062/1.062, allocations: 221.3 MB / 0.7863 GB, free: 252 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008066/0.0008067, allocations: 92.66 kB / 0.9264 GB, free: 0.6328 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 5.611e-06/5.631e-06, allocations: 4 kB / 1.072 GB, free: 137.5 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1673, allocations: 143 MB / 1.212 GB, free: 10.56 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.458/0.6254, allocations: 168.2 MB / 1.376 GB, free: 9.777 MB / 0.8467 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.6256, allocations: 95.92 kB / 1.376 GB, free: 9.684 MB / 0.8467 GB Notification: Performance of FrontEnd: time 0.0631/0.6887, allocations: 29.1 MB / 1.404 GB, free: 12.36 MB / 0.8779 GB Notification: Performance of Transformations before backend: time 2.376e-05/0.6888, allocations: 12 kB / 1.404 GB, free: 12.35 MB / 0.8779 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.00122/0.69, allocations: 0.8295 MB / 1.405 GB, free: 11.46 MB / 0.8779 GB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.69, allocations: 12.03 kB / 1.405 GB, free: 11.45 MB / 0.8779 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007724/0.6908, allocations: 155 kB / 1.405 GB, free: 11.3 MB / 0.8779 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005579/0.6914, allocations: 447.2 kB / 1.406 GB, free: 10.83 MB / 0.8779 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.6914, allocations: 12 kB / 1.406 GB, free: 10.82 MB / 0.8779 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.6915, allocations: 39.94 kB / 1.406 GB, free: 10.78 MB / 0.8779 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006669/0.6922, allocations: 466.1 kB / 1.406 GB, free: 10.32 MB / 0.8779 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000807/0.693, allocations: 0.6087 MB / 1.407 GB, free: 9.68 MB / 0.8779 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.693, allocations: 0 / 1.407 GB, free: 9.68 MB / 0.8779 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.796e-05/0.693, allocations: 8 kB / 1.407 GB, free: 9.672 MB / 0.8779 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.435e-05/0.6931, allocations: 44.97 kB / 1.407 GB, free: 9.629 MB / 0.8779 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002664/0.6958, allocations: 2.715 MB / 1.41 GB, free: 6.695 MB / 0.8779 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006746/0.6965, allocations: 0.5307 MB / 1.41 GB, free: 6.145 MB / 0.8779 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.6968, allocations: 234.4 kB / 1.41 GB, free: 5.91 MB / 0.8779 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003623/0.6971, allocations: 0.57 MB / 1.411 GB, free: 5.211 MB / 0.8779 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.6975, allocations: 342.9 kB / 1.411 GB, free: 4.859 MB / 0.8779 GB Notification: Performance of pre-optimization done (n=49): time 1.583e-06/0.6976, allocations: 0 / 1.411 GB, free: 4.859 MB / 0.8779 GB Notification: Performance of matching and sorting (n=49): time 0.0007613/0.6983, allocations: 0.5024 MB / 1.412 GB, free: 4.348 MB / 0.8779 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.6984, allocations: 85.53 kB / 1.412 GB, free: 4.246 MB / 0.8779 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.6986, allocations: 300.8 kB / 1.412 GB, free: 3.953 MB / 0.8779 GB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.6987, allocations: 33.7 kB / 1.412 GB, free: 3.914 MB / 0.8779 GB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.6988, allocations: 236.6 kB / 1.412 GB, free: 3.676 MB / 0.8779 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.6989, allocations: 157.7 kB / 1.412 GB, free: 3.52 MB / 0.8779 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.57e-05/0.699, allocations: 0 / 1.412 GB, free: 3.52 MB / 0.8779 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.6991, allocations: 358.8 kB / 1.413 GB, free: 3.16 MB / 0.8779 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002854/0.6994, allocations: 213.3 kB / 1.413 GB, free: 2.953 MB / 0.8779 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003453/0.6997, allocations: 330.1 kB / 1.413 GB, free: 2.582 MB / 0.8779 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.7001, allocations: 243.8 kB / 1.414 GB, free: 2.344 MB / 0.8779 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.7001, allocations: 0 / 1.414 GB, free: 2.344 MB / 0.8779 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008518/0.7009, allocations: 0.6021 MB / 1.414 GB, free: 1.734 MB / 0.8779 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.7012, allocations: 1.047 MB / 1.415 GB, free: 0.6055 MB / 0.8779 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.7012, allocations: 4 kB / 1.415 GB, free: 0.6016 MB / 0.8779 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.7013, allocations: 11.98 kB / 1.415 GB, free: 0.5898 MB / 0.8779 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.7018, allocations: 107.8 kB / 1.415 GB, free: 496 kB / 0.8779 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.7018, allocations: 8 kB / 1.415 GB, free: 488 kB / 0.8779 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/0.7022, allocations: 59.55 kB / 1.415 GB, free: 428 kB / 0.8779 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.7023, allocations: 23.98 kB / 1.415 GB, free: 404 kB / 0.8779 GB Notification: Performance of prepare postOptimizeDAE: time 5.741e-06/0.7023, allocations: 4 kB / 1.415 GB, free: 400 kB / 0.8779 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006896/0.703, allocations: 468.2 kB / 1.416 GB, free: 15.93 MB / 0.8936 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.056e-06/0.703, allocations: 0 / 1.416 GB, free: 15.93 MB / 0.8936 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.883e-06/0.703, allocations: 8 kB / 1.416 GB, free: 15.93 MB / 0.8936 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.7034, allocations: 103.8 kB / 1.416 GB, free: 15.82 MB / 0.8936 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.7034, allocations: 15.88 kB / 1.416 GB, free: 15.81 MB / 0.8936 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003682/0.7038, allocations: 55.58 kB / 1.416 GB, free: 15.75 MB / 0.8936 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.7039, allocations: 20 kB / 1.416 GB, free: 15.73 MB / 0.8936 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.0001134/0.704, allocations: 126.9 kB / 1.416 GB, free: 15.61 MB / 0.8936 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/0.704, allocations: 47.44 kB / 1.416 GB, free: 15.56 MB / 0.8936 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008124/0.7049, allocations: 0.5431 MB / 1.417 GB, free: 15.01 MB / 0.8936 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.7049, allocations: 12 kB / 1.417 GB, free: 15 MB / 0.8936 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.7049, allocations: 0 / 1.417 GB, free: 15 MB / 0.8936 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.7049, allocations: 3.984 kB / 1.417 GB, free: 14.99 MB / 0.8936 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000521/0.7054, allocations: 0.5526 MB / 1.417 GB, free: 14.4 MB / 0.8936 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7054, allocations: 0 / 1.417 GB, free: 14.4 MB / 0.8936 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.7059, allocations: 87.88 kB / 1.417 GB, free: 14.32 MB / 0.8936 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.7059, allocations: 4 kB / 1.417 GB, free: 14.31 MB / 0.8936 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.706, allocations: 4 kB / 1.417 GB, free: 14.31 MB / 0.8936 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.706, allocations: 12.06 kB / 1.417 GB, free: 14.3 MB / 0.8936 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.706, allocations: 4 kB / 1.417 GB, free: 14.29 MB / 0.8936 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001062/0.707, allocations: 0.8614 MB / 1.418 GB, free: 13.4 MB / 0.8936 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.7072, allocations: 180.4 kB / 1.418 GB, free: 13.21 MB / 0.8936 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.089e-05/0.7073, allocations: 8 kB / 1.418 GB, free: 13.2 MB / 0.8936 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.7077, allocations: 27.97 kB / 1.418 GB, free: 13.17 MB / 0.8936 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.7078, allocations: 48.36 kB / 1.418 GB, free: 13.12 MB / 0.8936 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.7078, allocations: 19.98 kB / 1.418 GB, free: 13.11 MB / 0.8936 GB Notification: Performance of sort global known variables: time 0.0001959/0.708, allocations: 235.1 kB / 1.419 GB, free: 12.88 MB / 0.8936 GB Notification: Performance of remove unused functions: time 0.0005678/0.7086, allocations: 255.1 kB / 1.419 GB, free: 12.62 MB / 0.8936 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.0001663/0.7088, allocations: 139 kB / 1.419 GB, free: 12.48 MB / 0.8936 GB Notification: Performance of simCode: created initialization part: time 0.001025/0.7098, allocations: 0.8622 MB / 1.42 GB, free: 11.61 MB / 0.8936 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.7098, allocations: 0 / 1.42 GB, free: 11.61 MB / 0.8936 GB Notification: Performance of simCode: created simulation system equations: time 0.0003254/0.7102, allocations: 269.5 kB / 1.42 GB, free: 11.35 MB / 0.8936 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.7108, allocations: 145.4 kB / 1.42 GB, free: 11.21 MB / 0.8936 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.7122, allocations: 0.815 MB / 1.421 GB, free: 10.36 MB / 0.8936 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005751/0.7128, allocations: 0.9769 MB / 1.422 GB, free: 9.352 MB / 0.8936 GB Notification: Performance of SimCode: time 3.31e-07/0.7128, allocations: 0 / 1.422 GB, free: 9.352 MB / 0.8936 GB Notification: Performance of Templates: time 0.01467/0.7274, allocations: 10.52 MB / 1.432 GB, free: 14.93 MB / 0.9092 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches