Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0009621/0.0009622, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008232/0.008233, allocations: 170.1 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.753/1.753, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.816/1.816, allocations: 292.7 MB / 0.5502 GB, free: 14.47 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006142/0.0006143, allocations: 16.09 kB / 0.6743 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3031, allocations: 116.3 MB / 0.7879 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.00601/0.3092, allocations: 4.048 MB / 0.7918 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004319/0.3136, allocations: 2.18 MB / 0.794 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006286/0.3142, allocations: 8 kB / 0.794 GB, free: 5.281 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000438/0.3147, allocations: 71.36 kB / 0.794 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001299/0.316, allocations: 302.6 kB / 0.7943 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001284/0.3173, allocations: 374.5 kB / 0.7947 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001399/0.3187, allocations: 0.9621 MB / 0.7956 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.3204, allocations: 0.7999 MB / 0.7964 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.321, allocations: 246.8 kB / 0.7966 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006542/0.3216, allocations: 302.6 kB / 0.7969 GB, free: 2.207 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.3217, allocations: 20 kB / 0.797 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006983/0.3225, allocations: 335.4 kB / 0.7973 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.3227, allocations: 147.4 kB / 0.7974 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004248/0.3231, allocations: 292.2 kB / 0.7977 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001317/0.3244, allocations: 0.9345 MB / 0.7986 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3244, allocations: 0 / 0.7986 GB, free: 496 kB / 0.6075 GB Notification: Performance of FrontEnd: time 2.264e-06/0.3244, allocations: 0 / 0.7986 GB, free: 496 kB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.708e-05/0.3245, allocations: 0 / 0.7986 GB, free: 496 kB / 0.6075 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.001943/0.3264, allocations: 0.825 MB / 0.7994 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3265, allocations: 8.031 kB / 0.7994 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007572/0.3273, allocations: 132 kB / 0.7995 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00071/0.328, allocations: 442.7 kB / 0.8 GB, free: 15 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.435e-05/0.328, allocations: 37.38 kB / 0.8 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.3282, allocations: 60.36 kB / 0.8001 GB, free: 14.9 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.3294, allocations: 0.6929 MB / 0.8007 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3294, allocations: 4 kB / 0.8007 GB, free: 14.17 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.963e-05/0.3295, allocations: 19.98 kB / 0.8008 GB, free: 14.15 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.305e-05/0.3296, allocations: 52.97 kB / 0.8008 GB, free: 14.1 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001164/0.3307, allocations: 0.5737 MB / 0.8014 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.3343, allocations: 2.916 MB / 0.8042 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.3353, allocations: 0.56 MB / 0.8048 GB, free: 9.785 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.3358, allocations: 261.6 kB / 0.805 GB, free: 9.523 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000502/0.3363, allocations: 0.5739 MB / 0.8056 GB, free: 8.82 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007356/0.337, allocations: 408.1 kB / 0.806 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=46): time 3.026e-06/0.3371, allocations: 0 / 0.806 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46): time 0.001492/0.3386, allocations: 0.7459 MB / 0.8067 GB, free: 7.648 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.449e-05/0.3387, allocations: 81.11 kB / 0.8068 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005041/0.3392, allocations: 349.6 kB / 0.8071 GB, free: 7.203 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.215e-05/0.3393, allocations: 45.69 kB / 0.8071 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002998/0.3396, allocations: 280.4 kB / 0.8074 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.3398, allocations: 149.9 kB / 0.8076 GB, free: 6.723 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.3399, allocations: 53.81 kB / 0.8076 GB, free: 6.664 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002411/0.3402, allocations: 358.7 kB / 0.8079 GB, free: 6.305 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005127/0.3407, allocations: 241 kB / 0.8082 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005714/0.3413, allocations: 362.6 kB / 0.8085 GB, free: 5.668 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009816/0.3423, allocations: 0.5826 MB / 0.8091 GB, free: 5.043 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3423, allocations: 4 kB / 0.8091 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001247/0.3435, allocations: 0.6872 MB / 0.8098 GB, free: 4.34 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.3437, allocations: 192.9 kB / 0.81 GB, free: 4.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.3437, allocations: 0 / 0.81 GB, free: 4.105 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.325e-05/0.3438, allocations: 8.109 kB / 0.81 GB, free: 4.098 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.3443, allocations: 115.7 kB / 0.8101 GB, free: 3.984 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/0.3443, allocations: 7.984 kB / 0.8101 GB, free: 3.977 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.3448, allocations: 83.42 kB / 0.8102 GB, free: 3.895 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.114e-05/0.3449, allocations: 24.17 kB / 0.8102 GB, free: 3.871 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 9.679e-06/0.3449, allocations: 4 kB / 0.8102 GB, free: 3.867 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/0.346, allocations: 0.5758 MB / 0.8107 GB, free: 3.285 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.346, allocations: 4 kB / 0.8108 GB, free: 3.281 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.368e-06/0.346, allocations: 4 kB / 0.8108 GB, free: 3.277 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.3464, allocations: 112 kB / 0.8109 GB, free: 3.168 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.3465, allocations: 4 kB / 0.8109 GB, free: 3.164 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004361/0.3469, allocations: 63.55 kB / 0.8109 GB, free: 3.102 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.347, allocations: 20 kB / 0.8109 GB, free: 3.082 MB / 0.6231 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 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004075/0.3474, allocations: 303.8 kB / 0.8112 GB, free: 2.773 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.349e-05/0.3475, allocations: 51.52 kB / 0.8113 GB, free: 2.723 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.3487, allocations: 0.5852 MB / 0.8119 GB, free: 2.129 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.3487, allocations: 4 kB / 0.8119 GB, free: 2.125 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3487, allocations: 0 / 0.8119 GB, free: 2.125 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.3487, allocations: 7.984 kB / 0.8119 GB, free: 2.117 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007846/0.3495, allocations: 0.6219 MB / 0.8125 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.3495, allocations: 0 / 0.8125 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005083/0.35, allocations: 99.84 kB / 0.8126 GB, free: 1.348 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.3501, allocations: 0 / 0.8126 GB, free: 1.348 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.3501, allocations: 12 kB / 0.8126 GB, free: 1.336 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/0.3501, allocations: 11.92 kB / 0.8126 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.3501, allocations: 0 / 0.8126 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/0.3517, allocations: 0.8901 MB / 0.8135 GB, free: 424 kB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.352, allocations: 180.4 kB / 0.8136 GB, free: 224 kB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.238e-05/0.3521, allocations: 16 kB / 0.8136 GB, free: 208 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/0.3524, allocations: 40.12 kB / 0.8137 GB, free: 168 kB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.3526, allocations: 43.94 kB / 0.8137 GB, free: 124 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.768e-05/0.3526, allocations: 20 kB / 0.8137 GB, free: 104 kB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003035/0.3529, allocations: 243.2 kB / 0.814 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.1e-07/0.3529, allocations: 0 / 0.814 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0007874/0.3537, allocations: 263.1 kB / 0.8142 GB, free: 15.61 MB / 0.6387 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000242/0.354, allocations: 133.5 kB / 0.8144 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001771/0.3558, allocations: 0.9829 MB / 0.8153 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3558, allocations: 0 / 0.8153 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0005288/0.3563, allocations: 275.9 kB / 0.8156 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009045/0.3572, allocations: 177.9 kB / 0.8158 GB, free: 14.02 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002207/0.3594, allocations: 1.307 MB / 0.817 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005369/0.36, allocations: 0.8872 MB / 0.8179 GB, free: 11.77 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0005624/0.3606, allocations: 144.2 kB / 0.818 GB, free: 11.62 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.3607, allocations: 43.44 kB / 0.8181 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of SimCode: time 5.41e-07/0.3607, allocations: 0 / 0.8181 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of Templates: time 0.01496/0.3757, allocations: 7.813 MB / 0.8257 GB, free: 3.871 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: