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.431/1.431, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.001228/0.001228, allocations: 176.5 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 2.139/2.139, allocations: 205.4 MB / 0.5775 GB, free: 20.61 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.0008863/0.0008863, allocations: 91.97 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003585, allocations: 9 kB / 0.7963 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2849, allocations: 106.3 MB / 0.9002 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.5193, allocations: 151.9 MB / 1.049 GB, free: 8.23 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5196, allocations: 95.94 kB / 1.049 GB, free: 8.137 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6475/1.167, allocations: 29.52 MB / 1.077 GB, free: 148.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.755e-06/1.167, allocations: 4.906 kB / 1.077 GB, free: 148.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.212e-05/1.167, allocations: 19.09 kB / 1.077 GB, free: 148.5 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.001754/1.169, allocations: 0.881 MB / 1.078 GB, free: 147.8 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/1.169, allocations: 8.812 kB / 1.078 GB, free: 147.8 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001267/1.169, allocations: 96.66 kB / 1.078 GB, free: 147.8 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008697/1.17, allocations: 144.6 kB / 1.079 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/1.171, allocations: 443.7 kB / 1.079 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/1.171, allocations: 39.84 kB / 1.079 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/1.171, allocations: 54.94 kB / 1.079 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/1.172, allocations: 0.677 MB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/1.172, allocations: 5.109 kB / 1.08 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/1.172, allocations: 28.38 kB / 1.08 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.07e-05/1.172, allocations: 44.14 kB / 1.08 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/1.174, allocations: 0.5716 MB / 1.08 GB, free: 147 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003711/1.177, allocations: 2.828 MB / 1.083 GB, free: 145 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/1.179, allocations: 0.5906 MB / 1.084 GB, free: 144.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003605/1.179, allocations: 0.5591 MB / 1.084 GB, free: 144.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007372/1.18, allocations: 418.9 kB / 1.085 GB, free: 144 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 3.136e-06/1.18, allocations: 0 / 1.085 GB, free: 144 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.002122/1.182, allocations: 0.774 MB / 1.085 GB, free: 143.8 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.928e-05/1.182, allocations: 87.28 kB / 1.085 GB, free: 143.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/1.182, allocations: 303 kB / 1.086 GB, free: 143.6 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 6.882e-05/1.183, allocations: 43.36 kB / 1.086 GB, free: 143.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002234/1.183, allocations: 285.6 kB / 1.086 GB, free: 143.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/1.183, allocations: 155 kB / 1.086 GB, free: 143.2 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/1.183, allocations: 10.62 kB / 1.086 GB, free: 143.2 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001001/1.183, allocations: 357.6 kB / 1.087 GB, free: 142.9 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004816/1.184, allocations: 240.3 kB / 1.087 GB, free: 142.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005665/1.184, allocations: 374.3 kB / 1.087 GB, free: 142.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004544/1.185, allocations: 291.5 kB / 1.087 GB, free: 142.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/1.185, allocations: 4 kB / 1.087 GB, free: 142.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001057/1.186, allocations: 0.7046 MB / 1.088 GB, free: 141.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002534/1.186, allocations: 1.077 MB / 1.089 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/1.186, allocations: 4 kB / 1.089 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/1.186, allocations: 7.156 kB / 1.089 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/1.186, allocations: 112.9 kB / 1.089 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/1.187, allocations: 7.562 kB / 1.089 GB, free: 140.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005184/1.187, allocations: 75.86 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/1.187, allocations: 28.25 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 8.767e-06/1.187, allocations: 6.031 kB / 1.089 GB, free: 140.7 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009155/1.188, allocations: 0.5949 MB / 1.09 GB, free: 140.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/1.188, allocations: 0 / 1.09 GB, free: 140.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.862e-06/1.188, allocations: 7.312 kB / 1.09 GB, free: 140.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004064/1.188, allocations: 115.3 kB / 1.09 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/1.189, allocations: 7.75 kB / 1.09 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004143/1.189, allocations: 67.17 kB / 1.09 GB, free: 140.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/1.189, allocations: 21.53 kB / 1.09 GB, free: 140.3 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.0004759/1.189, allocations: 299.3 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.749e-05/1.19, allocations: 45.16 kB / 1.091 GB, free: 140 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/1.191, allocations: 0.6109 MB / 1.091 GB, free: 139.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/1.191, allocations: 7.828 kB / 1.091 GB, free: 139.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.191, allocations: 7.75 kB / 1.091 GB, free: 139.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/1.191, allocations: 3.984 kB / 1.091 GB, free: 139.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008184/1.191, allocations: 0.6249 MB / 1.092 GB, free: 139.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/1.191, allocations: 0 / 1.092 GB, free: 139.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004979/1.192, allocations: 98.2 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/1.192, allocations: 3.094 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-05/1.192, allocations: 7.344 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/1.192, allocations: 4 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.192, allocations: 11.88 kB / 1.092 GB, free: 139.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/1.194, allocations: 0.9266 MB / 1.093 GB, free: 138.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/1.194, allocations: 189.3 kB / 1.093 GB, free: 138.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/1.194, allocations: 13.91 kB / 1.093 GB, free: 138.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/1.194, allocations: 46.41 kB / 1.093 GB, free: 138.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/1.195, allocations: 46.95 kB / 1.093 GB, free: 138.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-05/1.195, allocations: 19.45 kB / 1.093 GB, free: 138.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002956/1.195, allocations: 243.3 kB / 1.093 GB, free: 138.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.1e-07/1.195, allocations: 0 / 1.093 GB, free: 138.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000989/1.196, allocations: 277.9 kB / 1.094 GB, free: 138.1 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.002099/1.198, allocations: 1.596 MB / 1.095 GB, free: 136.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001834/1.2, allocations: 0.9927 MB / 1.096 GB, free: 136.4 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/1.2, allocations: 0 / 1.096 GB, free: 136.4 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004765/1.2, allocations: 293.7 kB / 1.096 GB, free: 136.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008979/1.201, allocations: 150.1 kB / 1.097 GB, free: 136 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006476/1.208, allocations: 4.805 MB / 1.101 GB, free: 131.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/1.208, allocations: 0.9108 MB / 1.102 GB, free: 130.2 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0007047/1.209, allocations: 140.3 kB / 1.102 GB, free: 130.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003249/1.209, allocations: 187.4 kB / 1.102 GB, free: 129.9 MB / 0.698 GB Notification: Performance of SimCode: time 2.014e-06/1.209, allocations: 0 / 1.102 GB, free: 129.9 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02992/1.239, allocations: 11.94 MB / 1.114 GB, free: 118.2 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001916/1.24, allocations: 216.1 kB / 1.114 GB, free: 118 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.349/3.589, allocations: 4 kB / 1.114 GB, free: 118 MB / 0.698 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)