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.001474/0.001474, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001461/0.001461, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.317/1.317, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002462/0.002462, allocations: 285.9 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.195/1.195, allocations: 178.5 MB / 0.5079 GB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002792/0.002792, allocations: 100.1 kB / 0.6071 GB, free: 9.293 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1714/0.1742, allocations: 89.14 MB / 0.6941 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.003239/0.1775, allocations: 1.936 MB / 0.696 GB, free: 14.12 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1788, allocations: 0.8659 MB / 0.6969 GB, free: 13.24 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.833e-05/0.1789, allocations: 7.938 kB / 0.6969 GB, free: 13.23 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002021/0.1792, allocations: 51.69 kB / 0.6969 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 9.696e-05/0.1793, allocations: 47.56 kB / 0.697 GB, free: 13.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.1795, allocations: 87.77 kB / 0.6971 GB, free: 13.05 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00022/0.1798, allocations: 195.3 kB / 0.6973 GB, free: 12.86 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.791e-05/0.1799, allocations: 21.55 kB / 0.6973 GB, free: 12.84 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.18, allocations: 87.58 kB / 0.6974 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.1802, allocations: 79.66 kB / 0.6974 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.1802, allocations: 16 kB / 0.6975 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.1803, allocations: 59.95 kB / 0.6975 GB, free: 12.6 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.309e-05/0.1804, allocations: 23.92 kB / 0.6975 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.504e-05/0.1805, allocations: 71.58 kB / 0.6976 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.1807, allocations: 183.7 kB / 0.6978 GB, free: 12.33 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1807, allocations: 0 / 0.6978 GB, free: 12.33 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.765e-06/0.1807, allocations: 3.938 kB / 0.6978 GB, free: 12.32 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.1807, allocations: 3.938 kB / 0.6978 GB, free: 12.32 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0009447/0.1817, allocations: 0.5043 MB / 0.6983 GB, free: 11.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.1817, allocations: 12.03 kB / 0.6983 GB, free: 11.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.798e-05/0.1818, allocations: 16.75 kB / 0.6983 GB, free: 11.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.1821, allocations: 236.5 kB / 0.6985 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.1821, allocations: 4.375 kB / 0.6985 GB, free: 11.46 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.1821, allocations: 12.28 kB / 0.6985 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002983/0.1824, allocations: 129.9 kB / 0.6987 GB, free: 11.32 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1825, allocations: 11.88 kB / 0.6987 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.1825, allocations: 4 kB / 0.6987 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.1825, allocations: 0 / 0.6987 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003135/0.1828, allocations: 95.92 kB / 0.6988 GB, free: 11.21 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.1835, allocations: 416.5 kB / 0.6992 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.1838, allocations: 138.4 kB / 0.6993 GB, free: 10.61 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.184, allocations: 72.81 kB / 0.6994 GB, free: 10.53 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006519/0.1847, allocations: 445.5 kB / 0.6998 GB, free: 10 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.185, allocations: 127.3 kB / 0.6999 GB, free: 9.867 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.402e-06/0.185, allocations: 0 / 0.6999 GB, free: 9.867 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.000641/0.1857, allocations: 235.9 kB / 0.7001 GB, free: 9.633 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.1857, allocations: 55.41 kB / 0.7002 GB, free: 9.566 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.1859, allocations: 184.6 kB / 0.7004 GB, free: 9.379 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1859, allocations: 33.7 kB / 0.7004 GB, free: 9.34 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.186, allocations: 115.8 kB / 0.7005 GB, free: 9.223 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.243e-05/0.1861, allocations: 55.2 kB / 0.7006 GB, free: 9.168 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.369e-05/0.1862, allocations: 45.69 kB / 0.7006 GB, free: 9.117 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.1863, allocations: 330.8 kB / 0.7009 GB, free: 8.785 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.1865, allocations: 80.8 kB / 0.701 GB, free: 8.703 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.1867, allocations: 86.53 kB / 0.7011 GB, free: 8.609 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.71/2.897, allocations: 378.8 MB / 1.071 GB, free: 200 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/2.897, allocations: 4.656 kB / 1.071 GB, free: 200 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004507/2.897, allocations: 249.9 kB / 1.071 GB, free: 199.8 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/2.897, allocations: 33.7 kB / 1.071 GB, free: 199.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/2.897, allocations: 0 / 1.071 GB, free: 199.8 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/2.897, allocations: 0 / 1.071 GB, free: 199.8 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/2.898, allocations: 46.38 kB / 1.071 GB, free: 199.7 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/2.898, allocations: 8.609 kB / 1.071 GB, free: 199.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001685/2.898, allocations: 20.61 kB / 1.071 GB, free: 199.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/2.898, allocations: 6.562 kB / 1.071 GB, free: 199.7 MB / 0.7325 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.6850000000000001 * 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.0001582/2.898, allocations: 154.5 kB / 1.071 GB, free: 199.6 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.712e-05/2.898, allocations: 21.84 kB / 1.072 GB, free: 199.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005183/2.899, allocations: 238.8 kB / 1.072 GB, free: 199.4 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/2.899, allocations: 4 kB / 1.072 GB, free: 199.4 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/2.899, allocations: 0 / 1.072 GB, free: 199.4 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/2.899, allocations: 0 / 1.072 GB, free: 199.4 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/2.899, allocations: 258.7 kB / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/2.899, allocations: 5.172 kB / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002177/2.899, allocations: 41.66 kB / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/2.899, allocations: 0 / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/2.899, allocations: 7.312 kB / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/2.899, allocations: 0 / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/2.899, allocations: 0 / 1.072 GB, free: 199.1 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005295/2.9, allocations: 321 kB / 1.072 GB, free: 198.8 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.164e-05/2.9, allocations: 109.5 kB / 1.072 GB, free: 198.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/2.9, allocations: 0 / 1.072 GB, free: 198.7 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/2.9, allocations: 18.59 kB / 1.072 GB, free: 198.7 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/2.9, allocations: 19.72 kB / 1.072 GB, free: 198.7 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/2.9, allocations: 4.5 kB / 1.072 GB, free: 198.7 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.912e-05/2.9, allocations: 140.2 kB / 1.073 GB, free: 198.6 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/2.9, allocations: 0 / 1.073 GB, free: 198.6 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002451/2.9, allocations: 55.62 kB / 1.073 GB, free: 198.5 MB / 0.7325 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.000129/2.9, allocations: 125.7 kB / 1.073 GB, free: 198.4 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004156/2.901, allocations: 232.5 kB / 1.073 GB, free: 198.2 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/2.901, allocations: 0 / 1.073 GB, free: 198.2 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001748/2.901, allocations: 90.88 kB / 1.073 GB, free: 198.1 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/2.901, allocations: 32.92 kB / 1.073 GB, free: 198.1 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007473/2.902, allocations: 0.5583 MB / 1.074 GB, free: 197.6 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001074/2.902, allocations: 0.7164 MB / 1.074 GB, free: 196.9 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.584e-05/2.902, allocations: 29.42 kB / 1.074 GB, free: 196.8 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/2.902, allocations: 0 / 1.074 GB, free: 196.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.003466/2.906, allocations: 2.666 MB / 1.077 GB, free: 194.3 MB / 0.7325 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)