Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008557/0.008557, allocations: 173.9 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 473.4 MB / 0.7469 GB, free: 6.102 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.000346, allocations: 6.812 kB / 0.9158 GB, free: 33.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3866/0.387, allocations: 162.2 MB / 1.074 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006296/0.3933, allocations: 4.076 MB / 1.078 GB, free: 3.469 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004402/0.3977, allocations: 2.166 MB / 1.08 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005389/0.3983, allocations: 8 kB / 1.08 GB, free: 1.285 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004076/0.3987, allocations: 71.36 kB / 1.08 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001148/0.3999, allocations: 306.5 kB / 1.081 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.4012, allocations: 382.8 kB / 1.081 GB, free: 0.543 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001494/0.4027, allocations: 0.9737 MB / 1.082 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.4045, allocations: 0.8074 MB / 1.083 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005639/0.4051, allocations: 238.8 kB / 1.083 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000655/0.4057, allocations: 318.5 kB / 1.083 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.4059, allocations: 27.94 kB / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007182/0.4066, allocations: 335.4 kB / 1.084 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002144/0.4068, allocations: 151.5 kB / 1.084 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004205/0.4072, allocations: 296 kB / 1.084 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.4086, allocations: 0.9462 MB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.4086, allocations: 4 kB / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.565e-06/0.4086, allocations: 0 / 1.085 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.36e-05/0.4086, allocations: 0 / 1.085 GB, free: 12.42 MB / 0.8419 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.002129/0.4108, allocations: 0.8443 MB / 1.086 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.4108, allocations: 8.031 kB / 1.086 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007997/0.4116, allocations: 140 kB / 1.086 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007318/0.4124, allocations: 438.9 kB / 1.086 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.329e-05/0.4124, allocations: 41.36 kB / 1.086 GB, free: 10.87 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.4126, allocations: 52.38 kB / 1.086 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.4139, allocations: 0.7007 MB / 1.087 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.4139, allocations: 3.938 kB / 1.087 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-05/0.414, allocations: 23.98 kB / 1.087 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.907e-05/0.4141, allocations: 48.97 kB / 1.087 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.4153, allocations: 0.5699 MB / 1.088 GB, free: 9.438 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.4193, allocations: 2.935 MB / 1.091 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.4205, allocations: 0.5639 MB / 1.091 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004801/0.421, allocations: 253.6 kB / 1.091 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005764/0.4216, allocations: 0.5701 MB / 1.092 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007582/0.4223, allocations: 404.5 kB / 1.092 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=46): time 2.645e-06/0.4223, allocations: 0 / 1.092 GB, free: 4.305 MB / 0.8419 GB Notification: Performance of matching and sorting (n=46): time 0.001554/0.4239, allocations: 0.7498 MB / 1.093 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.768e-05/0.424, allocations: 85.05 kB / 1.093 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004599/0.4245, allocations: 369.6 kB / 1.093 GB, free: 3.078 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.652e-05/0.4245, allocations: 41.7 kB / 1.094 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.4248, allocations: 284.4 kB / 1.094 GB, free: 2.746 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.4249, allocations: 146 kB / 1.094 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.145e-05/0.425, allocations: 57.69 kB / 1.094 GB, free: 2.539 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001875/0.4252, allocations: 358.8 kB / 1.094 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005093/0.4257, allocations: 245 kB / 1.095 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/0.4263, allocations: 362.7 kB / 1.095 GB, free: 1.539 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00117/0.4275, allocations: 0.5896 MB / 1.095 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.4275, allocations: 0 / 1.095 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001313/0.4288, allocations: 0.6875 MB / 1.096 GB, free: 212 kB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001853/0.429, allocations: 197 kB / 1.096 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.4291, allocations: 7.938 kB / 1.096 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.4291, allocations: 4 kB / 1.096 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005266/0.4296, allocations: 111.8 kB / 1.096 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.4296, allocations: 4 kB / 1.096 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005358/0.4302, allocations: 87.41 kB / 1.097 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.966e-05/0.4302, allocations: 20 kB / 1.097 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-06/0.4303, allocations: 3.938 kB / 1.097 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001106/0.4314, allocations: 0.5834 MB / 1.097 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.4314, allocations: 0 / 1.097 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.4314, allocations: 8 kB / 1.097 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004559/0.4319, allocations: 103.8 kB / 1.097 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.4319, allocations: 8 kB / 1.097 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004395/0.4323, allocations: 67.8 kB / 1.097 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.4324, allocations: 23.98 kB / 1.097 GB, free: 14.94 MB / 0.8575 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 (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.0003922/0.4328, allocations: 299.1 kB / 1.098 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-05/0.4329, allocations: 51.42 kB / 1.098 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.4341, allocations: 0.5854 MB / 1.098 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.4342, allocations: 4 kB / 1.098 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4342, allocations: 11.92 kB / 1.098 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4342, allocations: 0 / 1.098 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008826/0.4351, allocations: 0.6258 MB / 1.099 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4351, allocations: 4 kB / 1.099 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.4356, allocations: 100 kB / 1.099 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/0.4357, allocations: 8 kB / 1.099 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.479e-05/0.4357, allocations: 15.98 kB / 1.099 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4357, allocations: 0 / 1.099 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4357, allocations: 4 kB / 1.099 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001673/0.4374, allocations: 0.898 MB / 1.1 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002552/0.4377, allocations: 180.4 kB / 1.1 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.478e-05/0.4378, allocations: 12 kB / 1.1 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003559/0.4381, allocations: 43.89 kB / 1.1 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.4383, allocations: 47.88 kB / 1.1 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.794e-05/0.4383, allocations: 19.98 kB / 1.1 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003232/0.4387, allocations: 255.2 kB / 1.1 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4387, allocations: 0 / 1.1 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008421/0.4395, allocations: 263.1 kB / 1.101 GB, free: 11.43 MB / 0.8575 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 (47): * Single equations (assignments): 45 * 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.0002391/0.4398, allocations: 132.5 kB / 1.101 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00188/0.4417, allocations: 0.9749 MB / 1.102 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4417, allocations: 4 kB / 1.102 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.4422, allocations: 275.7 kB / 1.102 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000954/0.4432, allocations: 174.8 kB / 1.102 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.4456, allocations: 1.319 MB / 1.103 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000625/0.4463, allocations: 0.8951 MB / 1.104 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005869/0.4469, allocations: 140.3 kB / 1.104 GB, free: 7.438 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.4471, allocations: 47.42 kB / 1.105 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.4471, allocations: 0 / 1.105 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of Templates: time 0.01639/0.4635, allocations: 7.902 MB / 1.112 GB, free: 15.58 MB / 0.8731 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)