Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.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.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_latest_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 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.0009012/0.0009012, allocations: 185.8 kB / 490.8 MB, free: 1.938 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.058/1.058, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008171/0.0008172, allocations: 97.53 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.009e-06/5.11e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1667, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.6108, allocations: 169.7 MB / 1.377 GB, free: 17.1 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.6111, allocations: 91.83 kB / 1.377 GB, free: 17.1 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.06372/0.6748, allocations: 31.04 MB / 1.408 GB, free: 3.117 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.312e-05/0.6748, allocations: 18.97 kB / 1.408 GB, free: 3.102 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.001159/0.676, allocations: 0.8306 MB / 1.409 GB, free: 18.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.654e-05/0.676, allocations: 8.031 kB / 1.409 GB, free: 18.25 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007419/0.6768, allocations: 151 kB / 1.409 GB, free: 18.1 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/0.6773, allocations: 442.9 kB / 1.409 GB, free: 17.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.136e-05/0.6773, allocations: 16 kB / 1.409 GB, free: 17.69 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.647e-05/0.6774, allocations: 39.94 kB / 1.409 GB, free: 17.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005883/0.678, allocations: 468.1 kB / 1.41 GB, free: 17.36 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006746/0.6787, allocations: 0.5935 MB / 1.41 GB, free: 16.89 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.6787, allocations: 0 / 1.41 GB, free: 16.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.627e-05/0.6787, allocations: 7.297 kB / 1.41 GB, free: 16.88 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-05/0.6788, allocations: 44.36 kB / 1.41 GB, free: 16.84 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.6812, allocations: 2.724 MB / 1.413 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006469/0.6819, allocations: 0.5284 MB / 1.413 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.6821, allocations: 244 kB / 1.414 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003861/0.6825, allocations: 0.5586 MB / 1.414 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003946/0.6829, allocations: 345.4 kB / 1.414 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.513e-06/0.6829, allocations: 4 kB / 1.414 GB, free: 12.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007482/0.6837, allocations: 0.4997 MB / 1.415 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.6837, allocations: 85.55 kB / 1.415 GB, free: 12.37 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.684, allocations: 305.5 kB / 1.415 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.6841, allocations: 28.39 kB / 1.415 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.6842, allocations: 235 kB / 1.416 GB, free: 11.89 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.6843, allocations: 152.8 kB / 1.416 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.6843, allocations: 4 kB / 1.416 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.6844, allocations: 357.8 kB / 1.416 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.6847, allocations: 213.3 kB / 1.416 GB, free: 11.29 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.6851, allocations: 339.8 kB / 1.417 GB, free: 11.01 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.6854, allocations: 235.9 kB / 1.417 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.6854, allocations: 0 / 1.417 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008216/0.6863, allocations: 0.5999 MB / 1.417 GB, free: 10.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002694/0.6865, allocations: 1.054 MB / 1.418 GB, free: 9.305 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.6865, allocations: 4 kB / 1.418 GB, free: 9.301 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.6866, allocations: 8 kB / 1.418 GB, free: 9.293 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005056/0.6871, allocations: 114.4 kB / 1.419 GB, free: 9.188 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.6871, allocations: 4 kB / 1.419 GB, free: 9.184 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/0.6875, allocations: 59.55 kB / 1.419 GB, free: 9.125 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.6876, allocations: 23.11 kB / 1.419 GB, free: 9.105 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.097e-06/0.6876, allocations: 4 kB / 1.419 GB, free: 9.102 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006699/0.6883, allocations: 463.4 kB / 1.419 GB, free: 8.789 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.6883, allocations: 4 kB / 1.419 GB, free: 8.785 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.372e-06/0.6883, allocations: 4 kB / 1.419 GB, free: 8.781 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004063/0.6887, allocations: 111.5 kB / 1.419 GB, free: 8.676 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.6887, allocations: 11.88 kB / 1.419 GB, free: 8.664 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.6891, allocations: 55.55 kB / 1.419 GB, free: 8.609 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.6891, allocations: 22.94 kB / 1.419 GB, free: 8.594 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.0001084/0.6893, allocations: 126.4 kB / 1.419 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.615e-05/0.6893, allocations: 51.42 kB / 1.419 GB, free: 8.418 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000767/0.6901, allocations: 0.5314 MB / 1.42 GB, free: 8.043 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.6901, allocations: 8 kB / 1.42 GB, free: 8.035 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.6901, allocations: 3.906 kB / 1.42 GB, free: 8.031 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.6901, allocations: 3.984 kB / 1.42 GB, free: 8.027 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004853/0.6906, allocations: 0.5517 MB / 1.421 GB, free: 7.586 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.6906, allocations: 4 kB / 1.421 GB, free: 7.582 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004706/0.6911, allocations: 91.38 kB / 1.421 GB, free: 7.496 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.6911, allocations: 4 kB / 1.421 GB, free: 7.492 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.6912, allocations: 7.5 kB / 1.421 GB, free: 7.488 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.6912, allocations: 11.92 kB / 1.421 GB, free: 7.477 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6912, allocations: 0 / 1.421 GB, free: 7.477 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00102/0.6922, allocations: 0.8631 MB / 1.422 GB, free: 6.852 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.6924, allocations: 175.6 kB / 1.422 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.6925, allocations: 6.812 kB / 1.422 GB, free: 6.684 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003376/0.6928, allocations: 35.89 kB / 1.422 GB, free: 6.648 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.6929, allocations: 42.75 kB / 1.422 GB, free: 6.617 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.476e-05/0.693, allocations: 19.44 kB / 1.422 GB, free: 6.602 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001831/0.6932, allocations: 234.5 kB / 1.422 GB, free: 6.422 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005603/0.6937, allocations: 258.4 kB / 1.422 GB, free: 6.172 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.0001645/0.6939, allocations: 143.7 kB / 1.422 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009921/0.6949, allocations: 0.8642 MB / 1.423 GB, free: 5.422 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.6949, allocations: 0 / 1.423 GB, free: 5.422 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.6952, allocations: 271 kB / 1.423 GB, free: 5.242 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006241/0.6959, allocations: 135.8 kB / 1.424 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.6972, allocations: 0.8287 MB / 1.424 GB, free: 4.398 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005445/0.6978, allocations: 0.968 MB / 1.425 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of SimCode: time 2.8e-07/0.6978, allocations: 0 / 1.425 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of Templates: time 0.01421/0.712, allocations: 10.51 MB / 1.436 GB, free: 9.055 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches