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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.495/2.495, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001083/0.001083, allocations: 178.5 kB / 0.4902 GB, free: 2.246 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.649/1.649, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001032/0.001032, allocations: 107.4 kB / 0.9396 GB, free: 1.887 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004085, allocations: 6.938 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3301, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.5379, allocations: 169 MB / 1.394 GB, free: 472 kB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003134/0.5383, allocations: 95.94 kB / 1.394 GB, free: 376 kB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07789/0.6162, allocations: 29.79 MB / 1.423 GB, free: 2.328 MB / 0.9167 GB Notification: Performance of FrontEnd: time 5.871e-06/0.6163, allocations: 0 / 1.423 GB, free: 2.328 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.481e-05/0.6164, allocations: 15.98 kB / 1.423 GB, free: 2.312 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.002306/0.6187, allocations: 0.8846 MB / 1.424 GB, free: 1.371 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 7.935e-05/0.6188, allocations: 12.5 kB / 1.424 GB, free: 1.359 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/0.6199, allocations: 166.9 kB / 1.425 GB, free: 1.195 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008851/0.6208, allocations: 444.8 kB / 1.425 GB, free: 0.7188 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/0.6209, allocations: 41 kB / 1.425 GB, free: 0.6797 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.621, allocations: 52 kB / 1.425 GB, free: 0.6289 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6886/1.31, allocations: 0.6694 MB / 1.426 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/1.31, allocations: 3.844 kB / 1.426 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/1.31, allocations: 25.39 kB / 1.426 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000122/1.31, allocations: 45.41 kB / 1.426 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/1.311, allocations: 0.5745 MB / 1.426 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003448/1.315, allocations: 2.848 MB / 1.429 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/1.316, allocations: 0.5851 MB / 1.43 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003778/1.316, allocations: 0.5616 MB / 1.43 GB, free: 176.6 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007381/1.317, allocations: 419.8 kB / 1.431 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 3.798e-06/1.317, allocations: 0 / 1.431 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001537/1.319, allocations: 0.7737 MB / 1.431 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/1.319, allocations: 86.42 kB / 1.431 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/1.319, allocations: 325 kB / 1.432 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/1.319, allocations: 40.97 kB / 1.432 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/1.319, allocations: 279.2 kB / 1.432 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/1.319, allocations: 162.4 kB / 1.432 GB, free: 176 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.217e-05/1.319, allocations: 7.25 kB / 1.432 GB, free: 176 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.32, allocations: 358.5 kB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/1.32, allocations: 246.8 kB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005538/1.321, allocations: 365.1 kB / 1.433 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004977/1.321, allocations: 296.8 kB / 1.433 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/1.321, allocations: 3.125 kB / 1.433 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001286/1.322, allocations: 0.707 MB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002583/1.323, allocations: 1.075 MB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/1.323, allocations: 5.594 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/1.323, allocations: 6.062 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005595/1.323, allocations: 116.9 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/1.323, allocations: 10.16 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005073/1.324, allocations: 80.95 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/1.324, allocations: 22.8 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/1.324, allocations: 3.531 kB / 1.435 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001072/1.325, allocations: 0.5872 MB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/1.325, allocations: 3.281 kB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/1.325, allocations: 4.844 kB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/1.325, allocations: 111.2 kB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/1.325, allocations: 6.047 kB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/1.326, allocations: 62.78 kB / 1.436 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.385e-05/1.326, allocations: 20.25 kB / 1.436 GB, free: 174.3 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.0003893/1.326, allocations: 309.5 kB / 1.436 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.671e-05/1.326, allocations: 50.25 kB / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/1.328, allocations: 0.6062 MB / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/1.328, allocations: 6.703 kB / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.328, allocations: 0 / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/1.328, allocations: 3.875 kB / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008437/1.329, allocations: 0.6348 MB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/1.329, allocations: 6.594 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/1.329, allocations: 95.25 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/1.329, allocations: 2.031 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.053e-05/1.329, allocations: 13.84 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/1.329, allocations: 4.828 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.329, allocations: 1.469 kB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/1.331, allocations: 0.9366 MB / 1.439 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/1.331, allocations: 179.1 kB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.38e-05/1.331, allocations: 12.19 kB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003436/1.332, allocations: 45.52 kB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/1.332, allocations: 54.23 kB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/1.332, allocations: 15.19 kB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003016/1.332, allocations: 256.5 kB / 1.439 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.332, allocations: 1.25 kB / 1.439 GB, free: 173.5 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009259/1.333, allocations: 282.8 kB / 1.44 GB, free: 173.4 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.0002589/1.333, allocations: 158.9 kB / 1.44 GB, free: 173.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001827/1.335, allocations: 1.003 MB / 1.441 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.335, allocations: 0.875 kB / 1.441 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005297/1.336, allocations: 288 kB / 1.441 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007452/1.336, allocations: 164.7 kB / 1.441 GB, free: 173.2 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/1.339, allocations: 1.299 MB / 1.442 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/1.339, allocations: 0.9162 MB / 1.443 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0006212/1.34, allocations: 144 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/1.34, allocations: 46.34 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of SimCode: time 2.494e-06/1.34, allocations: 0 / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.01822/1.358, allocations: 7.766 MB / 1.451 GB, free: 171.5 MB / 0.9167 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