Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.16/2.16, allocations: 391.2 MB / 407 MB, free: 10.85 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 185.4 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.62/1.62, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 114.4 kB / 0.9329 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 48.61 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2954, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery): time 0.005143/0.3006, allocations: 4.454 MB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.002816/0.3034, allocations: 2.182 MB / 1.225 GB, free: 110.6 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002121/0.3036, allocations: 11.94 kB / 1.225 GB, free: 110.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0009904/0.3047, allocations: 394.6 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0005582/0.3052, allocations: 310.5 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006912/0.3059, allocations: 375.4 kB / 1.226 GB, free: 109.5 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0006537/0.3066, allocations: 0.9815 MB / 1.227 GB, free: 108.5 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000646/0.3073, allocations: 0.5242 MB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.3075, allocations: 282.8 kB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003728/0.3079, allocations: 350.5 kB / 1.228 GB, free: 107.4 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.308, allocations: 36 kB / 1.228 GB, free: 107.3 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004657/0.3085, allocations: 351.4 kB / 1.228 GB, free: 107 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.3086, allocations: 175.4 kB / 1.228 GB, free: 106.8 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.3088, allocations: 302.3 kB / 1.229 GB, free: 106.5 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0006547/0.3095, allocations: 0.9657 MB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3095, allocations: 0 / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3095, allocations: 0 / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.3095, allocations: 4 kB / 1.229 GB, free: 105.5 MB / 0.823 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.001457/0.311, allocations: 0.9727 MB / 1.23 GB, free: 104.5 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.311, allocations: 15.98 kB / 1.23 GB, free: 104.5 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005612/0.3116, allocations: 128.1 kB / 1.231 GB, free: 104.4 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.3121, allocations: 442.8 kB / 1.231 GB, free: 103.9 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.3121, allocations: 45.31 kB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.122e-05/0.3122, allocations: 60.34 kB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008936/0.3131, allocations: 0.689 MB / 1.232 GB, free: 103.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.3131, allocations: 0 / 1.232 GB, free: 103.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.3132, allocations: 27.98 kB / 1.232 GB, free: 103 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.197e-05/0.3132, allocations: 48.97 kB / 1.232 GB, free: 103 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008215/0.3141, allocations: 0.562 MB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.3165, allocations: 2.908 MB / 1.235 GB, free: 99.28 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008483/0.3174, allocations: 0.5531 MB / 1.236 GB, free: 98.71 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003456/0.3178, allocations: 261.6 kB / 1.236 GB, free: 98.45 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003323/0.3181, allocations: 0.57 MB / 1.237 GB, free: 97.75 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005282/0.3186, allocations: 392.5 kB / 1.237 GB, free: 97.34 MB / 0.823 GB Notification: Performance of pre-optimization done (n=46): time 2.254e-06/0.3186, allocations: 0 / 1.237 GB, free: 97.34 MB / 0.823 GB Notification: Performance of matching and sorting (n=46): time 0.001174/0.3198, allocations: 0.7341 MB / 1.238 GB, free: 96.6 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.3199, allocations: 81.11 kB / 1.238 GB, free: 96.5 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002871/0.3202, allocations: 365.7 kB / 1.238 GB, free: 96.14 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.3202, allocations: 41.7 kB / 1.238 GB, free: 96.09 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.3203, allocations: 296.4 kB / 1.238 GB, free: 95.8 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.263e-05/0.3204, allocations: 145.9 kB / 1.239 GB, free: 95.65 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.3206, allocations: 114.1 kB / 1.239 GB, free: 95.54 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.3207, allocations: 354.7 kB / 1.239 GB, free: 95.18 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003708/0.3211, allocations: 243 kB / 1.239 GB, free: 94.94 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004077/0.3215, allocations: 354.7 kB / 1.24 GB, free: 94.55 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000704/0.3222, allocations: 0.5826 MB / 1.24 GB, free: 93.92 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3222, allocations: 0 / 1.24 GB, free: 93.92 MB / 0.823 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0009318/0.3231, allocations: 0.6684 MB / 1.241 GB, free: 93.24 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.464e-05/0.3232, allocations: 41.69 kB / 1.241 GB, free: 93.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3232, allocations: 4 kB / 1.241 GB, free: 93.19 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.3232, allocations: 8.25 kB / 1.241 GB, free: 93.18 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.3237, allocations: 107.8 kB / 1.241 GB, free: 93.08 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.3237, allocations: 4 kB / 1.241 GB, free: 93.07 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003943/0.3241, allocations: 75.47 kB / 1.241 GB, free: 93 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.705e-05/0.3241, allocations: 20 kB / 1.241 GB, free: 92.98 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004612/0.3246, allocations: 365.2 kB / 1.241 GB, free: 92.62 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003842/0.325, allocations: 346.1 kB / 1.242 GB, free: 92.24 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006113/0.3256, allocations: 0.5246 MB / 1.242 GB, free: 91.67 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.034e-06/0.3256, allocations: 0 / 1.242 GB, free: 91.67 MB / 0.823 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.0008374/0.3265, allocations: 0.6284 MB / 1.243 GB, free: 91.03 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3265, allocations: 30.95 kB / 1.243 GB, free: 91 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.3265, allocations: 12.19 kB / 1.243 GB, free: 90.98 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.761e-06/0.3265, allocations: 8 kB / 1.243 GB, free: 90.98 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.3269, allocations: 99.81 kB / 1.243 GB, free: 90.88 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3269, allocations: 7.984 kB / 1.243 GB, free: 90.87 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003779/0.3273, allocations: 59.64 kB / 1.243 GB, free: 90.81 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.3273, allocations: 23.98 kB / 1.243 GB, free: 90.79 MB / 0.823 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.0001409/0.3275, allocations: 230.4 kB / 1.243 GB, free: 90.55 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-05/0.3275, allocations: 47.42 kB / 1.243 GB, free: 90.51 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009164/0.3285, allocations: 0.5776 MB / 1.244 GB, free: 89.92 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3285, allocations: 7.938 kB / 1.244 GB, free: 89.91 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3285, allocations: 4 kB / 1.244 GB, free: 89.91 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3285, allocations: 3.984 kB / 1.244 GB, free: 89.91 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005328/0.329, allocations: 0.618 MB / 1.245 GB, free: 89.24 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.329, allocations: 7.984 kB / 1.245 GB, free: 89.23 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.3295, allocations: 99.84 kB / 1.245 GB, free: 89.13 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.3295, allocations: 0 / 1.245 GB, free: 89.13 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.3296, allocations: 12 kB / 1.245 GB, free: 89.12 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3296, allocations: 4 kB / 1.245 GB, free: 89.12 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3296, allocations: 0 / 1.245 GB, free: 89.12 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004282/0.3339, allocations: 3.223 MB / 1.248 GB, free: 85.75 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001757/0.3341, allocations: 168.6 kB / 1.248 GB, free: 85.57 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.944e-05/0.3341, allocations: 16 kB / 1.248 GB, free: 85.55 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.3344, allocations: 39.95 kB / 1.248 GB, free: 85.51 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.3346, allocations: 39.94 kB / 1.248 GB, free: 85.47 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.412e-05/0.3346, allocations: 19.98 kB / 1.248 GB, free: 85.45 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0002334/0.3349, allocations: 255.2 kB / 1.248 GB, free: 85.21 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3349, allocations: 4 kB / 1.248 GB, free: 85.2 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0009284/0.3358, allocations: 323 kB / 1.249 GB, free: 84.89 MB / 0.823 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.0001819/0.336, allocations: 143.2 kB / 1.249 GB, free: 84.74 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001338/0.3373, allocations: 0.9549 MB / 1.25 GB, free: 83.77 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3373, allocations: 1 kB / 1.25 GB, free: 83.77 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.3377, allocations: 283.5 kB / 1.25 GB, free: 83.49 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000739/0.3385, allocations: 156.5 kB / 1.25 GB, free: 83.34 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.3403, allocations: 1.589 MB / 1.252 GB, free: 81.7 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.3406, allocations: 0.9111 MB / 1.253 GB, free: 80.76 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.000502/0.3411, allocations: 148.2 kB / 1.253 GB, free: 80.62 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001397/0.3413, allocations: 47.44 kB / 1.253 GB, free: 80.57 MB / 0.823 GB Notification: Performance of SimCode: time 2.11e-07/0.3413, allocations: 0 / 1.253 GB, free: 80.57 MB / 0.823 GB Notification: Performance of Templates: time 0.01108/0.3524, allocations: 8.419 MB / 1.261 GB, free: 72.24 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)