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.578/1.578, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 184.2 kB / 326.5 MB, free: 2.25 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.857/1.857, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0008653/0.0008655, allocations: 101.3 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003298/0.0003299, allocations: 9.5 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2303, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2011/0.4314, allocations: 150.4 MB / 1.047 GB, free: 9.184 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/0.4318, allocations: 103.9 kB / 1.047 GB, free: 9.082 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.633/1.065, allocations: 27.61 MB / 1.074 GB, free: 149.4 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.305e-06/1.065, allocations: 4 kB / 1.074 GB, free: 149.4 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.562e-05/1.065, allocations: 11.72 kB / 1.074 GB, free: 149.4 MB / 0.698 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.002825/1.068, allocations: 0.8855 MB / 1.075 GB, free: 148.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.669e-05/1.068, allocations: 13.67 kB / 1.075 GB, free: 148.7 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003241/1.068, allocations: 91.23 kB / 1.075 GB, free: 148.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/1.069, allocations: 143.9 kB / 1.075 GB, free: 148.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/1.07, allocations: 442.5 kB / 1.076 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/1.07, allocations: 41.09 kB / 1.076 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/1.071, allocations: 53.97 kB / 1.076 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/1.072, allocations: 0.6813 MB / 1.076 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.32e-05/1.072, allocations: 3.938 kB / 1.076 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.647e-05/1.072, allocations: 22.59 kB / 1.076 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.842e-05/1.072, allocations: 39.33 kB / 1.076 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001416/1.074, allocations: 0.575 MB / 1.077 GB, free: 147.9 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004389/1.078, allocations: 2.834 MB / 1.08 GB, free: 145.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/1.08, allocations: 0.5881 MB / 1.08 GB, free: 145.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004294/1.08, allocations: 0.5685 MB / 1.081 GB, free: 145 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008201/1.081, allocations: 408.7 kB / 1.081 GB, free: 144.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.376e-06/1.081, allocations: 0 / 1.081 GB, free: 144.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001775/1.083, allocations: 0.7696 MB / 1.082 GB, free: 144.7 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/1.083, allocations: 82.8 kB / 1.082 GB, free: 144.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005045/1.083, allocations: 314.5 kB / 1.082 GB, free: 144.4 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.19e-05/1.083, allocations: 42.98 kB / 1.083 GB, free: 144.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002818/1.084, allocations: 279.4 kB / 1.083 GB, free: 144.2 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/1.084, allocations: 159.2 kB / 1.083 GB, free: 144.1 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.467e-05/1.084, allocations: 11.41 kB / 1.083 GB, free: 144.1 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001525/1.084, allocations: 354.4 kB / 1.083 GB, free: 143.8 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005634/1.085, allocations: 246.5 kB / 1.084 GB, free: 143.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/1.085, allocations: 369.5 kB / 1.084 GB, free: 143.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006158/1.086, allocations: 298.3 kB / 1.084 GB, free: 143.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/1.086, allocations: 1.344 kB / 1.084 GB, free: 143.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001514/1.087, allocations: 0.7033 MB / 1.085 GB, free: 143.3 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003405/1.088, allocations: 1.073 MB / 1.086 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/1.088, allocations: 2.625 kB / 1.086 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.404e-05/1.088, allocations: 5.969 kB / 1.086 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006653/1.089, allocations: 118.1 kB / 1.086 GB, free: 142.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.561e-05/1.089, allocations: 13.48 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006505/1.089, allocations: 88.97 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.272e-05/1.089, allocations: 19.31 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.089, allocations: 3.656 kB / 1.086 GB, free: 142.1 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001482/1.091, allocations: 0.5945 MB / 1.087 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/1.091, allocations: 3.062 kB / 1.087 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/1.091, allocations: 6.219 kB / 1.087 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005394/1.091, allocations: 109.7 kB / 1.087 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/1.091, allocations: 5.344 kB / 1.087 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005835/1.092, allocations: 70.11 kB / 1.087 GB, free: 141.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.116e-05/1.092, allocations: 23.98 kB / 1.087 GB, free: 141.8 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 () * 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.0005497/1.093, allocations: 290 kB / 1.087 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/1.093, allocations: 47.44 kB / 1.087 GB, free: 141.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/1.094, allocations: 0.612 MB / 1.088 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/1.094, allocations: 7.922 kB / 1.088 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.094, allocations: 320 / 1.088 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/1.094, allocations: 3.984 kB / 1.088 GB, free: 141.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008868/1.095, allocations: 0.624 MB / 1.088 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/1.095, allocations: 7.062 kB / 1.088 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004817/1.096, allocations: 101.8 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.015e-06/1.096, allocations: 2.938 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/1.096, allocations: 10.55 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/1.096, allocations: 2.969 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.096, allocations: 7.938 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/1.097, allocations: 0.9328 MB / 1.089 GB, free: 140.1 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002641/1.097, allocations: 173.5 kB / 1.09 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.969e-05/1.098, allocations: 11.44 kB / 1.09 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/1.098, allocations: 52.8 kB / 1.09 GB, free: 139.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/1.098, allocations: 45.58 kB / 1.09 GB, free: 139.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/1.098, allocations: 22.03 kB / 1.09 GB, free: 139.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002487/1.098, allocations: 236.8 kB / 1.09 GB, free: 139.7 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.132e-06/1.098, allocations: 0 / 1.09 GB, free: 139.7 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0009577/1.099, allocations: 287 kB / 1.09 GB, free: 139.6 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) * 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.001733/1.101, allocations: 1.591 MB / 1.092 GB, free: 138.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001542/1.103, allocations: 0.9943 MB / 1.093 GB, free: 137.9 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.103, allocations: 0 / 1.093 GB, free: 137.9 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004426/1.103, allocations: 298.5 kB / 1.093 GB, free: 137.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/1.104, allocations: 148 kB / 1.093 GB, free: 137.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005255/1.109, allocations: 4.802 MB / 1.098 GB, free: 134 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/1.11, allocations: 0.9108 MB / 1.099 GB, free: 133 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006043/1.11, allocations: 153.3 kB / 1.099 GB, free: 132.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/1.111, allocations: 191.4 kB / 1.099 GB, free: 132.7 MB / 0.698 GB Notification: Performance of SimCode: time 9.21e-07/1.111, allocations: 0 / 1.099 GB, free: 132.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02564/1.136, allocations: 11.93 MB / 1.111 GB, free: 121 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/1.136, allocations: 211.5 kB / 1.111 GB, free: 120.7 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.766, allocations: 5.875 kB / 1.111 GB, free: 120.7 MB / 0.698 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)