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/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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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.0009911/0.0009911, allocations: 101.5 kB / 15.06 MB, free: 1.094 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.001056/0.001056, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.4 MB / 222.1 MB, free: 5.895 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.521/1.521, allocations: 251.9 MB / 0.51 GB, free: 4.875 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005676/0.0005678, allocations: 12 kB / 0.6241 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6897/0.6903, allocations: 106.3 MB / 0.728 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.006714/0.6971, allocations: 3.788 MB / 0.7317 GB, free: 7.625 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004929/0.7022, allocations: 2.067 MB / 0.7337 GB, free: 5.547 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.7028, allocations: 7.938 kB / 0.7337 GB, free: 5.539 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.7032, allocations: 63.47 kB / 0.7338 GB, free: 5.477 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.7044, allocations: 243.3 kB / 0.734 GB, free: 5.238 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.7055, allocations: 286 kB / 0.7343 GB, free: 4.961 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000929/0.7065, allocations: 486.9 kB / 0.7347 GB, free: 4.484 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001432/0.7079, allocations: 0.7144 MB / 0.7354 GB, free: 3.727 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000419/0.7083, allocations: 207.2 kB / 0.7356 GB, free: 3.523 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004493/0.7088, allocations: 246.9 kB / 0.7359 GB, free: 3.281 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.615e-05/0.7089, allocations: 24 kB / 0.7359 GB, free: 3.258 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004717/0.7094, allocations: 183.7 kB / 0.7361 GB, free: 3.078 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.7096, allocations: 143.5 kB / 0.7362 GB, free: 2.938 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.7097, allocations: 125.4 kB / 0.7363 GB, free: 2.809 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007943/0.7105, allocations: 0.7227 MB / 0.737 GB, free: 2.086 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.7105, allocations: 0 / 0.737 GB, free: 2.086 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.345e-06/0.7105, allocations: 0 / 0.737 GB, free: 2.086 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.7106, allocations: 0 / 0.737 GB, free: 2.086 MB / 0.545 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.001742/0.7123, allocations: 0.8363 MB / 0.7378 GB, free: 1.191 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.7124, allocations: 12.03 kB / 0.7379 GB, free: 1.18 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006879/0.7131, allocations: 139.1 kB / 0.738 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006884/0.7138, allocations: 421.9 kB / 0.7384 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.88e-05/0.7138, allocations: 40.98 kB / 0.7384 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.108e-05/0.7139, allocations: 47.98 kB / 0.7385 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.7151, allocations: 0.6887 MB / 0.7392 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.7151, allocations: 0 / 0.7392 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.7152, allocations: 27.98 kB / 0.7392 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.437e-05/0.7153, allocations: 52.97 kB / 0.7392 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.7163, allocations: 0.5659 MB / 0.7398 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003738/0.72, allocations: 2.912 MB / 0.7426 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.7211, allocations: 0.5638 MB / 0.7432 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006076/0.7218, allocations: 0.5779 MB / 0.7437 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006857/0.7225, allocations: 394.8 kB / 0.7441 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=46): time 2.675e-06/0.7225, allocations: 0 / 0.7441 GB, free: 10.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46): time 0.001448/0.7239, allocations: 0.7431 MB / 0.7448 GB, free: 9.539 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.178e-05/0.724, allocations: 89.09 kB / 0.7449 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.7244, allocations: 349.7 kB / 0.7453 GB, free: 9.086 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.7245, allocations: 49.64 kB / 0.7453 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.7247, allocations: 280.4 kB / 0.7456 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001317/0.7248, allocations: 145.9 kB / 0.7457 GB, free: 8.605 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.7249, allocations: 12 kB / 0.7457 GB, free: 8.594 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.725, allocations: 358.7 kB / 0.7461 GB, free: 8.234 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004344/0.7255, allocations: 240.9 kB / 0.7463 GB, free: 8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005583/0.726, allocations: 358.7 kB / 0.7466 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.7265, allocations: 281.9 kB / 0.7469 GB, free: 7.328 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.7266, allocations: 4 kB / 0.7469 GB, free: 7.324 MB / 0.5606 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001164/0.7277, allocations: 0.6839 MB / 0.7476 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004943/0.7282, allocations: 1.077 MB / 0.7486 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.7282, allocations: 4 kB / 0.7486 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.7283, allocations: 8 kB / 0.7486 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.7288, allocations: 107.8 kB / 0.7487 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.7288, allocations: 11.98 kB / 0.7488 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.7293, allocations: 79.48 kB / 0.7488 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/0.7294, allocations: 20.11 kB / 0.7489 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.7294, allocations: 7.938 kB / 0.7489 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001067/0.7304, allocations: 0.5835 MB / 0.7494 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.7305, allocations: 4 kB / 0.7494 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.882e-06/0.7305, allocations: 4 kB / 0.7494 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.7309, allocations: 103.8 kB / 0.7495 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.7309, allocations: 4.25 kB / 0.7495 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.7313, allocations: 71.58 kB / 0.7496 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.7313, allocations: 16 kB / 0.7496 GB, free: 4.441 MB / 0.5606 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 (66): * Single equations (assignments): 65 * 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.0003681/0.7317, allocations: 299.2 kB / 0.7499 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.301e-05/0.7318, allocations: 51.39 kB / 0.75 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.7329, allocations: 0.5761 MB / 0.7505 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.7329, allocations: 8 kB / 0.7505 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.7329, allocations: 0 / 0.7505 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.7329, allocations: 3.984 kB / 0.7505 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007074/0.7336, allocations: 0.618 MB / 0.7511 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.7336, allocations: 0 / 0.7511 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005302/0.7342, allocations: 111.7 kB / 0.7512 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.7342, allocations: 4 kB / 0.7512 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.311e-05/0.7342, allocations: 7.984 kB / 0.7513 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.7343, allocations: 4 kB / 0.7513 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7343, allocations: 0 / 0.7513 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.7357, allocations: 0.9034 MB / 0.7521 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.736, allocations: 172.6 kB / 0.7523 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-05/0.736, allocations: 12 kB / 0.7523 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.7364, allocations: 39.95 kB / 0.7524 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.7365, allocations: 52 kB / 0.7524 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.7366, allocations: 16.19 kB / 0.7524 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002604/0.7368, allocations: 247.1 kB / 0.7527 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/0.7368, allocations: 0 / 0.7527 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0007226/0.7376, allocations: 267 kB / 0.7529 GB, free: 0.9688 MB / 0.5606 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 (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.0002271/0.7378, allocations: 137.8 kB / 0.753 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001579/0.7394, allocations: 0.9792 MB / 0.754 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7394, allocations: 0 / 0.754 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004498/0.7398, allocations: 276.2 kB / 0.7543 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007302/0.7406, allocations: 161.5 kB / 0.7544 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.7426, allocations: 1.241 MB / 0.7556 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.7431, allocations: 0.9067 MB / 0.7565 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000474/0.7435, allocations: 144.2 kB / 0.7566 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.7437, allocations: 43.42 kB / 0.7567 GB, free: 13 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/0.7437, allocations: 0 / 0.7567 GB, free: 13 MB / 0.5762 GB Notification: Performance of Templates: time 0.01314/0.7568, allocations: 7.548 MB / 0.7641 GB, free: 5.555 MB / 0.5762 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile Environment - environmentSimulation: (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 & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) Environment - environmentSimulation: