Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.495/1.495, allocations: 249.3 MB / 261.8 MB, free: 5.887 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.001134/0.001134, allocations: 176.8 kB / 321.3 MB, free: 14.65 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.516/1.516, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0008576/0.0008575, allocations: 94.44 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.115e-05, allocations: 4 kB / 0.788 GB, free: 97.01 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2237, allocations: 106.3 MB / 0.8919 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8002/1.024, allocations: 150.4 MB / 1.039 GB, free: 1.719 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003836/1.024, allocations: 92.81 kB / 1.039 GB, free: 1.668 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.07577/1.1, allocations: 27.47 MB / 1.066 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.783e-06/1.1, allocations: 4 kB / 1.066 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.837e-05/1.1, allocations: 8 kB / 1.066 GB, free: 10.69 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.001729/1.102, allocations: 0.8274 MB / 1.066 GB, free: 9.852 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/1.102, allocations: 12.03 kB / 1.066 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001249/1.102, allocations: 93.56 kB / 1.067 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009028/1.103, allocations: 150.7 kB / 1.067 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007265/1.104, allocations: 435.5 kB / 1.067 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/1.104, allocations: 39.5 kB / 1.067 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/1.104, allocations: 48.81 kB / 1.067 GB, free: 9.16 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/1.105, allocations: 0.6602 MB / 1.068 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/1.105, allocations: 0 / 1.068 GB, free: 8.66 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-05/1.105, allocations: 25.55 kB / 1.068 GB, free: 8.648 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-05/1.105, allocations: 36.17 kB / 1.068 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008771/1.106, allocations: 0.5262 MB / 1.068 GB, free: 8.27 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00377/1.11, allocations: 2.839 MB / 1.071 GB, free: 5.641 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009559/1.111, allocations: 0.5457 MB / 1.072 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003783/1.111, allocations: 245.4 kB / 1.072 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006163/1.112, allocations: 0.5622 MB / 1.073 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006451/1.113, allocations: 390.5 kB / 1.073 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/1.113, allocations: 0 / 1.073 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0009152/1.114, allocations: 0.5093 MB / 1.073 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/1.114, allocations: 85.55 kB / 1.073 GB, free: 3.629 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/1.114, allocations: 292.3 kB / 1.074 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.519e-05/1.114, allocations: 49.84 kB / 1.074 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/1.114, allocations: 276.3 kB / 1.074 GB, free: 3.141 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/1.115, allocations: 162.2 kB / 1.074 GB, free: 3.004 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/1.115, allocations: 10.56 kB / 1.074 GB, free: 3 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001445/1.115, allocations: 362.8 kB / 1.075 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/1.115, allocations: 215.5 kB / 1.075 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/1.115, allocations: 350.3 kB / 1.075 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004012/1.116, allocations: 266.1 kB / 1.075 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.225e-06/1.116, allocations: 3.953 kB / 1.075 GB, free: 2.059 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001099/1.117, allocations: 0.6569 MB / 1.076 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005217/1.118, allocations: 1.076 MB / 1.077 GB, free: 440 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/1.118, allocations: 4 kB / 1.077 GB, free: 436 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/1.118, allocations: 4 kB / 1.077 GB, free: 432 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/1.118, allocations: 115.4 kB / 1.077 GB, free: 320 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.878e-05/1.118, allocations: 12.16 kB / 1.077 GB, free: 308 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/1.119, allocations: 77.11 kB / 1.077 GB, free: 240 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/1.119, allocations: 23.8 kB / 1.077 GB, free: 220 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/1.119, allocations: 5.875 kB / 1.077 GB, free: 216 kB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008619/1.12, allocations: 0.5436 MB / 1.078 GB, free: 15.83 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/1.12, allocations: 4 kB / 1.078 GB, free: 15.82 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/1.12, allocations: 12.14 kB / 1.078 GB, free: 15.81 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/1.12, allocations: 115.3 kB / 1.078 GB, free: 15.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/1.12, allocations: 7.938 kB / 1.078 GB, free: 15.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/1.121, allocations: 61.58 kB / 1.078 GB, free: 15.65 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.13e-05/1.121, allocations: 19.69 kB / 1.078 GB, free: 15.63 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.0001825/1.121, allocations: 144 kB / 1.078 GB, free: 15.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.57e-05/1.121, allocations: 47.52 kB / 1.078 GB, free: 15.46 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/1.122, allocations: 0.5604 MB / 1.079 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/1.122, allocations: 11.95 kB / 1.079 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/1.122, allocations: 0 / 1.079 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/1.122, allocations: 3.984 kB / 1.079 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009452/1.123, allocations: 0.626 MB / 1.079 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/1.123, allocations: 3.984 kB / 1.079 GB, free: 14.49 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004892/1.124, allocations: 95.8 kB / 1.079 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/1.124, allocations: 4.047 kB / 1.079 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/1.124, allocations: 15.98 kB / 1.08 GB, free: 14.38 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/1.124, allocations: 0 / 1.08 GB, free: 14.38 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.124, allocations: 7.953 kB / 1.08 GB, free: 14.37 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/1.125, allocations: 0.8619 MB / 1.08 GB, free: 13.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/1.125, allocations: 172.6 kB / 1.081 GB, free: 13.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.106e-05/1.125, allocations: 12.19 kB / 1.081 GB, free: 13.28 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/1.126, allocations: 51.89 kB / 1.081 GB, free: 13.23 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/1.126, allocations: 48.38 kB / 1.081 GB, free: 13.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/1.126, allocations: 19.98 kB / 1.081 GB, free: 13.16 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003259/1.126, allocations: 234.1 kB / 1.081 GB, free: 12.94 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.1e-07/1.126, allocations: 0 / 1.081 GB, free: 12.94 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009722/1.127, allocations: 291 kB / 1.081 GB, free: 12.65 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.001756/1.129, allocations: 1.526 MB / 1.083 GB, free: 11.09 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001681/1.131, allocations: 0.9403 MB / 1.084 GB, free: 10.12 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.131, allocations: 0 / 1.084 GB, free: 10.12 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004417/1.131, allocations: 270.3 kB / 1.084 GB, free: 9.859 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009223/1.132, allocations: 145.6 kB / 1.084 GB, free: 9.719 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/1.134, allocations: 0.9415 MB / 1.085 GB, free: 8.738 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006142/1.135, allocations: 0.9074 MB / 1.086 GB, free: 7.805 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000744/1.136, allocations: 168.6 kB / 1.086 GB, free: 7.637 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/1.136, allocations: 187.4 kB / 1.086 GB, free: 7.453 MB / 0.698 GB Notification: Performance of SimCode: time 1.173e-06/1.136, allocations: 0 / 1.086 GB, free: 7.453 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03254/1.169, allocations: 12.48 MB / 1.098 GB, free: 11.15 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002129/1.169, allocations: 170.8 kB / 1.098 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/3.542, allocations: 0 / 1.098 GB, free: 10.93 MB / 0.7136 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)