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.001593/0.001593, allocations: 116.2 kB / 16.42 MB, free: 6.504 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.001805/0.001805, allocations: 186.6 kB / 17.35 MB, free: 5.758 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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002132/0.002132, allocations: 289.1 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.9293/0.9293, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001658/0.001658, allocations: 95.84 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4045, allocations: 86.97 MB / 0.767 GB, free: 4.047 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.002882/0.4074, allocations: 1.946 MB / 0.7689 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.4087, allocations: 0.8621 MB / 0.7698 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.798e-05/0.4088, allocations: 7.938 kB / 0.7698 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002171/0.409, allocations: 43.69 kB / 0.7698 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.156e-05/0.4091, allocations: 51.55 kB / 0.7699 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.4094, allocations: 83.78 kB / 0.7699 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002041/0.4096, allocations: 207.2 kB / 0.7701 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 8.15e-05/0.4097, allocations: 25.28 kB / 0.7702 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.4098, allocations: 91.62 kB / 0.7702 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.4099, allocations: 79.66 kB / 0.7703 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.41, allocations: 12 kB / 0.7703 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.4101, allocations: 55.97 kB / 0.7704 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.535e-05/0.4102, allocations: 35.83 kB / 0.7704 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.4103, allocations: 67.66 kB / 0.7705 GB, free: 484 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002203/0.4105, allocations: 189.9 kB / 0.7707 GB, free: 296 kB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.4105, allocations: 4 kB / 0.7707 GB, free: 292 kB / 0.5294 GB Notification: Performance of FrontEnd: time 1.233e-06/0.4105, allocations: 0 / 0.7707 GB, free: 292 kB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.4105, allocations: 0 / 0.7707 GB, free: 292 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.0008996/0.4114, allocations: 0.5003 MB / 0.7712 GB, free: 15.73 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.4115, allocations: 8.031 kB / 0.7712 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.4115, allocations: 16.75 kB / 0.7712 GB, free: 15.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.4118, allocations: 239.9 kB / 0.7714 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.4118, allocations: 8.375 kB / 0.7714 GB, free: 15.43 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.563e-05/0.4118, allocations: 12.38 kB / 0.7714 GB, free: 15.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002933/0.4121, allocations: 132.5 kB / 0.7716 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.4121, allocations: 3.938 kB / 0.7716 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.4122, allocations: 0 / 0.7716 GB, free: 15.28 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.4122, allocations: 8 kB / 0.7716 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.4125, allocations: 95.92 kB / 0.7717 GB, free: 15.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.4131, allocations: 420.6 kB / 0.7721 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.4134, allocations: 134.4 kB / 0.7722 GB, free: 14.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001747/0.4136, allocations: 76.81 kB / 0.7723 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007345/0.4144, allocations: 437.5 kB / 0.7727 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.4147, allocations: 131.3 kB / 0.7728 GB, free: 13.84 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.4147, allocations: 0 / 0.7728 GB, free: 13.84 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.0006143/0.4153, allocations: 240.8 kB / 0.773 GB, free: 13.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.4154, allocations: 55.41 kB / 0.7731 GB, free: 13.53 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.4155, allocations: 178.5 kB / 0.7733 GB, free: 13.35 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.4156, allocations: 25.7 kB / 0.7733 GB, free: 13.32 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.1e-05/0.4156, allocations: 116 kB / 0.7734 GB, free: 13.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.4157, allocations: 59.19 kB / 0.7735 GB, free: 13.14 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.4158, allocations: 41.69 kB / 0.7735 GB, free: 13.09 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.4159, allocations: 330.8 kB / 0.7738 GB, free: 12.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.4161, allocations: 68.81 kB / 0.7739 GB, free: 12.69 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.4163, allocations: 91.53 kB / 0.774 GB, free: 12.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.404/2.821, allocations: 378.8 MB / 1.144 GB, free: 9.723 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/2.821, allocations: 3.656 kB / 1.144 GB, free: 9.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004624/2.821, allocations: 245.8 kB / 1.144 GB, free: 9.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/2.821, allocations: 37.69 kB / 1.144 GB, free: 9.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/2.821, allocations: 0 / 1.144 GB, free: 9.492 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/2.821, allocations: 4 kB / 1.144 GB, free: 9.488 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/2.821, allocations: 38.84 kB / 1.144 GB, free: 9.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/2.821, allocations: 7.25 kB / 1.144 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/2.822, allocations: 25.89 kB / 1.144 GB, free: 9.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/2.822, allocations: 6.844 kB / 1.144 GB, free: 9.43 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.0002217/2.822, allocations: 149.7 kB / 1.144 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/2.822, allocations: 21.84 kB / 1.144 GB, free: 9.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005911/2.822, allocations: 238.2 kB / 1.145 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/2.822, allocations: 0 / 1.145 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/2.822, allocations: 4 kB / 1.145 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.601e-05/2.823, allocations: 110.2 kB / 1.145 GB, free: 8.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/2.823, allocations: 4.562 kB / 1.145 GB, free: 8.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/2.823, allocations: 19.92 kB / 1.145 GB, free: 8.938 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.141e-05/2.823, allocations: 27.92 kB / 1.145 GB, free: 8.91 MB / 0.7169 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006875/2.824, allocations: 306.7 kB / 1.145 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006333/2.824, allocations: 476.1 kB / 1.146 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001807/2.824, allocations: 86.05 kB / 1.146 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.73e-05/2.825, allocations: 134.2 kB / 1.146 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of Backend: time 6.01e-07/2.825, allocations: 0 / 1.146 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006498/2.825, allocations: 264.6 kB / 1.146 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of SimCode: time 0.0007977/2.826, allocations: 0.9697 MB / 1.147 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of Templates: time 0.005234/2.831, allocations: 2.922 MB / 1.15 GB, free: 3.785 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)