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.0008798/0.0008798, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.000906/0.000906, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 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.9068/0.9068, allocations: 158.6 MB / 185.2 MB, free: 2.75 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.03244/0.03244, allocations: 5.571 MB / 243.1 MB, free: 9.418 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.733e-06/1.733e-06, allocations: 0 / 261.2 MB, free: 7.363 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.372e-05, allocations: 2.312 kB / 261.2 MB, free: 7.359 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.00624/0.006264, allocations: 6.426 MB / 267.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005691/0.01196, allocations: 4.621 MB / 272.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007473/0.0127, allocations: 39.81 kB / 272.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001864/0.01457, allocations: 1.045 MB / 273.3 MB, free: 11.16 MB / 266.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.0009002/0.01547, allocations: 412.7 kB / 273.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.01647, allocations: 0.6946 MB / 274.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001876/0.01835, allocations: 2.237 MB / 276.6 MB, free: 7.824 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007769/0.01913, allocations: 0.6557 MB / 277.3 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001018/0.02014, allocations: 1.127 MB / 278.4 MB, free: 5.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.02069, allocations: 0.6508 MB / 279.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.02087, allocations: 256 kB / 279.3 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002544/0.02112, allocations: 291.9 kB / 279.6 MB, free: 4.805 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.02138, allocations: 478.6 kB / 280.1 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003981/0.02178, allocations: 0.5963 MB / 280.7 MB, free: 3.738 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00122/0.023, allocations: 1.449 MB / 282.1 MB, free: 2.285 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.023, allocations: 0 / 282.1 MB, free: 2.285 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.02301, allocations: 4 kB / 282.1 MB, free: 2.281 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.02302, allocations: 0 / 282.1 MB, free: 2.281 MB / 266.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.001772/0.02479, allocations: 1.783 MB / 283.9 MB, free: 468 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.02483, allocations: 11.98 kB / 283.9 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.02504, allocations: 192.8 kB / 284.1 MB, free: 264 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000823/0.02586, allocations: 0.717 MB / 284.8 MB, free: 15.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.02592, allocations: 86.47 kB / 284.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.02604, allocations: 112.3 kB / 285 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009096/0.02695, allocations: 0.9406 MB / 286 MB, free: 14.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.02697, allocations: 11.88 kB / 286 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.066e-05/0.02703, allocations: 40 kB / 286 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.02705, allocations: 28 kB / 286 MB, free: 14.17 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004261/0.02747, allocations: 280.5 kB / 286.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/0.0307, allocations: 3.573 MB / 289.9 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.03129, allocations: 491 kB / 290.4 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.03152, allocations: 154.2 kB / 290.5 MB, free: 9.578 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.474e-05/0.03155, allocations: 8.5 kB / 290.5 MB, free: 9.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.03185, allocations: 313.6 kB / 290.8 MB, free: 9.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.374e-06/0.03185, allocations: 0 / 290.8 MB, free: 9.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.0004859/0.03234, allocations: 332.8 kB / 291.2 MB, free: 8.895 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.415e-05/0.03241, allocations: 162.7 kB / 291.3 MB, free: 8.695 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008344/0.03325, allocations: 0.9663 MB / 292.3 MB, free: 7.711 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.249e-05/0.03329, allocations: 41.64 kB / 292.3 MB, free: 7.664 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002744/0.03356, allocations: 0.4984 MB / 292.8 MB, free: 7.156 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.03369, allocations: 210.2 kB / 293 MB, free: 6.949 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.03384, allocations: 134.6 kB / 293.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.03394, allocations: 337.9 kB / 293.5 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.03414, allocations: 122.5 kB / 293.6 MB, free: 6.348 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.03443, allocations: 416.5 kB / 294 MB, free: 5.836 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006049/0.03503, allocations: 0.5503 MB / 294.6 MB, free: 5.211 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.03504, allocations: 0 / 294.6 MB, free: 5.211 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0005682/0.0356, allocations: 496.8 kB / 295.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.739e-05/0.03564, allocations: 33.7 kB / 295.1 MB, free: 4.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.03565, allocations: 12 kB / 295.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.03567, allocations: 8 kB / 295.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.03602, allocations: 155.7 kB / 295.3 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.03603, allocations: 11.98 kB / 295.3 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.03627, allocations: 75.52 kB / 295.3 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.283e-05/0.0363, allocations: 27.98 kB / 295.4 MB, free: 4.383 MB / 282.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.0002666/0.03657, allocations: 174.9 kB / 295.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.03666, allocations: 83.91 kB / 295.6 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004264/0.03709, allocations: 321.6 kB / 295.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.03709, allocations: 4 kB / 295.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.03709, allocations: 0 / 295.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.0371, allocations: 3.984 kB / 295.9 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.03835, allocations: 1.176 MB / 297.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.03836, allocations: 0 / 297.1 MB, free: 2.582 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.03863, allocations: 103.9 kB / 297.2 MB, free: 2.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.03864, allocations: 4 kB / 297.2 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.03866, allocations: 12 kB / 297.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.03867, allocations: 3.938 kB / 297.2 MB, free: 2.461 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.03867, allocations: 4 kB / 297.2 MB, free: 2.457 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004979/0.03917, allocations: 0.5222 MB / 297.8 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.03929, allocations: 115.2 kB / 297.9 MB, free: 1.809 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.475e-05/0.03936, allocations: 23.94 kB / 297.9 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.03953, allocations: 23.98 kB / 297.9 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.0396, allocations: 36.42 kB / 298 MB, free: 1.727 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.03962, allocations: 12 kB / 298 MB, free: 1.715 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004255/0.04004, allocations: 0.4893 MB / 298.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04004, allocations: 0 / 298.5 MB, free: 1.215 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004808/0.04052, allocations: 275.2 kB / 298.7 MB, free: 0.9453 MB / 282.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.0008977/0.04142, allocations: 450.4 kB / 299.2 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004553/0.04188, allocations: 394.9 kB / 299.6 MB, free: 120 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.39e-05/0.04189, allocations: 12 kB / 299.6 MB, free: 108 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.09544/0.1373, allocations: 131.6 kB / 299.7 MB, free: 47.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009973/0.1383, allocations: 244.2 kB / 299.9 MB, free: 47.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.1412, allocations: 2.146 MB / 302.1 MB, free: 46.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.1415, allocations: 302.2 kB / 302.4 MB, free: 46.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.1419, allocations: 113.1 kB / 302.5 MB, free: 46.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004112/0.1423, allocations: 248.6 kB / 302.7 MB, free: 46.86 MB / 282.7 MB Notification: Performance of SimCode: time 1.373e-06/0.1423, allocations: 0 / 302.7 MB, free: 46.86 MB / 282.7 MB Notification: Performance of Templates: time 0.01847/0.1608, allocations: 15.06 MB / 317.8 MB, free: 40.36 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.8872461300343275]