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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009786/0.0009786, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 169 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.008/1.008, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001653/0.001653, allocations: 246 kB / 261.3 MB, free: 12.66 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.706/0.706, allocations: 138.4 MB / 456.3 MB, free: 1.375 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") translateModel(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.5563 GB, free: 288 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.937e-05, allocations: 5.688 kB / 0.5563 GB, free: 284 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.004101/0.00413, allocations: 1.954 MB / 0.5582 GB, free: 14.3 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.005865, allocations: 0.8892 MB / 0.5591 GB, free: 13.41 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001511/0.006016, allocations: 7.938 kB / 0.5591 GB, free: 13.4 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002533/0.00627, allocations: 51.58 kB / 0.5592 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.006427, allocations: 59.55 kB / 0.5592 GB, free: 13.29 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003757/0.006803, allocations: 83.66 kB / 0.5593 GB, free: 13.21 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.007083, allocations: 199.2 kB / 0.5595 GB, free: 13.01 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.007187, allocations: 13.8 kB / 0.5595 GB, free: 13 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.007447, allocations: 123.6 kB / 0.5596 GB, free: 12.88 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.007589, allocations: 67.78 kB / 0.5597 GB, free: 12.81 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.084e-05/0.007619, allocations: 12 kB / 0.5597 GB, free: 12.8 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.007779, allocations: 67.88 kB / 0.5598 GB, free: 12.73 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.007821, allocations: 23.86 kB / 0.5598 GB, free: 12.71 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 6.838e-05/0.00789, allocations: 47.89 kB / 0.5598 GB, free: 12.66 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002974/0.008187, allocations: 171.4 kB / 0.56 GB, free: 12.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.008193, allocations: 0 / 0.56 GB, free: 12.5 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.088e-06/0.008197, allocations: 0 / 0.56 GB, free: 12.5 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.379e-06/0.008202, allocations: 4 kB / 0.56 GB, free: 12.49 MB / 490.7 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.0008271/0.009029, allocations: 0.5325 MB / 0.5605 GB, free: 11.92 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.009074, allocations: 12.75 kB / 0.5605 GB, free: 11.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002742/0.009348, allocations: 36.83 kB / 0.5606 GB, free: 11.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.009588, allocations: 184.2 kB / 0.5607 GB, free: 11.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.009608, allocations: 16.36 kB / 0.5607 GB, free: 11.65 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.009639, allocations: 8.375 kB / 0.5608 GB, free: 11.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.009862, allocations: 105.4 kB / 0.5609 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.009875, allocations: 192 / 0.5609 GB, free: 11.53 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.009892, allocations: 8.375 kB / 0.5609 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.0099, allocations: 3.938 kB / 0.5609 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.884e-05/0.009999, allocations: 35.95 kB / 0.5609 GB, free: 11.48 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.01053, allocations: 348.1 kB / 0.5612 GB, free: 11.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.01069, allocations: 78.95 kB / 0.5613 GB, free: 11.03 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.227e-05/0.01076, allocations: 43.66 kB / 0.5614 GB, free: 10.98 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003023/0.01106, allocations: 47.95 kB / 0.5614 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001949/0.01126, allocations: 100.9 kB / 0.5615 GB, free: 10.82 MB / 490.7 MB Notification: Performance of pre-optimization done (n=16): time 1.914e-06/0.01126, allocations: 0 / 0.5615 GB, free: 10.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003457/0.01161, allocations: 149.9 kB / 0.5616 GB, free: 10.67 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.01165, allocations: 55.41 kB / 0.5617 GB, free: 10.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.01181, allocations: 226.7 kB / 0.5619 GB, free: 10.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.01184, allocations: 29.7 kB / 0.5619 GB, free: 10.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.01193, allocations: 162.8 kB / 0.5621 GB, free: 10.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.276e-05/0.01198, allocations: 59.45 kB / 0.5621 GB, free: 10.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.627e-05/0.01207, allocations: 51.33 kB / 0.5622 GB, free: 10.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.01224, allocations: 0.4962 MB / 0.5627 GB, free: 9.539 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.01234, allocations: 69.34 kB / 0.5627 GB, free: 9.461 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.01244, allocations: 88.7 kB / 0.5628 GB, free: 9.355 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/0.01268, allocations: 181.3 kB / 0.563 GB, free: 9.156 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.01268, allocations: 0 / 0.563 GB, free: 9.156 MB / 490.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003106/0.01299, allocations: 211.3 kB / 0.5632 GB, free: 8.934 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.964e-05/0.01303, allocations: 40.77 kB / 0.5632 GB, free: 8.891 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01304, allocations: 3.938 kB / 0.5632 GB, free: 8.887 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.01305, allocations: 4 kB / 0.5633 GB, free: 8.883 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.01327, allocations: 47.91 kB / 0.5633 GB, free: 8.836 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.01327, allocations: 0 / 0.5633 GB, free: 8.836 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.01341, allocations: 23.88 kB / 0.5633 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.01343, allocations: 8 kB / 0.5633 GB, free: 8.805 MB / 490.7 MB 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.0002068/0.01364, allocations: 193.1 kB / 0.5635 GB, free: 8.609 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/0.01368, allocations: 23.89 kB / 0.5635 GB, free: 8.586 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000362/0.01404, allocations: 183.2 kB / 0.5637 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.01405, allocations: 0 / 0.5637 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.01405, allocations: 0 / 0.5637 GB, free: 8.398 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.01406, allocations: 4 kB / 0.5637 GB, free: 8.395 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.01425, allocations: 157.1 kB / 0.5639 GB, free: 8.215 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.01425, allocations: 3.984 kB / 0.5639 GB, free: 8.211 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.01445, allocations: 35.92 kB / 0.5639 GB, free: 8.176 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.01445, allocations: 0 / 0.5639 GB, free: 8.176 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.01447, allocations: 8 kB / 0.5639 GB, free: 8.168 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.541e-06/0.01448, allocations: 3.938 kB / 0.5639 GB, free: 8.164 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01448, allocations: 0 / 0.5639 GB, free: 8.164 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003704/0.01485, allocations: 220.4 kB / 0.5641 GB, free: 7.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/0.01493, allocations: 31.81 kB / 0.5642 GB, free: 7.898 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.538e-05/0.01496, allocations: 7.938 kB / 0.5642 GB, free: 7.891 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.01508, allocations: 19.98 kB / 0.5642 GB, free: 7.871 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.01515, allocations: 15.91 kB / 0.5642 GB, free: 7.855 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.01516, allocations: 8 kB / 0.5642 GB, free: 7.848 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.425e-05/0.01526, allocations: 161 kB / 0.5644 GB, free: 7.691 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01526, allocations: 0 / 0.5644 GB, free: 7.691 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002992/0.01556, allocations: 55.94 kB / 0.5644 GB, free: 7.637 MB / 490.7 MB 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.0001886/0.01575, allocations: 123.2 kB / 0.5645 GB, free: 7.508 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0002763/0.01602, allocations: 180.6 kB / 0.5647 GB, free: 7.309 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01602, allocations: 8.062 kB / 0.5647 GB, free: 7.301 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.01612, allocations: 59.58 kB / 0.5648 GB, free: 7.238 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.01641, allocations: 38.78 kB / 0.5648 GB, free: 7.203 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009874/0.0174, allocations: 439.7 kB / 0.5652 GB, free: 6.742 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.513e-05/0.01746, allocations: 75.98 kB / 0.5653 GB, free: 6.648 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0001348/0.01759, allocations: 37.59 kB / 0.5653 GB, free: 6.613 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.01775, allocations: 102.2 kB / 0.5654 GB, free: 6.512 MB / 490.7 MB Notification: Performance of SimCode: time 1.323e-06/0.01775, allocations: 0 / 0.5654 GB, free: 6.512 MB / 490.7 MB Notification: Performance of Templates: time 0.006799/0.02455, allocations: 2.954 MB / 0.5683 GB, free: 3.598 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.421193059999496]