Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=28200,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009518, allocations: 100 kB / 15.05 MB, free: 1.105 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.0009395/0.0009397, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.356/1.356, allocations: 205.4 MB / 222.1 MB, free: 5.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04658/0.04658, allocations: 7.035 MB / 277.4 MB, free: 14.17 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004988/0.000499, allocations: 16.22 kB / 336.9 MB, free: 27.61 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08134, allocations: 49.08 MB / 386 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.00588/0.08726, allocations: 5.573 MB / 391.6 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004858/0.09215, allocations: 3.594 MB / 395.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008491/0.09304, allocations: 31.94 kB / 395.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001785/0.09484, allocations: 0.7585 MB / 396 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009031/0.09577, allocations: 311 kB / 396.3 MB, free: 140 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008965/0.09668, allocations: 339.5 kB / 396.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002084/0.09877, allocations: 1.251 MB / 397.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001272/0.1001, allocations: 0.7712 MB / 398.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006735/0.1008, allocations: 394.1 kB / 399 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005204/0.1013, allocations: 461.4 kB / 399.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.1014, allocations: 48 kB / 399.5 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002012/0.1016, allocations: 67.94 kB / 399.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.1018, allocations: 223 kB / 399.8 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000254/0.1021, allocations: 348.9 kB / 400.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001766/0.1039, allocations: 2.357 MB / 402.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.1039, allocations: 0 / 402.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1039, allocations: 4 kB / 402.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.482e-05/0.1039, allocations: 0 / 402.5 MB, free: 9.883 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002605/0.1065, allocations: 1.604 MB / 404.1 MB, free: 8.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1066, allocations: 12.03 kB / 404.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.1069, allocations: 170 kB / 404.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.1092, allocations: 1.793 MB / 406.1 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.713e-05/0.1093, allocations: 86.09 kB / 406.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.1095, allocations: 111.9 kB / 406.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002072/0.1116, allocations: 1.264 MB / 407.5 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.1116, allocations: 8 kB / 407.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.052e-05/0.1117, allocations: 47.94 kB / 407.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.23e-05/0.1118, allocations: 27.98 kB / 407.6 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.1134, allocations: 0.9016 MB / 408.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006101/0.1195, allocations: 5.323 MB / 413.8 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.1209, allocations: 1.774 MB / 415.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.121, allocations: 11.98 kB / 415.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005128/0.1215, allocations: 306.7 kB / 415.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 3.106e-06/0.1215, allocations: 0 / 415.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.001363/0.1229, allocations: 0.6837 MB / 416.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.123, allocations: 110.8 kB / 416.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.1244, allocations: 1.248 MB / 418 MB, free: 9.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/0.1245, allocations: 33.7 kB / 418 MB, free: 9.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005/0.125, allocations: 0.6979 MB / 418.7 MB, free: 8.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001198/0.1251, allocations: 157.8 kB / 418.8 MB, free: 8.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.169e-05/0.1251, allocations: 16 kB / 418.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1253, allocations: 341.9 kB / 419.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004315/0.1257, allocations: 233.9 kB / 419.4 MB, free: 8.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005632/0.1263, allocations: 0.4896 MB / 419.9 MB, free: 7.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005484/0.1268, allocations: 354.2 kB / 420.3 MB, free: 7.223 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1268, allocations: 4 kB / 420.3 MB, free: 7.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001381/0.1282, allocations: 0.8864 MB / 421.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.428e-05/0.1283, allocations: 41.64 kB / 421.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1283, allocations: 12.81 kB / 421.2 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.1283, allocations: 12 kB / 421.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005494/0.1289, allocations: 163.7 kB / 421.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.1289, allocations: 12 kB / 421.4 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004735/0.1294, allocations: 83.48 kB / 421.5 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.1295, allocations: 39.98 kB / 421.5 MB, free: 5.957 MB / 318.1 MB Warning: Assuming fixed start value for the following 1 variables: batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" fixed = true ) type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count,batteryCell.selfDischarge.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.sOC.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007363/0.1302, allocations: 0.5351 MB / 422 MB, free: 5.414 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.1303, allocations: 110.5 kB / 422.1 MB, free: 5.305 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009944/0.1313, allocations: 0.5197 MB / 422.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.1314, allocations: 12 kB / 422.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1314, allocations: 0 / 422.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1314, allocations: 0 / 422.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.1339, allocations: 1.785 MB / 424.5 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1339, allocations: 0 / 424.5 MB, free: 2.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004254/0.1344, allocations: 95.88 kB / 424.6 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.1344, allocations: 4 kB / 424.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.1344, allocations: 20.02 kB / 424.6 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.1345, allocations: 7.984 kB / 424.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1345, allocations: 3.938 kB / 424.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.1358, allocations: 0.8993 MB / 425.5 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.136, allocations: 187.6 kB / 425.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.1362, allocations: 16 kB / 425.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003224/0.1365, allocations: 31.91 kB / 425.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.1366, allocations: 36.09 kB / 425.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.1367, allocations: 8 kB / 425.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.1378, allocations: 0.8923 MB / 426.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.1378, allocations: 0 / 426.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007431/0.1385, allocations: 242.8 kB / 426.9 MB, free: 420 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (batteryCell.calculator.sOC.integrator.y,batteryCell.calculator.q.absInt.y,batteryCell.calculator.EquivalentCycles.integrator.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.y,batteryCell.selfDischarge.qabs.absInt.y) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007954/0.1394, allocations: 382.2 kB / 427.3 MB, free: 32 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.1401/0.2795, allocations: 0.5993 MB / 427.9 MB, free: 46.15 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.2795, allocations: 0 / 427.9 MB, free: 46.15 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004164/0.2799, allocations: 226.8 kB / 428.1 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001054/0.281, allocations: 237.8 kB / 428.3 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.2854, allocations: 2.971 MB / 431.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.2865, allocations: 1.401 MB / 432.7 MB, free: 44.14 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006394/0.2871, allocations: 177.5 kB / 432.9 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.2873, allocations: 68.38 kB / 432.9 MB, free: 44.11 MB / 318.1 MB Notification: Performance of SimCode: time 9.61e-07/0.2873, allocations: 0 / 432.9 MB, free: 44.11 MB / 318.1 MB Notification: Performance of Templates: time 0.01879/0.3061, allocations: 9.722 MB / 442.7 MB, free: 40.93 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile Environment - environmentSimulation: (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.sim & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) Environment - environmentSimulation: