Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.2208/0.2215, allocations: 82.22 MB / 0.5941 GB, free: 5.543 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005374/0.227, allocations: 4.027 MB / 0.5981 GB, free: 1.488 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003937/0.2309, allocations: 2.334 MB / 0.6003 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.2314, allocations: 7.938 kB / 0.6003 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003193/0.2317, allocations: 63.42 kB / 0.6004 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.2329, allocations: 342.5 kB / 0.6007 GB, free: 14.74 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001054/0.2339, allocations: 377.9 kB / 0.6011 GB, free: 14.37 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.2352, allocations: 0.9774 MB / 0.602 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001546/0.2368, allocations: 0.7963 MB / 0.6028 GB, free: 12.56 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004877/0.2373, allocations: 234.9 kB / 0.603 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007876/0.2381, allocations: 330.6 kB / 0.6034 GB, free: 12.01 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.2382, allocations: 20 kB / 0.6034 GB, free: 11.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007438/0.239, allocations: 335.4 kB / 0.6037 GB, free: 11.66 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.2392, allocations: 143.5 kB / 0.6038 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004692/0.2397, allocations: 300 kB / 0.6041 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.241, allocations: 0.9226 MB / 0.605 GB, free: 10.29 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2411, allocations: 0 / 0.605 GB, free: 10.29 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.2411, allocations: 0 / 0.605 GB, free: 10.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.2411, allocations: 4 kB / 0.605 GB, free: 10.29 MB / 462.1 MB 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.002122/0.2433, allocations: 0.8209 MB / 0.6058 GB, free: 9.41 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.2433, allocations: 12.03 kB / 0.6058 GB, free: 9.398 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008316/0.2441, allocations: 132.1 kB / 0.606 GB, free: 9.27 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007427/0.2449, allocations: 434.9 kB / 0.6064 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.045e-05/0.245, allocations: 37.36 kB / 0.6064 GB, free: 8.77 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001078/0.2451, allocations: 56.12 kB / 0.6065 GB, free: 8.715 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.2465, allocations: 0.6965 MB / 0.6072 GB, free: 7.98 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.2465, allocations: 3.938 kB / 0.6072 GB, free: 7.977 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.292e-05/0.2466, allocations: 31.98 kB / 0.6072 GB, free: 7.945 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.82e-05/0.2467, allocations: 44.97 kB / 0.6072 GB, free: 7.902 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/0.248, allocations: 0.5699 MB / 0.6078 GB, free: 7.332 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003362/0.2513, allocations: 2.369 MB / 0.6101 GB, free: 4.848 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.2525, allocations: 0.5692 MB / 0.6107 GB, free: 4.262 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.2529, allocations: 257.6 kB / 0.6109 GB, free: 4.004 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000493/0.2534, allocations: 0.5661 MB / 0.6115 GB, free: 3.309 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006554/0.2541, allocations: 396.6 kB / 0.6118 GB, free: 2.902 MB / 462.1 MB Notification: Performance of pre-optimization done (n=46): time 3.236e-06/0.2541, allocations: 4 kB / 0.6118 GB, free: 2.898 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.001404/0.2555, allocations: 0.7505 MB / 0.6126 GB, free: 2.141 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.2556, allocations: 97.16 kB / 0.6127 GB, free: 2.027 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.2559, allocations: 349.6 kB / 0.613 GB, free: 1.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.256, allocations: 37.7 kB / 0.613 GB, free: 1.637 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.2562, allocations: 288.3 kB / 0.6133 GB, free: 1.348 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.2563, allocations: 142 kB / 0.6134 GB, free: 1.207 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.2564, allocations: 53.69 kB / 0.6135 GB, free: 1.148 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2566, allocations: 358.7 kB / 0.6138 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/0.257, allocations: 245 kB / 0.6141 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/0.2575, allocations: 358.7 kB / 0.6144 GB, free: 156 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009183/0.2585, allocations: 0.5866 MB / 0.615 GB, free: 15.52 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2585, allocations: 4 kB / 0.615 GB, free: 15.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001174/0.2597, allocations: 0.6871 MB / 0.6157 GB, free: 14.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001774/0.2598, allocations: 201 kB / 0.6158 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.2599, allocations: 4 kB / 0.6159 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.2599, allocations: 8 kB / 0.6159 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000557/0.2605, allocations: 111.8 kB / 0.616 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-05/0.2605, allocations: 19.86 kB / 0.616 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.261, allocations: 79.42 kB / 0.6161 GB, free: 14.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.508e-05/0.261, allocations: 23.98 kB / 0.6161 GB, free: 14.33 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.164e-06/0.261, allocations: 4 kB / 0.6161 GB, free: 14.33 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001044/0.2621, allocations: 0.5797 MB / 0.6167 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2621, allocations: 4 kB / 0.6167 GB, free: 13.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.483e-06/0.2621, allocations: 4 kB / 0.6167 GB, free: 13.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.2625, allocations: 103.8 kB / 0.6168 GB, free: 13.63 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.2625, allocations: 11.98 kB / 0.6168 GB, free: 13.62 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003839/0.2629, allocations: 63.83 kB / 0.6168 GB, free: 13.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.263, allocations: 20 kB / 0.6169 GB, free: 13.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003897/0.2634, allocations: 300 kB / 0.6171 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.419e-05/0.2635, allocations: 43.44 kB / 0.6172 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001162/0.2646, allocations: 0.6064 MB / 0.6178 GB, free: 12.58 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.2646, allocations: 11.98 kB / 0.6178 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2647, allocations: 0 / 0.6178 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.2647, allocations: 3.984 kB / 0.6178 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.2669, allocations: 1.376 MB / 0.6191 GB, free: 11.13 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.2669, allocations: 0 / 0.6191 GB, free: 11.13 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.2673, allocations: 91.81 kB / 0.6192 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.2674, allocations: 11.98 kB / 0.6192 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.304e-05/0.2674, allocations: 8 kB / 0.6192 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2674, allocations: 192 / 0.6192 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.2674, allocations: 11.94 kB / 0.6192 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.269, allocations: 0.9753 MB / 0.6202 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.2692, allocations: 172.5 kB / 0.6204 GB, free: 9.828 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.2693, allocations: 12 kB / 0.6204 GB, free: 9.816 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.2696, allocations: 39.94 kB / 0.6204 GB, free: 9.777 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/0.2697, allocations: 56.31 kB / 0.6205 GB, free: 9.723 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.2698, allocations: 16 kB / 0.6205 GB, free: 9.707 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002521/0.27, allocations: 251.1 kB / 0.6207 GB, free: 9.461 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.27, allocations: 0 / 0.6207 GB, free: 9.461 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0007703/0.2708, allocations: 267 kB / 0.621 GB, free: 9.199 MB / 478.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001954/0.271, allocations: 127 kB / 0.6211 GB, free: 9.066 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.2727, allocations: 0.9839 MB / 0.6221 GB, free: 8.062 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2727, allocations: 4 kB / 0.6221 GB, free: 8.059 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004782/0.2732, allocations: 294.2 kB / 0.6223 GB, free: 7.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009113/0.2741, allocations: 163.4 kB / 0.6225 GB, free: 7.617 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.2763, allocations: 1.36 MB / 0.6238 GB, free: 6.234 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/0.2768, allocations: 0.8955 MB / 0.6247 GB, free: 5.312 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004927/0.2773, allocations: 140.3 kB / 0.6248 GB, free: 5.172 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.2775, allocations: 51.42 kB / 0.6249 GB, free: 5.121 MB / 478.1 MB Notification: Performance of SimCode: time 2.044e-06/0.2775, allocations: 4 kB / 0.6249 GB, free: 5.117 MB / 478.1 MB Notification: Performance of Templates: time 0.01323/0.2907, allocations: 8.041 MB / 0.6327 GB, free: 13.17 MB / 494.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: