Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.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.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 107.1 kB / 16.41 MB, free: 6.496 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.001209/0.001209, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.222/1.222, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 286.9 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8905/0.8905, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001804, allocations: 103.8 kB / 0.6821 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.4, allocations: 86.97 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002793/0.4028, allocations: 1.946 MB / 0.7689 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.4041, allocations: 0.8621 MB / 0.7698 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.4043, allocations: 4 kB / 0.7698 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.4045, allocations: 47.62 kB / 0.7698 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.4046, allocations: 51.56 kB / 0.7698 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.4049, allocations: 87.77 kB / 0.7699 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.4051, allocations: 199.2 kB / 0.7701 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.4052, allocations: 17.22 kB / 0.7701 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.4054, allocations: 99.61 kB / 0.7702 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.4055, allocations: 75.67 kB / 0.7703 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.4056, allocations: 12 kB / 0.7703 GB, free: 0.5312 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001241/0.4057, allocations: 59.95 kB / 0.7704 GB, free: 484 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.664e-05/0.4057, allocations: 27.84 kB / 0.7704 GB, free: 456 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.689e-05/0.4058, allocations: 71.64 kB / 0.7705 GB, free: 384 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.406, allocations: 189.9 kB / 0.7707 GB, free: 196 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.4061, allocations: 7.938 kB / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.763e-06/0.4061, allocations: 0 / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.4061, allocations: 0 / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0008212/0.4069, allocations: 0.4964 MB / 0.7711 GB, free: 15.63 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.4069, allocations: 11.97 kB / 0.7712 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.358e-05/0.407, allocations: 16.75 kB / 0.7712 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002221/0.4072, allocations: 239.9 kB / 0.7714 GB, free: 15.33 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.4072, allocations: 8.312 kB / 0.7714 GB, free: 15.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.338e-05/0.4073, allocations: 20.36 kB / 0.7714 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.4076, allocations: 125.9 kB / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.4076, allocations: 0 / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.4076, allocations: 0 / 0.7715 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.4076, allocations: 7.938 kB / 0.7716 GB, free: 15.17 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002809/0.4079, allocations: 95.92 kB / 0.7716 GB, free: 15.07 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005843/0.4085, allocations: 432.5 kB / 0.7721 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003013/0.4088, allocations: 122.5 kB / 0.7722 GB, free: 14.47 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001643/0.409, allocations: 80.75 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005559/0.4095, allocations: 449.4 kB / 0.7727 GB, free: 13.86 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.4099, allocations: 123.3 kB / 0.7728 GB, free: 13.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.694e-06/0.4099, allocations: 4 kB / 0.7728 GB, free: 13.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.0005849/0.4105, allocations: 240.8 kB / 0.773 GB, free: 13.48 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.202e-05/0.4105, allocations: 55.34 kB / 0.7731 GB, free: 13.42 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.4106, allocations: 178.5 kB / 0.7733 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.04e-05/0.4107, allocations: 25.7 kB / 0.7733 GB, free: 13.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/0.4107, allocations: 116 kB / 0.7734 GB, free: 13.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.425e-05/0.4108, allocations: 51.2 kB / 0.7734 GB, free: 13.04 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.62e-05/0.4109, allocations: 45.69 kB / 0.7735 GB, free: 12.98 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.082e-05/0.411, allocations: 326.8 kB / 0.7738 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.4111, allocations: 72.81 kB / 0.7739 GB, free: 12.58 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.4113, allocations: 95.12 kB / 0.774 GB, free: 12.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.33/2.742, allocations: 378.8 MB / 1.144 GB, free: 9.523 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/2.742, allocations: 0 / 1.144 GB, free: 9.523 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004372/2.742, allocations: 254.5 kB / 1.144 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/2.742, allocations: 36.2 kB / 1.144 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/2.742, allocations: 0 / 1.144 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/2.742, allocations: 0 / 1.144 GB, free: 9.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000205/2.743, allocations: 53.05 kB / 1.144 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/2.743, allocations: 0 / 1.144 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/2.743, allocations: 22.78 kB / 1.144 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/2.743, allocations: 11.36 kB / 1.144 GB, free: 9.223 MB / 0.7169 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to the battery" type: Real battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available charge of the battery" type: Real battery.EBou:VARIABLE(start = 0.685 * battery.SOC_start * battery.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: 3 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.gain.count,$PRE.gain.T_start,gain.count,gain.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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.00016/2.743, allocations: 154.6 kB / 1.144 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/2.743, allocations: 10.56 kB / 1.144 GB, free: 9.082 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00048/2.743, allocations: 239.1 kB / 1.145 GB, free: 8.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/2.743, allocations: 4 kB / 1.145 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/2.743, allocations: 0 / 1.145 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/2.743, allocations: 3.938 kB / 1.145 GB, free: 8.859 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/2.744, allocations: 264 kB / 1.145 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/2.744, allocations: 0 / 1.145 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/2.744, allocations: 43.97 kB / 1.145 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/2.744, allocations: 0 / 1.145 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/2.744, allocations: 2.938 kB / 1.145 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/2.744, allocations: 4 kB / 1.145 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/2.744, allocations: 3.984 kB / 1.145 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005244/2.744, allocations: 312.9 kB / 1.145 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/2.744, allocations: 110.4 kB / 1.145 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/2.745, allocations: 0 / 1.145 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/2.745, allocations: 15.98 kB / 1.145 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/2.745, allocations: 19.97 kB / 1.145 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/2.745, allocations: 4 kB / 1.145 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.737e-05/2.745, allocations: 134.2 kB / 1.145 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8.22e-07/2.745, allocations: 3.562 kB / 1.145 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002447/2.745, allocations: 66.94 kB / 1.146 GB, free: 7.852 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (battery.EAva,battery.EBou,battery.E_charged,battery.E_discharged) * Number of discrete variables: 3 ($whenCondition1,gain.T_start,gain.count) * Number of discrete states: 1 (gain.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.0001213/2.745, allocations: 124.5 kB / 1.146 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003844/2.746, allocations: 229.1 kB / 1.146 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/2.746, allocations: 0 / 1.146 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/2.746, allocations: 87.89 kB / 1.146 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/2.746, allocations: 29.75 kB / 1.146 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007011/2.747, allocations: 0.5602 MB / 1.147 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/2.747, allocations: 0.7242 MB / 1.147 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/2.747, allocations: 23.42 kB / 1.147 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/2.747, allocations: 0 / 1.147 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of Templates: time 0.00339/2.75, allocations: 2.703 MB / 1.15 GB, free: 3.355 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile (rm -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.sim & ./BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1)