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.0006926/0.0006926, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008868/0.001579, allocations: 435.8 kB / 10.33 MB, free: 368 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.0006836/0.0006836, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008925/0.001576, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.7836/0.7836, allocations: 158.6 MB / 171 MB, free: 2.59 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1167/0.9004, allocations: 49.5 MB / 220.5 MB, free: 1.445 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.03015/0.03015, allocations: 5.556 MB / 226.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003239/0.03339, allocations: 1.987 MB / 228.8 MB, free: 9.145 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.583e-06/1.583e-06, allocations: 0 / 230.1 MB, free: 7.848 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.507e-05, allocations: 4.281 kB / 230.1 MB, free: 7.844 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.008196/0.008211, allocations: 6.523 MB / 236.6 MB, free: 1.285 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00528/0.01349, allocations: 4.645 MB / 241.3 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.01389, allocations: 39.81 kB / 241.3 MB, free: 12.58 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.01534, allocations: 1.049 MB / 242.4 MB, free: 11.52 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.000644/0.01598, allocations: 412.7 kB / 242.8 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008321/0.01681, allocations: 0.6945 MB / 243.5 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.01862, allocations: 2.23 MB / 245.7 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007587/0.01938, allocations: 0.6596 MB / 246.4 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001133/0.02051, allocations: 1.33 MB / 247.7 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004892/0.021, allocations: 0.6469 MB / 248.3 MB, free: 5.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.02118, allocations: 256 kB / 248.6 MB, free: 5.246 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002408/0.02142, allocations: 291.9 kB / 248.9 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.02165, allocations: 395 kB / 249.3 MB, free: 4.574 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003662/0.02201, allocations: 0.499 MB / 249.8 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.02308, allocations: 1.371 MB / 251.1 MB, free: 2.699 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.02309, allocations: 0 / 251.1 MB, free: 2.699 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.0231, allocations: 0 / 251.1 MB, free: 2.699 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.65e-05/0.02311, allocations: 3.938 kB / 251.1 MB, free: 2.695 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.001783/0.0249, allocations: 2.06 MB / 253.2 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.02493, allocations: 12.03 kB / 253.2 MB, free: 0.582 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.02511, allocations: 196.7 kB / 253.4 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000768/0.02587, allocations: 0.7131 MB / 254.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.02593, allocations: 82.47 kB / 254.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.639e-05/0.02603, allocations: 108.4 kB / 254.3 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008157/0.02684, allocations: 0.9444 MB / 255.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.02686, allocations: 11.92 kB / 255.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.139e-05/0.02691, allocations: 40 kB / 255.3 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.02693, allocations: 28 kB / 255.3 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003821/0.02731, allocations: 280.5 kB / 255.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.03014, allocations: 3.597 MB / 259.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005204/0.03066, allocations: 479.1 kB / 259.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002001/0.03086, allocations: 154.1 kB / 259.8 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.702e-05/0.0309, allocations: 24.48 kB / 259.8 MB, free: 9.691 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.03117, allocations: 305.6 kB / 260.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.292e-06/0.03117, allocations: 0 / 260.1 MB, free: 9.352 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.0004113/0.03158, allocations: 328.8 kB / 260.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.03161, allocations: 55.91 kB / 260.5 MB, free: 8.953 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007059/0.03232, allocations: 0.9702 MB / 261.5 MB, free: 7.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.03235, allocations: 41.7 kB / 261.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.03257, allocations: 0.4906 MB / 262 MB, free: 7.418 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.03268, allocations: 206.2 kB / 262.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.03281, allocations: 154.5 kB / 262.4 MB, free: 7.059 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.419e-05/0.03288, allocations: 329.9 kB / 262.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/0.03307, allocations: 122.5 kB / 262.8 MB, free: 6.602 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.03335, allocations: 420.5 kB / 263.2 MB, free: 6.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.03394, allocations: 0.562 MB / 263.8 MB, free: 5.441 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.03394, allocations: 4 kB / 263.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0005309/0.03447, allocations: 488.5 kB / 264.2 MB, free: 4.941 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.03451, allocations: 41.69 kB / 264.3 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.03451, allocations: 7.938 kB / 264.3 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.03452, allocations: 8 kB / 264.3 MB, free: 4.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004482/0.03497, allocations: 180.2 kB / 264.5 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.03498, allocations: 15.94 kB / 264.5 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.03518, allocations: 75.5 kB / 264.6 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.038e-05/0.03521, allocations: 27.98 kB / 264.6 MB, free: 4.586 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.00022/0.03543, allocations: 171 kB / 264.8 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.988e-05/0.03551, allocations: 83.84 kB / 264.8 MB, free: 4.328 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003671/0.03588, allocations: 321.6 kB / 265.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.03588, allocations: 12 kB / 265.2 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-06/0.03589, allocations: 0 / 265.2 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.03589, allocations: 3.984 kB / 265.2 MB, free: 3.992 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.03701, allocations: 1.169 MB / 266.3 MB, free: 2.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.03701, allocations: 4 kB / 266.3 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003141/0.03733, allocations: 127.8 kB / 266.5 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.03744, allocations: 107.2 kB / 266.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.03744, allocations: 7.938 kB / 266.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.03747, allocations: 12 kB / 266.6 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.03748, allocations: 7.984 kB / 266.6 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.03748, allocations: 0 / 266.6 MB, free: 2.531 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.03805, allocations: 0.5145 MB / 267.1 MB, free: 1.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.101e-05/0.03812, allocations: 19.94 kB / 267.1 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.03829, allocations: 27.98 kB / 267.2 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/0.03835, allocations: 40.42 kB / 267.2 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.03837, allocations: 11.94 kB / 267.2 MB, free: 1.898 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000384/0.03875, allocations: 0.4893 MB / 267.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.03875, allocations: 0 / 267.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003737/0.03912, allocations: 275.2 kB / 268 MB, free: 1.129 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.0009306/0.04006, allocations: 0.4883 MB / 268.5 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004094/0.04046, allocations: 395.9 kB / 268.8 MB, free: 264 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.858e-05/0.04048, allocations: 19.94 kB / 268.9 MB, free: 244 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.04062, allocations: 140.6 kB / 269 MB, free: 100 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005438/0.04117, allocations: 304.3 kB / 269.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005279/0.04644, allocations: 2.203 MB / 271.5 MB, free: 13.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.04668, allocations: 311 kB / 271.8 MB, free: 13.22 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002784/0.04695, allocations: 119.4 kB / 271.9 MB, free: 13.1 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.04733, allocations: 241.2 kB / 272.2 MB, free: 12.87 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.04733, allocations: 3.938 kB / 272.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of Templates: time 0.1023/0.1496, allocations: 15.68 MB / 287.8 MB, free: 34.46 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.5987302036955953]