Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.855/0.855, allocations: 143.8 MB / 159.1 MB, free: 6.48 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 179.5 kB / 192 MB, free: 6.715 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 225.7 MB / 450.4 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007906/0.0007904, allocations: 119.4 kB / 0.5211 GB, free: 1.625 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001645/0.001645, allocations: 275.5 kB / 0.6025 GB, free: 49.26 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004097/0.0004097, allocations: 16.8 kB / 0.6948 GB, free: 59.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1316, allocations: 82.45 MB / 0.7753 GB, free: 14.34 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.ElectricalStorages.Examples.BatterySimple): time 0.001974/0.1337, allocations: 1.611 MB / 0.7769 GB, free: 12.72 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.1351, allocations: 1.203 MB / 0.778 GB, free: 11.42 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.512e-05/0.1352, allocations: 7.938 kB / 0.778 GB, free: 11.41 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.1354, allocations: 44.05 kB / 0.7781 GB, free: 11.37 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.1355, allocations: 43.62 kB / 0.7781 GB, free: 11.32 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002166/0.1357, allocations: 75.84 kB / 0.7782 GB, free: 11.25 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.1359, allocations: 171.4 kB / 0.7784 GB, free: 11.08 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.097e-05/0.136, allocations: 29.48 kB / 0.7784 GB, free: 11.05 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.1361, allocations: 87.5 kB / 0.7785 GB, free: 10.96 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1362, allocations: 71.67 kB / 0.7785 GB, free: 10.89 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.1363, allocations: 8 kB / 0.7786 GB, free: 10.89 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.1364, allocations: 47.97 kB / 0.7786 GB, free: 10.84 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 3.76e-05/0.1364, allocations: 27.83 kB / 0.7786 GB, free: 10.81 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 8.755e-05/0.1365, allocations: 89.36 kB / 0.7787 GB, free: 10.72 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.1367, allocations: 179.3 kB / 0.7789 GB, free: 10.54 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1368, allocations: 4 kB / 0.7789 GB, free: 10.54 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1368, allocations: 0 / 0.7789 GB, free: 10.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1368, allocations: 0 / 0.7789 GB, free: 10.54 MB / 458.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.0008006/0.1376, allocations: 496.5 kB / 0.7794 GB, free: 10 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.1376, allocations: 8.031 kB / 0.7794 GB, free: 9.992 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.313e-05/0.1377, allocations: 20.69 kB / 0.7794 GB, free: 9.973 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.1379, allocations: 232.5 kB / 0.7796 GB, free: 9.707 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1379, allocations: 4.375 kB / 0.7796 GB, free: 9.703 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.138, allocations: 12.38 kB / 0.7796 GB, free: 9.691 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1383, allocations: 127.8 kB / 0.7797 GB, free: 9.562 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.1383, allocations: 3.906 kB / 0.7798 GB, free: 9.559 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.1383, allocations: 8 kB / 0.7798 GB, free: 9.551 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.1383, allocations: 4 kB / 0.7798 GB, free: 9.547 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003164/0.1387, allocations: 111.8 kB / 0.7799 GB, free: 9.438 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/0.1393, allocations: 424.5 kB / 0.7803 GB, free: 8.973 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.1396, allocations: 138.5 kB / 0.7804 GB, free: 8.828 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.1398, allocations: 84.81 kB / 0.7805 GB, free: 8.742 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005916/0.1404, allocations: 453.3 kB / 0.7809 GB, free: 8.207 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000323/0.1408, allocations: 139.5 kB / 0.7811 GB, free: 8.059 MB / 458.7 MB Notification: Performance of pre-optimization done (n=16): time 1.744e-06/0.1408, allocations: 0 / 0.7811 GB, free: 8.059 MB / 458.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006121/0.1414, allocations: 241.4 kB / 0.7813 GB, free: 7.816 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.1414, allocations: 63.28 kB / 0.7813 GB, free: 7.742 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.1416, allocations: 176.2 kB / 0.7815 GB, free: 7.562 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.1416, allocations: 33.7 kB / 0.7815 GB, free: 7.523 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.171e-05/0.1417, allocations: 112 kB / 0.7816 GB, free: 7.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.628e-05/0.1418, allocations: 59.23 kB / 0.7817 GB, free: 7.352 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.147e-05/0.1418, allocations: 4 kB / 0.7817 GB, free: 7.348 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1419, allocations: 330.8 kB / 0.782 GB, free: 7.016 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001922/0.1421, allocations: 76.81 kB / 0.7821 GB, free: 6.938 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.1423, allocations: 99.59 kB / 0.7822 GB, free: 6.832 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.544/2.686, allocations: 445.4 MB / 1.217 GB, free: 189.7 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/2.686, allocations: 0 / 1.217 GB, free: 189.7 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004667/2.686, allocations: 262.6 kB / 1.217 GB, free: 189.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/2.686, allocations: 33.7 kB / 1.217 GB, free: 189.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/2.686, allocations: 0 / 1.217 GB, free: 189.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/2.686, allocations: 4 kB / 1.217 GB, free: 189.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/2.687, allocations: 47.09 kB / 1.218 GB, free: 189.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/2.687, allocations: 0 / 1.218 GB, free: 189.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/2.687, allocations: 30.66 kB / 1.218 GB, free: 189.4 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/2.687, allocations: 11.98 kB / 1.218 GB, free: 189.4 MB / 0.6823 GB Warning: Assuming fixed start value for the following 4 variables: battery.E_discharged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy taken from the battery" type: Real battery.E_charged:VARIABLE(start = 0.0 unit = "J" fixed = true ) "Total energy charged to 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 battery.EAva:VARIABLE(start = 0.315 * battery.SOC_start * battery.E_nominal unit = "J" fixed = true ) "Available 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.T_start,$PRE.gain.count,$whenCondition1,gain.T_start,gain.count) * 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.0001958/2.687, allocations: 143.3 kB / 1.218 GB, free: 189.3 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.468e-05/2.687, allocations: 21.84 kB / 1.218 GB, free: 189.3 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005723/2.688, allocations: 247.3 kB / 1.218 GB, free: 189.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/2.688, allocations: 8.516 kB / 1.218 GB, free: 189.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/2.688, allocations: 0 / 1.218 GB, free: 189.1 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/2.688, allocations: 0 / 1.218 GB, free: 189.1 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/2.688, allocations: 257.7 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/2.688, allocations: 1.75 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/2.688, allocations: 43.91 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/2.688, allocations: 2.516 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/2.688, allocations: 9.328 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/2.688, allocations: 0.8438 kB / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/2.688, allocations: 0 / 1.218 GB, free: 188.8 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005455/2.689, allocations: 336.1 kB / 1.219 GB, free: 188.5 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.894e-05/2.689, allocations: 110.4 kB / 1.219 GB, free: 188.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/2.689, allocations: 2.5 kB / 1.219 GB, free: 188.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/2.689, allocations: 13.11 kB / 1.219 GB, free: 188.4 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/2.689, allocations: 22.59 kB / 1.219 GB, free: 188.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.447e-05/2.689, allocations: 6.438 kB / 1.219 GB, free: 188.3 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.859e-05/2.689, allocations: 138.9 kB / 1.219 GB, free: 188.2 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.71e-07/2.689, allocations: 3.844 kB / 1.219 GB, free: 188.2 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002356/2.689, allocations: 59.06 kB / 1.219 GB, free: 188.2 MB / 0.6823 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.000152/2.69, allocations: 131.2 kB / 1.219 GB, free: 188.1 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004022/2.69, allocations: 231.9 kB / 1.219 GB, free: 187.9 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/2.69, allocations: 128 / 1.219 GB, free: 187.9 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/2.69, allocations: 98.09 kB / 1.219 GB, free: 187.8 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002641/2.69, allocations: 28.3 kB / 1.219 GB, free: 187.8 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008055/2.691, allocations: 0.6594 MB / 1.22 GB, free: 187.1 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/2.691, allocations: 0.7207 MB / 1.221 GB, free: 186.4 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001458/2.692, allocations: 34.06 kB / 1.221 GB, free: 186.4 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.354e-05/2.692, allocations: 27.42 kB / 1.221 GB, free: 186.3 MB / 0.6823 GB Notification: Performance of SimCode: time 2.21e-07/2.692, allocations: 0 / 1.221 GB, free: 186.3 MB / 0.6823 GB Notification: Performance of Templates: time 0.004799/2.696, allocations: 2.351 MB / 1.223 GB, free: 184 MB / 0.6823 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)