Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.894/4.894, allocations: 0.5623 GB / 0.5775 GB, free: 3.34 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002447/0.002447, allocations: 358 kB / 0.6446 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.355/4.355, allocations: 410.7 MB / 1.113 GB, free: 5.934 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001851/0.001851, allocations: 199.8 kB / 1.226 GB, free: 6.156 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005183/0.0005185, allocations: 12 kB / 1.349 GB, free: 8.297 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7917/0.7922, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.233/1.025, allocations: 158.2 MB / 1.616 GB, free: 126 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003491/1.026, allocations: 102.1 kB / 1.616 GB, free: 125.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.1127/1.139, allocations: 29.23 MB / 1.644 GB, free: 96.72 MB / 0.8542 GB Notification: Performance of FrontEnd: time 3.136e-06/1.139, allocations: 4 kB / 1.644 GB, free: 96.72 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.997e-05/1.139, allocations: 11.98 kB / 1.644 GB, free: 96.71 MB / 0.8542 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.002342/1.141, allocations: 0.8804 MB / 1.645 GB, free: 95.77 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/1.141, allocations: 12.28 kB / 1.645 GB, free: 95.76 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/1.142, allocations: 149.3 kB / 1.645 GB, free: 95.62 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008888/1.143, allocations: 436.7 kB / 1.646 GB, free: 95.16 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.907e-05/1.143, allocations: 40.98 kB / 1.646 GB, free: 95.11 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/1.144, allocations: 55.98 kB / 1.646 GB, free: 95.06 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/1.145, allocations: 0.6846 MB / 1.647 GB, free: 94.36 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/1.145, allocations: 0.6875 kB / 1.647 GB, free: 94.36 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-05/1.145, allocations: 20 kB / 1.647 GB, free: 94.34 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.826e-05/1.146, allocations: 42.06 kB / 1.647 GB, free: 94.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001607/1.147, allocations: 0.5795 MB / 1.647 GB, free: 93.72 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004688/1.152, allocations: 2.829 MB / 1.65 GB, free: 90.68 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/1.154, allocations: 0.595 MB / 1.651 GB, free: 90.07 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006917/1.154, allocations: 267.1 kB / 1.651 GB, free: 89.8 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004663/1.155, allocations: 0.5675 MB / 1.651 GB, free: 89.11 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001064/1.156, allocations: 417 kB / 1.652 GB, free: 88.69 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=49): time 3.387e-06/1.156, allocations: 1.094 kB / 1.652 GB, free: 88.69 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49): time 0.002367/1.158, allocations: 0.7706 MB / 1.653 GB, free: 87.92 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/1.158, allocations: 86.67 kB / 1.653 GB, free: 87.82 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004964/1.159, allocations: 345.7 kB / 1.653 GB, free: 87.48 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 9.381e-05/1.159, allocations: 46.36 kB / 1.653 GB, free: 87.43 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/1.159, allocations: 273.1 kB / 1.653 GB, free: 87.15 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/1.159, allocations: 158.8 kB / 1.653 GB, free: 87 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.796e-05/1.16, allocations: 8 kB / 1.653 GB, free: 86.99 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001063/1.16, allocations: 359.7 kB / 1.654 GB, free: 86.63 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007263/1.16, allocations: 243.6 kB / 1.654 GB, free: 86.39 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008113/1.161, allocations: 382.9 kB / 1.654 GB, free: 85.98 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007909/1.162, allocations: 296.1 kB / 1.655 GB, free: 85.69 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/1.162, allocations: 3.953 kB / 1.655 GB, free: 85.68 MB / 0.8542 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001977/1.164, allocations: 0.7105 MB / 1.655 GB, free: 84.97 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001266/1.164, allocations: 192.8 kB / 1.656 GB, free: 84.74 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/1.164, allocations: 0 / 1.656 GB, free: 84.74 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.996e-05/1.164, allocations: 10.41 kB / 1.656 GB, free: 84.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009762/1.165, allocations: 115.8 kB / 1.656 GB, free: 84.62 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.621e-05/1.165, allocations: 7.984 kB / 1.656 GB, free: 84.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008885/1.166, allocations: 68.23 kB / 1.656 GB, free: 84.54 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.08e-05/1.166, allocations: 24.95 kB / 1.656 GB, free: 84.52 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/1.166, allocations: 4 kB / 1.656 GB, free: 84.52 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001664/1.168, allocations: 0.5887 MB / 1.656 GB, free: 83.93 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.168, allocations: 7.953 kB / 1.656 GB, free: 83.92 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/1.168, allocations: 4 kB / 1.656 GB, free: 83.91 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007946/1.169, allocations: 112.3 kB / 1.656 GB, free: 83.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/1.169, allocations: 4 kB / 1.656 GB, free: 83.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007677/1.17, allocations: 65.8 kB / 1.657 GB, free: 83.74 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/1.17, allocations: 20 kB / 1.657 GB, free: 83.72 MB / 0.8542 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.0005127/1.17, allocations: 306.5 kB / 1.657 GB, free: 83.41 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/1.17, allocations: 43.44 kB / 1.657 GB, free: 83.37 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/1.172, allocations: 0.6135 MB / 1.657 GB, free: 82.76 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/1.172, allocations: 8 kB / 1.657 GB, free: 82.75 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/1.172, allocations: 3.938 kB / 1.657 GB, free: 82.75 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/1.172, allocations: 0 / 1.657 GB, free: 82.75 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009911/1.173, allocations: 0.6302 MB / 1.658 GB, free: 82.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/1.173, allocations: 3.938 kB / 1.658 GB, free: 82.06 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009256/1.174, allocations: 88.36 kB / 1.658 GB, free: 81.98 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/1.174, allocations: 4.906 kB / 1.658 GB, free: 81.97 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/1.174, allocations: 15.98 kB / 1.658 GB, free: 81.96 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/1.174, allocations: 4.922 kB / 1.658 GB, free: 81.95 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.174, allocations: 4 kB / 1.658 GB, free: 81.95 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00242/1.177, allocations: 0.9197 MB / 1.659 GB, free: 81.01 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003215/1.177, allocations: 176.5 kB / 1.659 GB, free: 80.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/1.177, allocations: 12 kB / 1.659 GB, free: 80.81 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006177/1.178, allocations: 41.64 kB / 1.659 GB, free: 80.77 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/1.178, allocations: 56.25 kB / 1.659 GB, free: 80.71 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.488e-05/1.178, allocations: 20.77 kB / 1.659 GB, free: 80.7 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003435/1.178, allocations: 244.8 kB / 1.66 GB, free: 80.46 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.31e-07/1.178, allocations: 4 kB / 1.66 GB, free: 80.45 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.001069/1.18, allocations: 279.1 kB / 1.66 GB, free: 80.18 MB / 0.8542 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.0002757/1.18, allocations: 156 kB / 1.66 GB, free: 80.03 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002502/1.182, allocations: 0.9969 MB / 1.661 GB, free: 79.02 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/1.182, allocations: 0 / 1.661 GB, free: 79.02 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0007854/1.183, allocations: 292 kB / 1.661 GB, free: 78.73 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/1.185, allocations: 166.4 kB / 1.661 GB, free: 78.58 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/1.188, allocations: 1.285 MB / 1.663 GB, free: 77.28 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/1.188, allocations: 0.9103 MB / 1.664 GB, free: 76.35 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0009432/1.189, allocations: 137.5 kB / 1.664 GB, free: 76.22 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/1.189, allocations: 43.42 kB / 1.664 GB, free: 76.18 MB / 0.8542 GB Notification: Performance of SimCode: time 1.192e-06/1.189, allocations: 1 kB / 1.664 GB, free: 76.18 MB / 0.8542 GB Notification: Performance of Templates: time 0.02031/1.21, allocations: 7.674 MB / 1.671 GB, free: 68.69 MB / 0.8542 GB