Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.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.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",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.302/2.302, allocations: 248.5 MB / 261 MB, free: 5.992 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.001427/0.001427, allocations: 179.5 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.902/1.902, allocations: 205.2 MB / 0.571 GB, free: 11.8 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.001156/0.001156, allocations: 105.5 kB / 0.6754 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.557e-05/3.58e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2014, allocations: 106.2 MB / 0.8907 GB, free: 7.449 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8937/1.095, allocations: 157.7 MB / 1.045 GB, free: 11.26 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/1.096, allocations: 90.7 kB / 1.045 GB, free: 11.21 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.08709/1.183, allocations: 21.07 MB / 1.065 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.004e-06/1.183, allocations: 0 / 1.065 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.598e-05/1.183, allocations: 24.81 kB / 1.065 GB, free: 9.797 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001994/1.185, allocations: 0.781 MB / 1.066 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/1.185, allocations: 12.02 kB / 1.066 GB, free: 8.996 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000286/1.185, allocations: 119.5 kB / 1.066 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009969/1.186, allocations: 127 kB / 1.066 GB, free: 8.793 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00094/1.187, allocations: 418.5 kB / 1.067 GB, free: 8.395 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.101e-05/1.187, allocations: 65.88 kB / 1.067 GB, free: 8.355 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001638/1.187, allocations: 76.88 kB / 1.067 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/1.19, allocations: 0.8447 MB / 1.068 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.443e-05/1.19, allocations: 0 / 1.068 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.756e-05/1.19, allocations: 31.75 kB / 1.068 GB, free: 7.625 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-05/1.19, allocations: 44.98 kB / 1.068 GB, free: 7.582 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/1.191, allocations: 0.5528 MB / 1.068 GB, free: 7.211 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006244/1.198, allocations: 3.697 MB / 1.072 GB, free: 3.797 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008545/1.199, allocations: 295 kB / 1.072 GB, free: 3.578 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006034/1.199, allocations: 197.9 kB / 1.072 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.005e-05/1.199, allocations: 4.375 kB / 1.072 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005201/1.2, allocations: 221.7 kB / 1.073 GB, free: 3.266 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 3.607e-06/1.2, allocations: 0 / 1.073 GB, free: 3.266 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.0009428/1.201, allocations: 322.3 kB / 1.073 GB, free: 3.012 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/1.201, allocations: 59.41 kB / 1.073 GB, free: 2.941 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/1.201, allocations: 384 kB / 1.073 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001028/1.202, allocations: 50.58 kB / 1.073 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/1.202, allocations: 345.1 kB / 1.074 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/1.202, allocations: 125.5 kB / 1.074 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-05/1.202, allocations: 14.94 kB / 1.074 GB, free: 2.215 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001873/1.202, allocations: 359.8 kB / 1.074 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004285/1.203, allocations: 150 kB / 1.074 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006414/1.203, allocations: 389.1 kB / 1.075 GB, free: 1.371 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005003/1.204, allocations: 188 kB / 1.075 GB, free: 1.234 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/1.204, allocations: 0 / 1.075 GB, free: 1.234 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001517/1.206, allocations: 0.5774 MB / 1.075 GB, free: 0.7695 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001278/1.207, allocations: 2.71 MB / 1.078 GB, free: 13.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-05/1.207, allocations: 8 kB / 1.078 GB, free: 13.89 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.436e-05/1.207, allocations: 12 kB / 1.078 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008068/1.208, allocations: 99.2 kB / 1.078 GB, free: 13.79 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.98e-05/1.208, allocations: 19.92 kB / 1.078 GB, free: 13.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006306/1.208, allocations: 56.41 kB / 1.078 GB, free: 13.73 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.524e-05/1.209, allocations: 39.05 kB / 1.078 GB, free: 13.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/1.209, allocations: 0 / 1.078 GB, free: 13.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001337/1.21, allocations: 0.5151 MB / 1.079 GB, free: 13.3 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/1.21, allocations: 8 kB / 1.079 GB, free: 13.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/1.21, allocations: 15.94 kB / 1.079 GB, free: 13.28 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006369/1.211, allocations: 106.7 kB / 1.079 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.071e-05/1.211, allocations: 11.94 kB / 1.079 GB, free: 13.17 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005602/1.211, allocations: 57.64 kB / 1.079 GB, free: 13.12 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/1.211, allocations: 38.42 kB / 1.079 GB, free: 13.09 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * 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.0002564/1.212, allocations: 168.1 kB / 1.079 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/1.212, allocations: 47.44 kB / 1.079 GB, free: 12.9 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/1.213, allocations: 374.8 kB / 1.08 GB, free: 12.64 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/1.213, allocations: 4 kB / 1.08 GB, free: 12.64 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.658e-05/1.213, allocations: 7.953 kB / 1.08 GB, free: 12.63 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/1.213, allocations: 0 / 1.08 GB, free: 12.63 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/1.215, allocations: 1.108 MB / 1.081 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/1.215, allocations: 0 / 1.081 GB, free: 11.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/1.216, allocations: 51.16 kB / 1.081 GB, free: 11.63 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.237e-05/1.216, allocations: 4 kB / 1.081 GB, free: 11.63 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.912e-05/1.216, allocations: 11.12 kB / 1.081 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/1.216, allocations: 4.062 kB / 1.081 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.216, allocations: 3.984 kB / 1.081 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/1.217, allocations: 0.624 MB / 1.081 GB, free: 11.11 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002957/1.218, allocations: 151.9 kB / 1.082 GB, free: 10.95 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.76e-05/1.218, allocations: 18.92 kB / 1.082 GB, free: 10.94 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003351/1.218, allocations: 14.69 kB / 1.082 GB, free: 10.93 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/1.218, allocations: 51.36 kB / 1.082 GB, free: 10.89 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.148e-05/1.218, allocations: 18.25 kB / 1.082 GB, free: 10.88 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0004475/1.219, allocations: 254.2 kB / 1.082 GB, free: 10.67 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.71e-07/1.219, allocations: 0 / 1.082 GB, free: 10.67 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001261/1.22, allocations: 236.4 kB / 1.082 GB, free: 10.47 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001877/1.222, allocations: 1.35 MB / 1.083 GB, free: 9.242 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001857/1.224, allocations: 0.7132 MB / 1.084 GB, free: 8.707 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/1.224, allocations: 0 / 1.084 GB, free: 8.707 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004507/1.224, allocations: 183.5 kB / 1.084 GB, free: 8.578 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009408/1.225, allocations: 97.77 kB / 1.084 GB, free: 8.508 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/1.228, allocations: 0.8391 MB / 1.085 GB, free: 7.738 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/1.229, allocations: 0.9279 MB / 1.086 GB, free: 6.797 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0009098/1.23, allocations: 128.7 kB / 1.086 GB, free: 6.672 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/1.23, allocations: 219.3 kB / 1.086 GB, free: 6.609 MB / 0.698 GB Notification: Performance of SimCode: time 1.282e-06/1.23, allocations: 0 / 1.086 GB, free: 6.609 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04228/1.273, allocations: 10.57 MB / 1.097 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003139/1.273, allocations: 157.8 kB / 1.097 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.152/4.425, allocations: 0 / 1.097 GB, free: 11.96 MB / 0.7136 GB