Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.188/2.188, allocations: 248.7 MB / 256.2 MB, free: 7.062 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001527/0.001527, allocations: 178.4 kB / 315.4 MB, free: 4.008 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.048/2.048, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 109.9 kB / 0.6704 GB, free: 5.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.448e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.2008, allocations: 106.3 MB / 0.8841 GB, free: 13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9272/1.128, allocations: 150.6 MB / 1.031 GB, free: 5.656 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/1.128, allocations: 94.06 kB / 1.031 GB, free: 5.605 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.1135/1.242, allocations: 27.09 MB / 1.058 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.924e-06/1.242, allocations: 0 / 1.058 GB, free: 15.2 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.571e-05/1.242, allocations: 16 kB / 1.058 GB, free: 15.18 MB / 0.6823 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.002369/1.245, allocations: 0.8267 MB / 1.059 GB, free: 14.34 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/1.245, allocations: 12.03 kB / 1.059 GB, free: 14.33 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/1.246, allocations: 151.1 kB / 1.059 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009994/1.247, allocations: 437.5 kB / 1.059 GB, free: 13.78 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/1.247, allocations: 16 kB / 1.059 GB, free: 13.76 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/1.247, allocations: 28 kB / 1.059 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001221/1.248, allocations: 457.3 kB / 1.06 GB, free: 13.45 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/1.25, allocations: 0.5935 MB / 1.06 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/1.25, allocations: 0 / 1.06 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.338e-05/1.25, allocations: 0 / 1.06 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/1.25, allocations: 48.41 kB / 1.06 GB, free: 12.94 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005394/1.256, allocations: 2.719 MB / 1.063 GB, free: 10.41 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/1.257, allocations: 0.533 MB / 1.063 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004954/1.257, allocations: 227.7 kB / 1.064 GB, free: 9.883 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006381/1.258, allocations: 0.5652 MB / 1.064 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00084/1.259, allocations: 371.5 kB / 1.064 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 6.221e-06/1.259, allocations: 3.984 kB / 1.065 GB, free: 8.902 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.001435/1.26, allocations: 498.4 kB / 1.065 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/1.26, allocations: 85.53 kB / 1.065 GB, free: 8.434 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/1.261, allocations: 281.5 kB / 1.065 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-05/1.261, allocations: 29.7 kB / 1.065 GB, free: 8.18 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/1.261, allocations: 286 kB / 1.066 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/1.262, allocations: 151.2 kB / 1.066 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.576e-05/1.262, allocations: 0 / 1.066 GB, free: 7.828 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001604/1.262, allocations: 356.7 kB / 1.066 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/1.262, allocations: 204.1 kB / 1.066 GB, free: 7.375 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005988/1.263, allocations: 336.7 kB / 1.067 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006456/1.264, allocations: 238.5 kB / 1.067 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/1.264, allocations: 0 / 1.067 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001532/1.265, allocations: 0.589 MB / 1.067 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004873/1.266, allocations: 1.085 MB / 1.068 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/1.266, allocations: 4 kB / 1.068 GB, free: 5.367 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/1.266, allocations: 4 kB / 1.068 GB, free: 5.363 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/1.267, allocations: 115.7 kB / 1.069 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/1.267, allocations: 11.97 kB / 1.069 GB, free: 5.242 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000893/1.268, allocations: 55.64 kB / 1.069 GB, free: 5.188 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-05/1.268, allocations: 30.8 kB / 1.069 GB, free: 5.164 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/1.268, allocations: 4 kB / 1.069 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001264/1.269, allocations: 472.2 kB / 1.069 GB, free: 4.84 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/1.269, allocations: 4 kB / 1.069 GB, free: 4.836 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/1.269, allocations: 4 kB / 1.069 GB, free: 4.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008222/1.27, allocations: 114.6 kB / 1.069 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/1.27, allocations: 11.95 kB / 1.069 GB, free: 4.715 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007511/1.271, allocations: 59.48 kB / 1.069 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/1.271, allocations: 19.81 kB / 1.069 GB, free: 4.641 MB / 0.6823 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 () * 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.0002334/1.271, allocations: 127.8 kB / 1.069 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001266/1.272, allocations: 495.4 kB / 1.07 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/1.272, allocations: 51.47 kB / 1.07 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/1.274, allocations: 0.5302 MB / 1.071 GB, free: 3.738 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.208e-06/1.274, allocations: 4 kB / 1.071 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.274, allocations: 0 / 1.071 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/1.274, allocations: 4 kB / 1.071 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009939/1.275, allocations: 0.5302 MB / 1.071 GB, free: 3.293 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.976e-06/1.275, allocations: 3.984 kB / 1.071 GB, free: 3.289 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009946/1.276, allocations: 99.11 kB / 1.071 GB, free: 3.195 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/1.276, allocations: 4 kB / 1.071 GB, free: 3.191 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.903e-05/1.276, allocations: 7.5 kB / 1.071 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/1.276, allocations: 0 / 1.071 GB, free: 3.188 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/1.276, allocations: 7.891 kB / 1.071 GB, free: 3.18 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/1.278, allocations: 0.8308 MB / 1.072 GB, free: 2.59 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003575/1.278, allocations: 177 kB / 1.072 GB, free: 2.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000116/1.278, allocations: 15.11 kB / 1.072 GB, free: 2.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006209/1.279, allocations: 31.91 kB / 1.072 GB, free: 2.379 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/1.279, allocations: 50.98 kB / 1.072 GB, free: 2.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.102e-05/1.279, allocations: 14.88 kB / 1.072 GB, free: 2.328 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000349/1.28, allocations: 225.3 kB / 1.072 GB, free: 2.156 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.91e-07/1.28, allocations: 0 / 1.072 GB, free: 2.156 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001137/1.281, allocations: 245.9 kB / 1.073 GB, free: 1.918 MB / 0.6823 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) * 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.002366/1.283, allocations: 1.488 MB / 1.074 GB, free: 0.668 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001977/1.285, allocations: 0.8953 MB / 1.075 GB, free: 24 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.285, allocations: 0 / 1.075 GB, free: 24 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006021/1.286, allocations: 256.6 kB / 1.075 GB, free: 15.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.287, allocations: 134.3 kB / 1.075 GB, free: 15.75 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/1.29, allocations: 0.9041 MB / 1.076 GB, free: 14.93 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/1.291, allocations: 0.9082 MB / 1.077 GB, free: 14.01 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001242/1.292, allocations: 164.5 kB / 1.077 GB, free: 13.85 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004933/1.293, allocations: 184.8 kB / 1.078 GB, free: 13.8 MB / 0.698 GB Notification: Performance of SimCode: time 1.753e-06/1.293, allocations: 0 / 1.078 GB, free: 13.8 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06065/1.353, allocations: 11.81 MB / 1.089 GB, free: 2.055 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002984/1.354, allocations: 161.7 kB / 1.089 GB, free: 1.852 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.832/4.186, allocations: 3.938 kB / 1.089 GB, free: 1.848 MB / 0.698 GB