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.486/1.486, allocations: 249.5 MB / 257 MB, free: 6.949 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.001006/0.001006, allocations: 180.9 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.569/1.569, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.00104/0.00104, allocations: 85.06 kB / 0.6714 GB, free: 4.996 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.639e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1988, allocations: 106.3 MB / 0.8853 GB, free: 12.15 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7714/0.9703, allocations: 150.6 MB / 1.032 GB, free: 4.43 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.9706, allocations: 89.75 kB / 1.033 GB, free: 4.379 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.06706/1.038, allocations: 27.34 MB / 1.059 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.943e-06/1.038, allocations: 0 / 1.059 GB, free: 13.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.384e-05/1.038, allocations: 15.94 kB / 1.059 GB, free: 13.75 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.001668/1.039, allocations: 0.8269 MB / 1.06 GB, free: 12.92 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/1.04, allocations: 8.031 kB / 1.06 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009277/1.04, allocations: 147.1 kB / 1.06 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006617/1.041, allocations: 447.8 kB / 1.061 GB, free: 12.35 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/1.041, allocations: 19.98 kB / 1.061 GB, free: 12.33 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.848e-05/1.041, allocations: 28 kB / 1.061 GB, free: 12.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007213/1.042, allocations: 458.8 kB / 1.061 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/1.043, allocations: 0.5862 MB / 1.062 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/1.043, allocations: 0 / 1.062 GB, free: 11.56 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/1.043, allocations: 4 kB / 1.062 GB, free: 11.55 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.174e-05/1.043, allocations: 37.17 kB / 1.062 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003213/1.046, allocations: 2.736 MB / 1.064 GB, free: 8.973 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000745/1.047, allocations: 0.5173 MB / 1.065 GB, free: 8.609 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/1.047, allocations: 235.5 kB / 1.065 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004933/1.048, allocations: 0.5666 MB / 1.066 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005413/1.048, allocations: 365.2 kB / 1.066 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/1.048, allocations: 4 kB / 1.066 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0008372/1.049, allocations: 495.1 kB / 1.066 GB, free: 7.121 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/1.049, allocations: 89.48 kB / 1.067 GB, free: 7.012 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/1.05, allocations: 281.7 kB / 1.067 GB, free: 6.793 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 5.421e-05/1.05, allocations: 33.69 kB / 1.067 GB, free: 6.754 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/1.05, allocations: 275.4 kB / 1.067 GB, free: 6.543 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000116/1.05, allocations: 154.8 kB / 1.067 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/1.05, allocations: 8.031 kB / 1.067 GB, free: 6.402 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001459/1.05, allocations: 352.2 kB / 1.068 GB, free: 6.066 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/1.05, allocations: 207.8 kB / 1.068 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/1.051, allocations: 328.4 kB / 1.068 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/1.051, allocations: 243.4 kB / 1.068 GB, free: 5.531 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/1.051, allocations: 8 kB / 1.068 GB, free: 5.523 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008978/1.052, allocations: 0.5856 MB / 1.069 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005109/1.053, allocations: 1.075 MB / 1.07 GB, free: 3.953 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/1.053, allocations: 7.984 kB / 1.07 GB, free: 3.945 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/1.053, allocations: 11.98 kB / 1.07 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/1.053, allocations: 107.6 kB / 1.07 GB, free: 3.832 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/1.053, allocations: 11.94 kB / 1.07 GB, free: 3.82 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/1.054, allocations: 59.53 kB / 1.07 GB, free: 3.762 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/1.054, allocations: 23.62 kB / 1.07 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.643e-06/1.054, allocations: 4 kB / 1.07 GB, free: 3.742 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00071/1.055, allocations: 479.8 kB / 1.071 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/1.055, allocations: 7.938 kB / 1.071 GB, free: 3.406 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.814e-06/1.055, allocations: 11.94 kB / 1.071 GB, free: 3.395 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004078/1.055, allocations: 103.6 kB / 1.071 GB, free: 3.297 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/1.055, allocations: 7.938 kB / 1.071 GB, free: 3.289 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003585/1.055, allocations: 59.84 kB / 1.071 GB, free: 3.23 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-05/1.055, allocations: 26.61 kB / 1.071 GB, free: 3.211 MB / 0.6823 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.0001569/1.056, allocations: 124.6 kB / 1.071 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007161/1.056, allocations: 488.7 kB / 1.071 GB, free: 2.738 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.1e-05/1.056, allocations: 51.42 kB / 1.072 GB, free: 2.688 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008524/1.057, allocations: 0.5269 MB / 1.072 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/1.057, allocations: 11.95 kB / 1.072 GB, free: 2.309 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.057, allocations: 0 / 1.072 GB, free: 2.309 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.057, allocations: 3.984 kB / 1.072 GB, free: 2.305 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005951/1.058, allocations: 0.5325 MB / 1.073 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/1.058, allocations: 0 / 1.073 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/1.058, allocations: 95.36 kB / 1.073 GB, free: 1.777 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/1.058, allocations: 4 kB / 1.073 GB, free: 1.773 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/1.058, allocations: 7.859 kB / 1.073 GB, free: 1.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/1.058, allocations: 8 kB / 1.073 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.058, allocations: 0 / 1.073 GB, free: 1.762 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/1.06, allocations: 0.8316 MB / 1.073 GB, free: 1.168 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/1.06, allocations: 179.9 kB / 1.074 GB, free: 1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.094e-05/1.06, allocations: 0 / 1.074 GB, free: 1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003231/1.06, allocations: 39.39 kB / 1.074 GB, free: 0.9648 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001673/1.06, allocations: 53.31 kB / 1.074 GB, free: 0.9219 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/1.06, allocations: 19.42 kB / 1.074 GB, free: 0.9062 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002441/1.061, allocations: 218 kB / 1.074 GB, free: 0.7422 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/1.061, allocations: 0 / 1.074 GB, free: 0.7422 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000859/1.062, allocations: 251.1 kB / 1.074 GB, free: 0.4961 MB / 0.6823 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.001555/1.063, allocations: 1.492 MB / 1.076 GB, free: 15.25 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001273/1.064, allocations: 0.8915 MB / 1.077 GB, free: 14.61 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.064, allocations: 3.938 kB / 1.077 GB, free: 14.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00035/1.065, allocations: 259.5 kB / 1.077 GB, free: 14.43 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007674/1.066, allocations: 152.5 kB / 1.077 GB, free: 14.31 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/1.067, allocations: 0.8933 MB / 1.078 GB, free: 13.5 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/1.068, allocations: 0.9057 MB / 1.079 GB, free: 12.58 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006098/1.068, allocations: 164.5 kB / 1.079 GB, free: 12.42 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/1.069, allocations: 185.9 kB / 1.079 GB, free: 12.37 MB / 0.698 GB Notification: Performance of SimCode: time 3.71e-07/1.069, allocations: 0 / 1.079 GB, free: 12.37 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03181/1.1, allocations: 11.81 MB / 1.091 GB, free: 0.6523 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002205/1.101, allocations: 166 kB / 1.091 GB, free: 468 kB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.164/3.265, allocations: 0 / 1.091 GB, free: 468 kB / 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)