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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009818/0.0009818, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.663/2.663, allocations: 436.5 MB / 0.7104 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003701, allocations: 8 kB / 0.8708 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8829/0.8833, allocations: 153.7 MB / 1.021 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.004571/0.8879, allocations: 3.824 MB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003369/0.8913, allocations: 2.02 MB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002526/0.8916, allocations: 7.938 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002033/0.8918, allocations: 67.47 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006153/0.8925, allocations: 247.2 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007198/0.8932, allocations: 295.3 kB / 1.027 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005931/0.8938, allocations: 482.8 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.8949, allocations: 0.7128 MB / 1.028 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.8952, allocations: 223 kB / 1.028 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003659/0.8956, allocations: 250.9 kB / 1.029 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.8956, allocations: 24 kB / 1.029 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003623/0.896, allocations: 179.8 kB / 1.029 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.8962, allocations: 135.5 kB / 1.029 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.8963, allocations: 133.4 kB / 1.029 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006976/0.897, allocations: 0.7499 MB / 1.03 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.897, allocations: 4 kB / 1.03 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.264e-06/0.897, allocations: 0 / 1.03 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.897, allocations: 4 kB / 1.03 GB, free: 7.664 MB / 0.7794 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.001607/0.8987, allocations: 0.838 MB / 1.031 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.8987, allocations: 15.97 kB / 1.031 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006673/0.8994, allocations: 139.1 kB / 1.031 GB, free: 6.621 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006277/0.9, allocations: 437.7 kB / 1.031 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.425e-05/0.9001, allocations: 48.94 kB / 1.031 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.738e-05/0.9002, allocations: 48 kB / 1.031 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.9013, allocations: 0.6848 MB / 1.032 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.9013, allocations: 4 kB / 1.032 GB, free: 5.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.781e-05/0.9014, allocations: 20 kB / 1.032 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.168e-05/0.9015, allocations: 60.97 kB / 1.032 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.9025, allocations: 0.5659 MB / 1.033 GB, free: 4.695 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003477/0.906, allocations: 2.916 MB / 1.036 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009986/0.907, allocations: 0.5639 MB / 1.036 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005466/0.9076, allocations: 0.57 MB / 1.037 GB, free: 260 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006967/0.9083, allocations: 397.3 kB / 1.037 GB, free: 15.84 MB / 0.795 GB Notification: Performance of pre-optimization done (n=46): time 3.837e-06/0.9083, allocations: 3.984 kB / 1.037 GB, free: 15.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=46): time 0.001414/0.9098, allocations: 0.7535 MB / 1.038 GB, free: 15.08 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.889e-05/0.9098, allocations: 81.11 kB / 1.038 GB, free: 14.98 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.9102, allocations: 369.7 kB / 1.038 GB, free: 14.61 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.697e-05/0.9103, allocations: 45.7 kB / 1.038 GB, free: 14.56 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.9105, allocations: 284.4 kB / 1.039 GB, free: 14.28 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.9106, allocations: 141.9 kB / 1.039 GB, free: 14.14 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.9106, allocations: 12.11 kB / 1.039 GB, free: 14.12 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.9108, allocations: 362.7 kB / 1.039 GB, free: 13.76 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.9112, allocations: 233 kB / 1.039 GB, free: 13.53 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/0.9117, allocations: 366.6 kB / 1.04 GB, free: 13.13 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004614/0.9122, allocations: 281.7 kB / 1.04 GB, free: 12.85 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.9122, allocations: 4 kB / 1.04 GB, free: 12.85 MB / 0.795 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001169/0.9134, allocations: 0.6872 MB / 1.041 GB, free: 12.15 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004928/0.9139, allocations: 1.088 MB / 1.042 GB, free: 10.97 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.9139, allocations: 4 kB / 1.042 GB, free: 10.97 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.9139, allocations: 4 kB / 1.042 GB, free: 10.96 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.9144, allocations: 107.8 kB / 1.042 GB, free: 10.86 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.9144, allocations: 12 kB / 1.042 GB, free: 10.85 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.9149, allocations: 71.53 kB / 1.042 GB, free: 10.78 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.356e-05/0.9149, allocations: 20.19 kB / 1.042 GB, free: 10.76 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.086e-06/0.9149, allocations: 4 kB / 1.042 GB, free: 10.75 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009866/0.9159, allocations: 0.5795 MB / 1.042 GB, free: 10.17 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.9159, allocations: 4 kB / 1.042 GB, free: 10.16 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.72e-06/0.9159, allocations: 4 kB / 1.042 GB, free: 10.16 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003806/0.9163, allocations: 103.8 kB / 1.042 GB, free: 10.06 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.9163, allocations: 4 kB / 1.042 GB, free: 10.05 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.9167, allocations: 83.67 kB / 1.043 GB, free: 9.973 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.9168, allocations: 23.94 kB / 1.043 GB, free: 9.949 MB / 0.795 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 (66): * Single equations (assignments): 65 * 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.0002959/0.9171, allocations: 291.3 kB / 1.043 GB, free: 9.656 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.363e-05/0.9171, allocations: 43.53 kB / 1.043 GB, free: 9.613 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.9182, allocations: 0.5931 MB / 1.043 GB, free: 9.012 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.9182, allocations: 4 kB / 1.043 GB, free: 9.008 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.9182, allocations: 4 kB / 1.043 GB, free: 9.004 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.9182, allocations: 3.953 kB / 1.043 GB, free: 9 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006784/0.9189, allocations: 0.6258 MB / 1.044 GB, free: 8.324 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.9189, allocations: 0 / 1.044 GB, free: 8.324 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004827/0.9194, allocations: 103.8 kB / 1.044 GB, free: 8.223 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.9194, allocations: 4 kB / 1.044 GB, free: 8.219 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.9194, allocations: 12 kB / 1.044 GB, free: 8.207 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.9194, allocations: 0 / 1.044 GB, free: 8.207 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.9195, allocations: 4 kB / 1.044 GB, free: 8.203 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.9209, allocations: 0.9073 MB / 1.045 GB, free: 7.266 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.9211, allocations: 172.5 kB / 1.045 GB, free: 7.078 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.83e-05/0.9212, allocations: 15.94 kB / 1.045 GB, free: 7.062 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.9215, allocations: 44.14 kB / 1.045 GB, free: 7.02 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.9216, allocations: 51.88 kB / 1.045 GB, free: 6.969 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.9217, allocations: 16 kB / 1.045 GB, free: 6.953 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002578/0.9219, allocations: 259.2 kB / 1.046 GB, free: 6.707 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.922, allocations: 0 / 1.046 GB, free: 6.707 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006902/0.9226, allocations: 267.1 kB / 1.046 GB, free: 6.445 MB / 0.795 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 (47): * Single equations (assignments): 45 * 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.0002181/0.9229, allocations: 132.6 kB / 1.046 GB, free: 6.309 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.9244, allocations: 0.972 MB / 1.047 GB, free: 5.316 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.9244, allocations: 0 / 1.047 GB, free: 5.316 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004507/0.9248, allocations: 279.5 kB / 1.047 GB, free: 5.043 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006863/0.9255, allocations: 152.5 kB / 1.047 GB, free: 4.895 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.9275, allocations: 1.264 MB / 1.049 GB, free: 3.602 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.928, allocations: 0.9068 MB / 1.049 GB, free: 2.664 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0004478/0.9284, allocations: 152.3 kB / 1.05 GB, free: 2.512 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/0.9286, allocations: 43.42 kB / 1.05 GB, free: 2.469 MB / 0.795 GB Notification: Performance of SimCode: time 7.82e-07/0.9286, allocations: 4 kB / 1.05 GB, free: 2.465 MB / 0.795 GB Notification: Performance of Templates: time 0.01217/0.9407, allocations: 7.63 MB / 1.057 GB, free: 10.93 MB / 0.8106 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