Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 111.2 kB / 16.42 MB, free: 6.461 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.0014/0.0014, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002097/0.002097, allocations: 279.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9534/0.9534, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 92.12 kB / 0.6821 GB, free: 7.02 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3661/0.3679, allocations: 86.97 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex): time 0.003203/0.3711, allocations: 2.65 MB / 0.7696 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.3726, allocations: 1.076 MB / 0.7707 GB, free: 168 kB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.3728, allocations: 15.94 kB / 0.7707 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.373, allocations: 71.06 kB / 0.7707 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002206/0.3732, allocations: 135 kB / 0.7709 GB, free: 15.95 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.3736, allocations: 167.6 kB / 0.771 GB, free: 15.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004262/0.374, allocations: 0.5177 MB / 0.7715 GB, free: 15.27 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.3741, allocations: 52.7 kB / 0.7716 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000273/0.3744, allocations: 243.1 kB / 0.7718 GB, free: 14.98 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.3747, allocations: 215.2 kB / 0.772 GB, free: 14.77 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.198e-05/0.3748, allocations: 28 kB / 0.7721 GB, free: 14.74 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.3749, allocations: 79.94 kB / 0.7721 GB, free: 14.66 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.929e-05/0.375, allocations: 75.67 kB / 0.7722 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000176/0.3752, allocations: 191 kB / 0.7724 GB, free: 14.4 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.3756, allocations: 417.2 kB / 0.7728 GB, free: 13.99 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3756, allocations: 4 kB / 0.7728 GB, free: 13.99 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.183e-06/0.3756, allocations: 11.88 kB / 0.7728 GB, free: 13.98 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3757, allocations: 0 / 0.7728 GB, free: 13.98 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001764/0.3774, allocations: 0.8016 MB / 0.7736 GB, free: 13.11 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3775, allocations: 8.031 kB / 0.7736 GB, free: 13.1 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.114e-05/0.3776, allocations: 40.47 kB / 0.7736 GB, free: 13.06 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.3779, allocations: 347.8 kB / 0.774 GB, free: 12.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.378, allocations: 12.81 kB / 0.774 GB, free: 12.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.831e-05/0.378, allocations: 32.27 kB / 0.774 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007134/0.3788, allocations: 329.1 kB / 0.7743 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3788, allocations: 4 kB / 0.7743 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/0.3788, allocations: 4 kB / 0.7743 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3788, allocations: 4 kB / 0.7743 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008397/0.3797, allocations: 302.1 kB / 0.7746 GB, free: 12 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3807, allocations: 0.7695 MB / 0.7754 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001063/0.3818, allocations: 389.5 kB / 0.7757 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000487/0.3823, allocations: 205.6 kB / 0.7759 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006196/0.3829, allocations: 449.5 kB / 0.7764 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007027/0.3837, allocations: 333.1 kB / 0.7767 GB, free: 9.695 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 3.016e-06/0.3837, allocations: 3.984 kB / 0.7767 GB, free: 9.691 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.0016/0.3853, allocations: 0.609 MB / 0.7773 GB, free: 9.078 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.3853, allocations: 85.11 kB / 0.7774 GB, free: 8.977 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.3856, allocations: 308.5 kB / 0.7777 GB, free: 8.668 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.3857, allocations: 37.7 kB / 0.7777 GB, free: 8.625 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.3858, allocations: 160.9 kB / 0.7778 GB, free: 8.461 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.3859, allocations: 138 kB / 0.778 GB, free: 8.324 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000148/0.386, allocations: 98 kB / 0.7781 GB, free: 8.223 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3862, allocations: 354.8 kB / 0.7784 GB, free: 7.867 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005149/0.3867, allocations: 198.7 kB / 0.7786 GB, free: 7.668 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005202/0.3872, allocations: 246.4 kB / 0.7788 GB, free: 7.414 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.572/6.959, allocations: 0.866 GB / 1.645 GB, free: 275.7 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/6.959, allocations: 0 / 1.645 GB, free: 275.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001242/6.96, allocations: 0.6329 MB / 1.645 GB, free: 275.2 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/6.96, allocations: 92.91 kB / 1.646 GB, free: 275.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/6.96, allocations: 4.125 kB / 1.646 GB, free: 275.1 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/6.96, allocations: 7.938 kB / 1.646 GB, free: 275.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005371/6.961, allocations: 111.7 kB / 1.646 GB, free: 275 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/6.961, allocations: 4 kB / 1.646 GB, free: 275 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004699/6.961, allocations: 63.97 kB / 1.646 GB, free: 275 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/6.961, allocations: 27.64 kB / 1.646 GB, free: 274.9 MB / 0.8419 GB Warning: Assuming fixed start value for the following 8 variables: battery_C20.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_C20.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery_1C.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery_1C.EAva:VARIABLE(start = 0.315 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_1C.EBou:VARIABLE(start = 0.685 * battery_1C.SOC_start * battery_1C.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real battery_C20.EAva:VARIABLE(start = 0.315 * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery_C20.EBou:VARIABLE(start = 0.685 * battery_C20.SOC_start * battery_C20.E_nominal unit = "J" fixed = true ) "Bound charge of the battery" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.load_1C.count,$PRE.load_1C.T_start,$PRE.gain.count,$PRE.gain.T_start,load_1C.count,load_1C.T_start,gain.count,gain.T_start,$whenCondition2,$whenCondition3,$PRE.load_C20.count,$PRE.load_C20.T_start,load_C20.count,load_C20.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 3 * 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.0002448/6.962, allocations: 204.2 kB / 1.646 GB, free: 274.8 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.903e-05/6.962, allocations: 34.12 kB / 1.646 GB, free: 274.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/6.963, allocations: 0.6417 MB / 1.647 GB, free: 274.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/6.963, allocations: 3.984 kB / 1.647 GB, free: 274.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/6.963, allocations: 0 / 1.647 GB, free: 274.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/6.963, allocations: 163.5 kB / 1.647 GB, free: 273.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/6.963, allocations: 16 kB / 1.647 GB, free: 273.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004283/6.964, allocations: 35.84 kB / 1.647 GB, free: 273.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/6.964, allocations: 55.94 kB / 1.647 GB, free: 273.8 MB / 0.8419 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001772/6.966, allocations: 0.7719 MB / 1.648 GB, free: 273.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001552/6.967, allocations: 1.018 MB / 1.649 GB, free: 272.1 MB / 0.8419 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004817/6.968, allocations: 260.5 kB / 1.649 GB, free: 271.8 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001442/6.968, allocations: 211.1 kB / 1.649 GB, free: 271.6 MB / 0.8419 GB Notification: Performance of Backend: time 4.81e-07/6.968, allocations: 0 / 1.649 GB, free: 271.6 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001111/6.969, allocations: 0.5628 MB / 1.65 GB, free: 271 MB / 0.8419 GB Notification: Performance of SimCode: time 0.001238/6.97, allocations: 1.462 MB / 1.651 GB, free: 269.5 MB / 0.8419 GB Notification: Performance of Templates: time 0.009274/6.98, allocations: 7.167 MB / 1.658 GB, free: 262.5 MB / 0.8419 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatteryComplex.pipe 2>&1)