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.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.0008487/0.0008487, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001273/0.002121, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.001504/0.001504, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001675/0.003179, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8621/0.8621, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.131/0.9931, allocations: 49.51 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.03105/0.03105, allocations: 5.556 MB / 227 MB, free: 11.04 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004993/0.03604, allocations: 1.987 MB / 229 MB, free: 9.043 MB / 234.7 MB " [Timeout remaining time 180] 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.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(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") translateModel(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14100,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 230.3 MB, free: 7.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.128e-05, allocations: 4.281 kB / 230.3 MB, free: 7.711 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005693/0.005714, allocations: 6.523 MB / 236.8 MB, free: 1.152 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005201/0.01092, allocations: 4.653 MB / 241.5 MB, free: 12.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007592/0.01167, allocations: 39.81 kB / 241.5 MB, free: 12.44 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001773/0.01345, allocations: 1.057 MB / 242.6 MB, free: 11.38 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0008492/0.0143, allocations: 408.7 kB / 243 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008277/0.01512, allocations: 0.6906 MB / 243.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001721/0.01684, allocations: 2.228 MB / 245.9 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006687/0.01751, allocations: 0.6557 MB / 246.5 MB, free: 7.352 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.01882, allocations: 1.338 MB / 247.9 MB, free: 6 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005515/0.01937, allocations: 0.6508 MB / 248.5 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001886/0.01956, allocations: 256 kB / 248.8 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002674/0.01982, allocations: 283.9 kB / 249 MB, free: 4.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002742/0.0201, allocations: 403 kB / 249.4 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000496/0.02059, allocations: 0.4952 MB / 249.9 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.02207, allocations: 1.382 MB / 251.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.356e-05/0.02208, allocations: 0 / 251.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.02208, allocations: 0 / 251.3 MB, free: 2.543 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.02211, allocations: 0 / 251.3 MB, free: 2.543 MB / 250.7 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.002704/0.02482, allocations: 2.056 MB / 253.4 MB, free: 456 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.02485, allocations: 8.031 kB / 253.4 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002701/0.02512, allocations: 196.8 kB / 253.6 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.02618, allocations: 0.7208 MB / 254.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.495e-05/0.02625, allocations: 82.47 kB / 254.4 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.02639, allocations: 108.4 kB / 254.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.02761, allocations: 0.9328 MB / 255.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.02764, allocations: 11.88 kB / 255.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-05/0.02771, allocations: 43.98 kB / 255.5 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.02773, allocations: 28 kB / 255.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005479/0.02828, allocations: 280.5 kB / 255.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004128/0.03241, allocations: 3.593 MB / 259.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007007/0.03311, allocations: 487 kB / 259.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002626/0.03337, allocations: 146.2 kB / 260 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.378e-05/0.03342, allocations: 16.5 kB / 260 MB, free: 9.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.03378, allocations: 313.6 kB / 260.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.793e-06/0.03378, allocations: 0 / 260.3 MB, free: 9.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.0005768/0.03436, allocations: 332.8 kB / 260.6 MB, free: 8.879 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.0344, allocations: 59.91 kB / 260.7 MB, free: 8.809 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.03568, allocations: 0.9663 MB / 261.7 MB, free: 7.824 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.03572, allocations: 41.7 kB / 261.7 MB, free: 7.777 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/0.03603, allocations: 0.4907 MB / 262.2 MB, free: 7.277 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.03617, allocations: 210.2 kB / 262.4 MB, free: 7.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.03634, allocations: 138.5 kB / 262.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.804e-05/0.03643, allocations: 337.9 kB / 262.9 MB, free: 6.594 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.03667, allocations: 122.5 kB / 263 MB, free: 6.465 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.03704, allocations: 420.4 kB / 263.4 MB, free: 5.945 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007886/0.03783, allocations: 0.5659 MB / 264 MB, free: 5.301 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.03784, allocations: 0 / 264 MB, free: 5.301 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007252/0.03856, allocations: 496.6 kB / 264.4 MB, free: 4.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.452e-05/0.03861, allocations: 41.69 kB / 264.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.03861, allocations: 4 kB / 264.5 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.03863, allocations: 8.047 kB / 264.5 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000578/0.03921, allocations: 183.7 kB / 264.7 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.03922, allocations: 8 kB / 264.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.03955, allocations: 83.66 kB / 264.8 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.0396, allocations: 27.98 kB / 264.8 MB, free: 4.441 MB / 266.7 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: 21 * Number of states: 0 () * Number of discrete variables: 12 (batteryCell.calculator.sOC.integrator.local_reset,batteryCell.calculator.q.absInt.local_reset,batteryCell.calculator.EquivalentCycles.integrator.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,batteryCell.cellImpedance.rs.impedanceValue.qabs.absInt.local_reset,batteryCell.selfDischarge.qabs.absInt.local_reset,$PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0003047/0.0399, allocations: 182.3 kB / 265 MB, free: 4.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.04001, allocations: 87.84 kB / 265 MB, free: 4.168 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004955/0.04051, allocations: 321.6 kB / 265.4 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.04051, allocations: 4 kB / 265.4 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.04051, allocations: 4 kB / 265.4 MB, free: 3.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.04052, allocations: 3.984 kB / 265.4 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.04207, allocations: 1.169 MB / 266.5 MB, free: 2.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.04207, allocations: 4 kB / 266.5 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.0425, allocations: 119.9 kB / 266.7 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.04266, allocations: 107.2 kB / 266.8 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.04266, allocations: 7.938 kB / 266.8 MB, free: 2.402 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.0427, allocations: 12 kB / 266.8 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.04271, allocations: 7.984 kB / 266.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.04271, allocations: 0 / 266.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00063/0.04334, allocations: 0.5223 MB / 267.3 MB, free: 1.844 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.591e-05/0.04344, allocations: 19.94 kB / 267.3 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.04368, allocations: 23.98 kB / 267.4 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/0.04376, allocations: 40.42 kB / 267.4 MB, free: 1.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.04379, allocations: 12 kB / 267.4 MB, free: 1.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005535/0.04434, allocations: 0.4893 MB / 267.9 MB, free: 1.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04434, allocations: 0 / 267.9 MB, free: 1.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005829/0.04492, allocations: 275.2 kB / 268.2 MB, free: 0.9805 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (57): * Single equations (assignments): 55 * 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.001412/0.04634, allocations: 0.4891 MB / 268.7 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005403/0.04688, allocations: 405 kB / 269.1 MB, free: 96 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-05/0.0469, allocations: 20.31 kB / 269.1 MB, free: 76 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.04715, allocations: 169.5 kB / 269.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.04846, allocations: 1.893 MB / 271.1 MB, free: 13.69 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007253/0.05572, allocations: 2.199 MB / 273.3 MB, free: 11.44 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/0.05602, allocations: 307 kB / 273.6 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003831/0.0564, allocations: 119.5 kB / 273.7 MB, free: 11 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/0.05688, allocations: 245.2 kB / 274 MB, free: 10.75 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.05688, allocations: 4 kB / 274 MB, free: 10.75 MB / 282.7 MB Notification: Performance of Templates: time 0.1164/0.1732, allocations: 15.71 MB / 289.7 MB, free: 41.02 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.makefile [Timeout 660] (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=240 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8274311078712344]