Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.313/1.313, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009583/0.0009586, allocations: 175.5 kB / 327.5 MB, free: 2.156 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.57/1.57, allocations: 205.4 MB / 0.5785 GB, free: 20.18 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.0007529/0.0007529, allocations: 87.7 kB / 0.6831 GB, free: 12.83 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004316/0.0004317, allocations: 16.53 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1982, allocations: 106.3 MB / 0.9012 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1698/0.3681, allocations: 151.9 MB / 1.05 GB, free: 7.551 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.3684, allocations: 99.92 kB / 1.05 GB, free: 7.453 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.4259/0.7943, allocations: 29.58 MB / 1.079 GB, free: 147.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.995e-06/0.7944, allocations: 0 / 1.079 GB, free: 147.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.949e-05/0.7944, allocations: 11.69 kB / 1.079 GB, free: 147.9 MB / 0.698 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.002172/0.7966, allocations: 0.8781 MB / 1.079 GB, free: 147.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.7966, allocations: 9.5 kB / 1.079 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.7977, allocations: 148.8 kB / 1.08 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008089/0.7985, allocations: 451.5 kB / 1.08 GB, free: 146.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.338e-05/0.7986, allocations: 44.16 kB / 1.08 GB, free: 146.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.7988, allocations: 50.03 kB / 1.08 GB, free: 146.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.8002, allocations: 0.6873 MB / 1.081 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.8003, allocations: 9.219 kB / 1.081 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-05/0.8003, allocations: 24.78 kB / 1.081 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.485e-05/0.8004, allocations: 42.84 kB / 1.081 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001183/0.8016, allocations: 0.5697 MB / 1.081 GB, free: 146.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.8051, allocations: 2.833 MB / 1.084 GB, free: 144.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/0.8062, allocations: 0.5816 MB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005418/0.8068, allocations: 278.6 kB / 1.085 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003411/0.8071, allocations: 0.5612 MB / 1.086 GB, free: 143.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007996/0.8079, allocations: 419.8 kB / 1.086 GB, free: 143.3 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 2.524e-06/0.808, allocations: 0 / 1.086 GB, free: 143.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001741/0.8097, allocations: 0.7698 MB / 1.087 GB, free: 143.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.8098, allocations: 88 kB / 1.087 GB, free: 143.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.8102, allocations: 344.5 kB / 1.087 GB, free: 142.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.338e-05/0.8103, allocations: 46.31 kB / 1.087 GB, free: 142.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002131/0.8105, allocations: 275 kB / 1.087 GB, free: 142.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.8106, allocations: 165.1 kB / 1.088 GB, free: 142.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.8107, allocations: 10.88 kB / 1.088 GB, free: 142.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.225e-05/0.8108, allocations: 355.7 kB / 1.088 GB, free: 142.3 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004259/0.8112, allocations: 244.2 kB / 1.088 GB, free: 142.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.8116, allocations: 380.4 kB / 1.089 GB, free: 141.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007941/0.8124, allocations: 0.59 MB / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.8125, allocations: 0 / 1.089 GB, free: 141.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001058/0.8135, allocations: 0.7146 MB / 1.09 GB, free: 141.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 9.64e-05/0.8136, allocations: 196.2 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.8137, allocations: 3.656 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.8137, allocations: 11.47 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000479/0.8142, allocations: 111.1 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.8142, allocations: 6.875 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004644/0.8147, allocations: 67.75 kB / 1.09 GB, free: 140.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.8147, allocations: 21.25 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.854e-06/0.8147, allocations: 7.375 kB / 1.09 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000904/0.8156, allocations: 0.5913 MB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.8157, allocations: 3.75 kB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.955e-06/0.8157, allocations: 11.25 kB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003756/0.8161, allocations: 112.4 kB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.8161, allocations: 7.406 kB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003825/0.8165, allocations: 58.73 kB / 1.091 GB, free: 140.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.707e-05/0.8165, allocations: 21 kB / 1.091 GB, free: 140.5 MB / 0.698 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.000279/0.8168, allocations: 298.4 kB / 1.091 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.484e-05/0.8169, allocations: 56.69 kB / 1.091 GB, free: 140.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009397/0.8178, allocations: 0.5979 MB / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.842e-06/0.8178, allocations: 8 kB / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8179, allocations: 0 / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.8179, allocations: 11.83 kB / 1.092 GB, free: 139.8 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005932/0.8185, allocations: 0.64 MB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.8185, allocations: 0 / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.8189, allocations: 94.33 kB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.8189, allocations: 3.938 kB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.419e-05/0.819, allocations: 7.906 kB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.819, allocations: 3.906 kB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.819, allocations: 3.984 kB / 1.093 GB, free: 139.3 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.8202, allocations: 0.9204 MB / 1.094 GB, free: 138.8 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.8205, allocations: 179.7 kB / 1.094 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.8205, allocations: 15.88 kB / 1.094 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.8208, allocations: 43.3 kB / 1.094 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.821, allocations: 47.98 kB / 1.094 GB, free: 138.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.821, allocations: 19.58 kB / 1.094 GB, free: 138.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002016/0.8212, allocations: 243.4 kB / 1.094 GB, free: 138.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8212, allocations: 0 / 1.094 GB, free: 138.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006816/0.8219, allocations: 273.2 kB / 1.094 GB, free: 138.3 MB / 0.698 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.000199/0.8221, allocations: 151.2 kB / 1.095 GB, free: 138.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.8235, allocations: 0.9944 MB / 1.095 GB, free: 137.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8235, allocations: 0 / 1.095 GB, free: 137.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.824, allocations: 292 kB / 1.096 GB, free: 137.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007304/0.8247, allocations: 162.1 kB / 1.096 GB, free: 137.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.8266, allocations: 1.288 MB / 1.097 GB, free: 135.9 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.8269, allocations: 0.8992 MB / 1.098 GB, free: 135 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0005509/0.8274, allocations: 144.3 kB / 1.098 GB, free: 134.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00014/0.8276, allocations: 47.42 kB / 1.098 GB, free: 134.8 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.8276, allocations: 0 / 1.098 GB, free: 134.8 MB / 0.698 GB Notification: Performance of Templates: time 0.01209/0.8397, allocations: 7.764 MB / 1.106 GB, free: 127.1 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)