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.001371/0.001371, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001348/0.001348, allocations: 189.6 kB / 16.25 MB, free: 6.637 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.411/1.411, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002608/0.002608, allocations: 282.5 kB / 290.4 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.066/1.066, allocations: 178.6 MB / 0.5069 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0045/0.0045, allocations: 105.1 kB / 0.6059 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.244, allocations: 89.15 MB / 0.693 GB, free: 4.727 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.004884/0.249, allocations: 2.001 MB / 0.6949 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.2509, allocations: 0.8504 MB / 0.6958 GB, free: 1.859 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001197/0.2511, allocations: 4 kB / 0.6958 GB, free: 1.855 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.2514, allocations: 51.61 kB / 0.6958 GB, free: 1.805 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001504/0.2516, allocations: 35.7 kB / 0.6958 GB, free: 1.77 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.252, allocations: 79.84 kB / 0.6959 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.2524, allocations: 199.3 kB / 0.6961 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.2525, allocations: 17.55 kB / 0.6961 GB, free: 1.48 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002157/0.2527, allocations: 83.64 kB / 0.6962 GB, free: 1.398 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.253, allocations: 87.55 kB / 0.6963 GB, free: 1.312 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.989e-05/0.253, allocations: 8 kB / 0.6963 GB, free: 1.305 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000206/0.2532, allocations: 67.95 kB / 0.6964 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.2533, allocations: 31.89 kB / 0.6964 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.2535, allocations: 71.59 kB / 0.6965 GB, free: 1.137 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.2539, allocations: 179.7 kB / 0.6966 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.2539, allocations: 4 kB / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.2539, allocations: 0 / 0.6966 GB, free: 0.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.2539, allocations: 0 / 0.6966 GB, free: 0.957 MB / 494.1 MB 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.001452/0.2554, allocations: 0.5042 MB / 0.6971 GB, free: 408 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.2555, allocations: 12.02 kB / 0.6971 GB, free: 396 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.635e-05/0.2556, allocations: 20.69 kB / 0.6972 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.256, allocations: 235.8 kB / 0.6974 GB, free: 100 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.331e-05/0.256, allocations: 8.359 kB / 0.6974 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.2561, allocations: 12.38 kB / 0.6974 GB, free: 80 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.2567, allocations: 121.9 kB / 0.6975 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.2567, allocations: 3.984 kB / 0.6975 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.872e-05/0.2567, allocations: 8 kB / 0.6975 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2568, allocations: 4 kB / 0.6975 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005281/0.2573, allocations: 95.92 kB / 0.6976 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.2584, allocations: 420.4 kB / 0.698 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.259, allocations: 134.5 kB / 0.6982 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.2594, allocations: 72.81 kB / 0.6982 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/0.2604, allocations: 441.5 kB / 0.6986 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005428/0.261, allocations: 127.3 kB / 0.6988 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 2.725e-06/0.261, allocations: 4 kB / 0.6988 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.001083/0.2621, allocations: 239.1 kB / 0.699 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.2622, allocations: 51.41 kB / 0.699 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003045/0.2625, allocations: 179.6 kB / 0.6992 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.2625, allocations: 33.7 kB / 0.6992 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.2627, allocations: 112 kB / 0.6994 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.458e-05/0.2628, allocations: 55.19 kB / 0.6994 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.263, allocations: 41.7 kB / 0.6994 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002245/0.2632, allocations: 334.8 kB / 0.6998 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003515/0.2636, allocations: 68.81 kB / 0.6998 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.2639, allocations: 102.4 kB / 0.6999 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.811/3.075, allocations: 378.8 MB / 1.07 GB, free: 253.3 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/3.075, allocations: 0 / 1.07 GB, free: 253.3 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000457/3.076, allocations: 251 kB / 1.07 GB, free: 253.1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/3.076, allocations: 32.95 kB / 1.07 GB, free: 253.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/3.076, allocations: 0 / 1.07 GB, free: 253.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/3.076, allocations: 11.81 kB / 1.07 GB, free: 253.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/3.076, allocations: 39.97 kB / 1.07 GB, free: 253 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/3.076, allocations: 0 / 1.07 GB, free: 253 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/3.076, allocations: 21.92 kB / 1.07 GB, free: 253 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/3.076, allocations: 7.25 kB / 1.07 GB, free: 253 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.0001734/3.076, allocations: 163.7 kB / 1.07 GB, free: 252.9 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/3.077, allocations: 17.53 kB / 1.07 GB, free: 252.9 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005273/3.077, allocations: 236.3 kB / 1.071 GB, free: 252.7 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/3.077, allocations: 0 / 1.071 GB, free: 252.7 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/3.077, allocations: 4 kB / 1.071 GB, free: 252.7 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/3.077, allocations: 0 / 1.071 GB, free: 252.7 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001759/3.077, allocations: 258.3 kB / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/3.077, allocations: 0 / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/3.077, allocations: 42.17 kB / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/3.078, allocations: 0 / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/3.078, allocations: 6.938 kB / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/3.078, allocations: 0.5 kB / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/3.078, allocations: 0 / 1.071 GB, free: 252.4 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005391/3.078, allocations: 316.7 kB / 1.071 GB, free: 252.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/3.078, allocations: 114.9 kB / 1.071 GB, free: 252 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.308e-05/3.078, allocations: 7.375 kB / 1.071 GB, free: 252 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/3.078, allocations: 11.86 kB / 1.071 GB, free: 252 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/3.078, allocations: 19.34 kB / 1.071 GB, free: 252 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/3.078, allocations: 8 kB / 1.071 GB, free: 252 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.155e-05/3.079, allocations: 142.2 kB / 1.071 GB, free: 251.9 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.112e-06/3.079, allocations: 0 / 1.071 GB, free: 251.9 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002583/3.079, allocations: 58.59 kB / 1.072 GB, free: 251.8 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.0001326/3.079, allocations: 126.7 kB / 1.072 GB, free: 251.7 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004322/3.079, allocations: 222.3 kB / 1.072 GB, free: 251.5 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/3.079, allocations: 4.062 kB / 1.072 GB, free: 251.5 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001751/3.08, allocations: 90.08 kB / 1.072 GB, free: 251.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/3.08, allocations: 27.58 kB / 1.072 GB, free: 251.4 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007483/3.081, allocations: 0.5945 MB / 1.073 GB, free: 250.9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001042/3.081, allocations: 0.7203 MB / 1.073 GB, free: 250.1 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001446/3.081, allocations: 30.12 kB / 1.073 GB, free: 250.1 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.705e-05/3.081, allocations: 27.06 kB / 1.073 GB, free: 250.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.4e-07/3.081, allocations: 0 / 1.073 GB, free: 250.1 MB / 0.7325 GB Notification: Performance of Templates: time 0.004954/3.086, allocations: 2.494 MB / 1.076 GB, free: 247.7 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)