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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 249.5 MB / 257 MB, free: 6.934 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.0009838/0.0009833, allocations: 188.7 kB / 316.3 MB, free: 3.273 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.656/1.656, allocations: 205.3 MB / 0.5671 GB, free: 15.92 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.0009108/0.0009108, allocations: 99.78 kB / 0.6714 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.576e-05/1.58e-05, allocations: 0 / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2115, allocations: 106.3 MB / 0.8853 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7261/0.9376, allocations: 152.1 MB / 1.034 GB, free: 2.77 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.9379, allocations: 91.25 kB / 1.034 GB, free: 2.719 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.07335/1.011, allocations: 29.26 MB / 1.063 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.653e-06/1.011, allocations: 0 / 1.063 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.752e-05/1.011, allocations: 15.94 kB / 1.063 GB, free: 10.46 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.001978/1.013, allocations: 0.8169 MB / 1.063 GB, free: 9.629 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.013, allocations: 12.02 kB / 1.063 GB, free: 9.617 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009925/1.014, allocations: 147.1 kB / 1.063 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007152/1.015, allocations: 436.4 kB / 1.064 GB, free: 9.066 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/1.015, allocations: 20 kB / 1.064 GB, free: 9.047 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/1.015, allocations: 35.94 kB / 1.064 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007737/1.016, allocations: 450.6 kB / 1.064 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/1.017, allocations: 0.5836 MB / 1.065 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.921e-05/1.017, allocations: 15.92 kB / 1.065 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.368e-05/1.017, allocations: 0 / 1.065 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.884e-05/1.017, allocations: 44.53 kB / 1.065 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/1.02, allocations: 2.733 MB / 1.068 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007639/1.021, allocations: 0.5147 MB / 1.068 GB, free: 5.324 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002849/1.022, allocations: 231.1 kB / 1.068 GB, free: 5.176 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004084/1.022, allocations: 0.5616 MB / 1.069 GB, free: 4.488 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004923/1.022, allocations: 369.7 kB / 1.069 GB, free: 4.203 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/1.022, allocations: 0 / 1.069 GB, free: 4.203 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0008261/1.023, allocations: 0.4925 MB / 1.07 GB, free: 3.836 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/1.023, allocations: 89.58 kB / 1.07 GB, free: 3.727 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002888/1.024, allocations: 276 kB / 1.07 GB, free: 3.512 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.547e-05/1.024, allocations: 37.62 kB / 1.07 GB, free: 3.473 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/1.024, allocations: 275.1 kB / 1.07 GB, free: 3.258 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/1.024, allocations: 150.3 kB / 1.071 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/1.024, allocations: 0 / 1.071 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001223/1.024, allocations: 361.1 kB / 1.071 GB, free: 2.789 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/1.024, allocations: 205.8 kB / 1.071 GB, free: 2.672 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/1.025, allocations: 329.7 kB / 1.071 GB, free: 2.402 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003798/1.025, allocations: 242.8 kB / 1.072 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/1.025, allocations: 0 / 1.072 GB, free: 2.25 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009262/1.026, allocations: 0.5964 MB / 1.072 GB, free: 1.816 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004369/1.027, allocations: 1.074 MB / 1.073 GB, free: 0.6719 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/1.027, allocations: 4 kB / 1.073 GB, free: 0.668 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/1.027, allocations: 8 kB / 1.073 GB, free: 0.6602 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005403/1.027, allocations: 111.7 kB / 1.073 GB, free: 0.5547 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/1.027, allocations: 8 kB / 1.073 GB, free: 0.5469 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/1.028, allocations: 63.38 kB / 1.073 GB, free: 500 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/1.028, allocations: 19.44 kB / 1.074 GB, free: 484 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/1.028, allocations: 4 kB / 1.074 GB, free: 480 kB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007963/1.029, allocations: 476.3 kB / 1.074 GB, free: 148 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/1.029, allocations: 8.031 kB / 1.074 GB, free: 140 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/1.029, allocations: 4.422 kB / 1.074 GB, free: 136 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/1.029, allocations: 111.3 kB / 1.074 GB, free: 28 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/1.029, allocations: 7.938 kB / 1.074 GB, free: 20 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004656/1.03, allocations: 63.5 kB / 1.074 GB, free: 15.96 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/1.03, allocations: 27.17 kB / 1.074 GB, free: 15.94 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 () * 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.000172/1.03, allocations: 126.9 kB / 1.074 GB, free: 15.81 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007681/1.031, allocations: 490.7 kB / 1.075 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-05/1.031, allocations: 47.44 kB / 1.075 GB, free: 15.41 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008698/1.032, allocations: 0.5214 MB / 1.075 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/1.032, allocations: 7.953 kB / 1.075 GB, free: 15.04 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/1.032, allocations: 4 kB / 1.075 GB, free: 15.04 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/1.032, allocations: 3.984 kB / 1.075 GB, free: 15.03 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006644/1.032, allocations: 0.5424 MB / 1.076 GB, free: 14.58 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/1.032, allocations: 0 / 1.076 GB, free: 14.58 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/1.033, allocations: 102 kB / 1.076 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/1.033, allocations: 0 / 1.076 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/1.033, allocations: 7.984 kB / 1.076 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/1.033, allocations: 0 / 1.076 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.033, allocations: 4 kB / 1.076 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/1.034, allocations: 0.8353 MB / 1.077 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002122/1.034, allocations: 174.8 kB / 1.077 GB, free: 13.72 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.182e-05/1.034, allocations: 4 kB / 1.077 GB, free: 13.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003359/1.035, allocations: 31.58 kB / 1.077 GB, free: 13.69 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/1.035, allocations: 51.38 kB / 1.077 GB, free: 13.64 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/1.035, allocations: 23.11 kB / 1.077 GB, free: 13.63 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002218/1.035, allocations: 222.1 kB / 1.077 GB, free: 13.46 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.01e-07/1.035, allocations: 0 / 1.077 GB, free: 13.46 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000816/1.036, allocations: 254.8 kB / 1.078 GB, free: 13.21 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) * 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.001473/1.037, allocations: 1.491 MB / 1.079 GB, free: 11.96 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00124/1.039, allocations: 0.8934 MB / 1.08 GB, free: 11.32 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.039, allocations: 0 / 1.08 GB, free: 11.32 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003312/1.039, allocations: 254.4 kB / 1.08 GB, free: 11.15 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007829/1.04, allocations: 157.3 kB / 1.08 GB, free: 11.02 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/1.042, allocations: 0.8884 MB / 1.081 GB, free: 10.22 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/1.042, allocations: 0.909 MB / 1.082 GB, free: 9.301 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006379/1.043, allocations: 165 kB / 1.082 GB, free: 9.141 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/1.043, allocations: 183.6 kB / 1.082 GB, free: 9.09 MB / 0.698 GB Notification: Performance of SimCode: time 5.21e-07/1.043, allocations: 3.938 kB / 1.082 GB, free: 9.086 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/1.076, allocations: 11.83 MB / 1.094 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/1.077, allocations: 175.9 kB / 1.094 GB, free: 13.17 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.081/3.157, allocations: 0 / 1.094 GB, free: 13.17 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)