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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.634/2.634, allocations: 390.3 MB / 405.3 MB, free: 13.41 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.001563/0.001562, allocations: 177 kB / 498.1 MB, free: 5.676 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.611/1.611, allocations: 223.2 MB / 0.7948 GB, free: 17.94 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.0009296/0.0009297, allocations: 92.31 kB / 0.9346 GB, free: 6.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003925, allocations: 10.41 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.333, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2163/0.5493, allocations: 168.2 MB / 1.387 GB, free: 9.793 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.5497, allocations: 95.94 kB / 1.387 GB, free: 9.699 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07654/0.6263, allocations: 29.79 MB / 1.416 GB, free: 11.65 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.533e-06/0.6263, allocations: 4 kB / 1.416 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.701e-05/0.6264, allocations: 16 kB / 1.416 GB, free: 11.63 MB / 0.9167 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.002374/0.6288, allocations: 0.8922 MB / 1.417 GB, free: 10.68 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.6288, allocations: 8.031 kB / 1.417 GB, free: 10.68 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.63, allocations: 155 kB / 1.417 GB, free: 10.52 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.631, allocations: 444.8 kB / 1.418 GB, free: 10.05 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.506e-05/0.6311, allocations: 44.98 kB / 1.418 GB, free: 10 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.6312, allocations: 52 kB / 1.418 GB, free: 9.953 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.6326, allocations: 0.673 MB / 1.419 GB, free: 9.25 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.6327, allocations: 4 kB / 1.419 GB, free: 9.246 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.352e-05/0.6327, allocations: 27.98 kB / 1.419 GB, free: 9.219 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.736e-05/0.6328, allocations: 44.92 kB / 1.419 GB, free: 9.176 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.6342, allocations: 0.5737 MB / 1.419 GB, free: 8.602 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005306/0.6395, allocations: 2.845 MB / 1.422 GB, free: 5.531 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001313/0.6409, allocations: 0.5862 MB / 1.423 GB, free: 4.926 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005907/0.6415, allocations: 0.5622 MB / 1.423 GB, free: 4.234 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008642/0.6423, allocations: 415.8 kB / 1.423 GB, free: 3.809 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 3.236e-06/0.6424, allocations: 7.938 kB / 1.423 GB, free: 3.801 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001807/0.6442, allocations: 0.7756 MB / 1.424 GB, free: 3.023 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.6443, allocations: 85.67 kB / 1.424 GB, free: 2.918 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005606/0.6449, allocations: 324.8 kB / 1.425 GB, free: 2.59 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001077/0.645, allocations: 45.7 kB / 1.425 GB, free: 2.539 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/0.6453, allocations: 284.4 kB / 1.425 GB, free: 2.258 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.6455, allocations: 149.8 kB / 1.425 GB, free: 2.109 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.6456, allocations: 16 kB / 1.425 GB, free: 2.094 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002636/0.6458, allocations: 358.7 kB / 1.425 GB, free: 1.734 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.6464, allocations: 245 kB / 1.426 GB, free: 1.496 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006631/0.6471, allocations: 374.2 kB / 1.426 GB, free: 1.082 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/0.6477, allocations: 298.2 kB / 1.426 GB, free: 0.7852 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.6478, allocations: 0 / 1.426 GB, free: 0.7852 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001452/0.6492, allocations: 0.7054 MB / 1.427 GB, free: 68 kB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.7405/1.39, allocations: 1.074 MB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.161e-05/1.39, allocations: 2.938 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.42e-05/1.39, allocations: 7.188 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/1.391, allocations: 117.7 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/1.391, allocations: 8.281 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006075/1.391, allocations: 70.38 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/1.391, allocations: 20.75 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/1.391, allocations: 3.719 kB / 1.428 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/1.392, allocations: 0.592 MB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/1.393, allocations: 5.562 kB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.704e-06/1.393, allocations: 6.312 kB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/1.393, allocations: 102.3 kB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/1.393, allocations: 9.953 kB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004105/1.393, allocations: 67.78 kB / 1.429 GB, free: 185 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/1.393, allocations: 29.33 kB / 1.429 GB, free: 185 MB / 0.9167 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 () * Number of clocked 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.0004485/1.394, allocations: 295.1 kB / 1.429 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.641e-05/1.394, allocations: 53.75 kB / 1.429 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/1.395, allocations: 0.6038 MB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/1.395, allocations: 4.969 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.395, allocations: 1.281 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/1.395, allocations: 7.094 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000874/1.396, allocations: 0.6366 MB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/1.396, allocations: 1.469 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005125/1.397, allocations: 94.94 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/1.397, allocations: 3.062 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.228e-05/1.397, allocations: 15.98 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/1.397, allocations: 2.312 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.397, allocations: 0.75 kB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/1.398, allocations: 0.9415 MB / 1.432 GB, free: 184.4 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/1.399, allocations: 178.6 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.059e-05/1.399, allocations: 13.56 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000332/1.399, allocations: 43.45 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/1.399, allocations: 52.52 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/1.399, allocations: 18.62 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002939/1.4, allocations: 260 kB / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.21e-07/1.4, allocations: 0 / 1.432 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.000813/1.4, allocations: 279.8 kB / 1.432 GB, free: 184.2 MB / 0.9167 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) * Number of clocked states: 0 () * 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.0002343/1.401, allocations: 158.9 kB / 1.433 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001795/1.402, allocations: 0.9961 MB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.402, allocations: 0 / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005936/1.403, allocations: 291.1 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/1.404, allocations: 154 kB / 1.434 GB, free: 184 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/1.406, allocations: 1.301 MB / 1.435 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/1.407, allocations: 0.9152 MB / 1.436 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0005981/1.407, allocations: 146.6 kB / 1.436 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/1.408, allocations: 46.12 kB / 1.436 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of SimCode: time 2e-07/1.408, allocations: 0 / 1.436 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.01796/1.426, allocations: 7.756 MB / 1.444 GB, free: 182.4 MB / 0.9167 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