Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.462/1.462, allocations: 249.4 MB / 256.7 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001235/0.001235, allocations: 184.5 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.1 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009391/0.0009388, allocations: 94.45 kB / 0.671 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.705e-06/7.735e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.198, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5611/0.7592, allocations: 150.7 MB / 1.032 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.7595, allocations: 93.44 kB / 1.032 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.06591/0.8254, allocations: 26.94 MB / 1.058 GB, free: 15.01 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.771e-05/0.8254, allocations: 15.81 kB / 1.058 GB, free: 15 MB / 0.6823 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.001443/0.8269, allocations: 0.8097 MB / 1.059 GB, free: 14.17 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.8269, allocations: 12.03 kB / 1.059 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008564/0.8278, allocations: 147 kB / 1.059 GB, free: 14.02 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006254/0.8284, allocations: 442.8 kB / 1.06 GB, free: 13.61 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.8285, allocations: 16 kB / 1.06 GB, free: 13.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.322e-05/0.8286, allocations: 35.94 kB / 1.06 GB, free: 13.56 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007147/0.8293, allocations: 463.1 kB / 1.06 GB, free: 13.27 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.8302, allocations: 0.5986 MB / 1.061 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.8303, allocations: 4 kB / 1.061 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-05/0.8303, allocations: 4 kB / 1.061 GB, free: 12.79 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.843e-05/0.8304, allocations: 43.53 kB / 1.061 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.8333, allocations: 2.71 MB / 1.063 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007562/0.8341, allocations: 0.534 MB / 1.064 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.8344, allocations: 239.4 kB / 1.064 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004673/0.8349, allocations: 0.5583 MB / 1.065 GB, free: 9 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000482/0.8354, allocations: 343.6 kB / 1.065 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 1.963e-06/0.8354, allocations: 4 kB / 1.065 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0008246/0.8363, allocations: 0.5016 MB / 1.065 GB, free: 8.359 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.8363, allocations: 81.55 kB / 1.065 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.8366, allocations: 284.1 kB / 1.066 GB, free: 8.035 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.8366, allocations: 32.58 kB / 1.066 GB, free: 8 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.8368, allocations: 226.2 kB / 1.066 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.8369, allocations: 162.9 kB / 1.066 GB, free: 7.652 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.8369, allocations: 0 / 1.066 GB, free: 7.652 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.8371, allocations: 350.3 kB / 1.066 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002991/0.8374, allocations: 213.5 kB / 1.067 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.8378, allocations: 342.7 kB / 1.067 GB, free: 6.914 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004/0.8382, allocations: 244.4 kB / 1.067 GB, free: 6.762 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.8382, allocations: 11.98 kB / 1.067 GB, free: 6.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009048/0.8391, allocations: 0.5865 MB / 1.068 GB, free: 6.32 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003921/0.8395, allocations: 1.046 MB / 1.069 GB, free: 5.211 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.8395, allocations: 8 kB / 1.069 GB, free: 5.203 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.8395, allocations: 7.938 kB / 1.069 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005644/0.8401, allocations: 111.7 kB / 1.069 GB, free: 5.09 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.8401, allocations: 8 kB / 1.069 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.8406, allocations: 55.64 kB / 1.069 GB, free: 5.027 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.8407, allocations: 26.66 kB / 1.069 GB, free: 5.008 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/0.8407, allocations: 4 kB / 1.069 GB, free: 5.004 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007899/0.8415, allocations: 472.6 kB / 1.07 GB, free: 4.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.8415, allocations: 4 kB / 1.07 GB, free: 4.676 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.255e-06/0.8415, allocations: 8.25 kB / 1.07 GB, free: 4.668 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000493/0.842, allocations: 109.9 kB / 1.07 GB, free: 4.566 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.8421, allocations: 4 kB / 1.07 GB, free: 4.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004072/0.8425, allocations: 59.58 kB / 1.07 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.8425, allocations: 19.44 kB / 1.07 GB, free: 4.488 MB / 0.6823 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.0001426/0.8427, allocations: 122.2 kB / 1.07 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-05/0.8427, allocations: 51.42 kB / 1.07 GB, free: 4.316 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008845/0.8436, allocations: 0.5411 MB / 1.07 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.8437, allocations: 4 kB / 1.07 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.8437, allocations: 0 / 1.07 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.8437, allocations: 7.984 kB / 1.07 GB, free: 3.926 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005699/0.8443, allocations: 0.5424 MB / 1.071 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.8443, allocations: 0 / 1.071 GB, free: 3.477 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005659/0.8448, allocations: 87.25 kB / 1.071 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.8449, allocations: 4 kB / 1.071 GB, free: 3.391 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.8449, allocations: 11.11 kB / 1.071 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.8449, allocations: 0 / 1.071 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.8449, allocations: 3.984 kB / 1.071 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00117/0.8461, allocations: 0.8649 MB / 1.072 GB, free: 2.754 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.8463, allocations: 175.8 kB / 1.072 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.8464, allocations: 7.5 kB / 1.072 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.8468, allocations: 31.95 kB / 1.072 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.8469, allocations: 50.67 kB / 1.072 GB, free: 2.512 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.847, allocations: 18.31 kB / 1.072 GB, free: 2.5 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0002145/0.8472, allocations: 218.5 kB / 1.072 GB, free: 2.332 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000771/0.848, allocations: 257.5 kB / 1.073 GB, free: 2.082 MB / 0.6823 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.0002327/0.8482, allocations: 138.9 kB / 1.073 GB, free: 1.938 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001251/0.8495, allocations: 0.8593 MB / 1.074 GB, free: 1.336 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8495, allocations: 4 kB / 1.074 GB, free: 1.332 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003697/0.8498, allocations: 266.7 kB / 1.074 GB, free: 1.152 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/0.8506, allocations: 137.1 kB / 1.074 GB, free: 1.043 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.8524, allocations: 0.8085 MB / 1.075 GB, free: 336 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006667/0.853, allocations: 0.9556 MB / 1.076 GB, free: 15.36 MB / 0.698 GB Notification: Performance of SimCode: time 3.61e-07/0.8531, allocations: 4 kB / 1.076 GB, free: 15.35 MB / 0.698 GB Notification: Performance of Templates: time 0.01937/0.8724, allocations: 10.41 MB / 1.086 GB, free: 5.035 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bat_loss_acdc.SOC,bat_ideal.SOC,bat.SOC Variables in the result:bat.EMax,bat.SOC,bat.SOC_start,bat.V_nominal,bat.acdc_con_cha.k,bat.acdc_con_dis.k,bat.bat.P_nominal,bat.bat.V_nominal,bat.bat.initMode,bat.bat.linearized,bat.bat.mode,bat.cha.EMax,bat.cha.SOC,bat.cha.SOC_start,bat.cha.etaCha,bat.cha.etaDis,bat.etaCha,bat.etaDis,bat.eta_DCAC,bat.gain.k,bat.initMode,bat.linearized,bat.pf,bat.spl.deltax,bat_ideal.EMax,bat_ideal.SOC,bat_ideal.SOC_start,bat_ideal.V_nominal,bat_ideal.acdc_con_cha.k,bat_ideal.acdc_con_dis.k,bat_ideal.bat.P_nominal,bat_ideal.bat.V_nominal,bat_ideal.bat.initMode,bat_ideal.bat.linearized,bat_ideal.bat.mode,bat_ideal.cha.EMax,bat_ideal.cha.SOC,bat_ideal.cha.SOC_start,bat_ideal.cha.etaCha,bat_ideal.cha.etaDis,bat_ideal.etaCha,bat_ideal.etaDis,bat_ideal.eta_DCAC,bat_ideal.gain.k,bat_ideal.initMode,bat_ideal.linearized,bat_ideal.pf,bat_ideal.spl.deltax,bat_loss_acdc.EMax,bat_loss_acdc.SOC,bat_loss_acdc.SOC_start,bat_loss_acdc.V_nominal,bat_loss_acdc.acdc_con_cha.k,bat_loss_acdc.acdc_con_dis.k,bat_loss_acdc.bat.P_nominal,bat_loss_acdc.bat.V_nominal,bat_loss_acdc.bat.initMode,bat_loss_acdc.bat.linearized,bat_loss_acdc.bat.mode,bat_loss_acdc.cha.EMax,bat_loss_acdc.cha.SOC,bat_loss_acdc.cha.SOC_start,bat_loss_acdc.cha.etaCha,bat_loss_acdc.cha.etaDis,bat_loss_acdc.etaCha,bat_loss_acdc.etaDis,bat_loss_acdc.eta_DCAC,bat_loss_acdc.gain.k,bat_loss_acdc.initMode,bat_loss_acdc.linearized,bat_loss_acdc.pf,bat_loss_acdc.spl.deltax,fixVol.V,fixVol.definiteReference,fixVol.f,fixVol.phiSou,fixVol.potentialReference,pow.amplitude,pow.nperiod,pow.offset,pow.period,pow.startTime,pow.width,time