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.0008631/0.0008631, allocations: 80.53 kB / 19.93 MB, free: 4.633 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.001008/0.001008, allocations: 173.9 kB / 23.21 MB, free: 1.355 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.9257/0.9257, allocations: 158.6 MB / 185 MB, free: 3.039 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.04011/0.04011, allocations: 5.569 MB / 242.8 MB, free: 9.789 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.563e-06/1.563e-06, allocations: 0 / 360 MB, free: 5.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.295e-05/3.452e-05, allocations: 6.219 kB / 360 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.005553/0.005588, allocations: 6.015 MB / 366 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.01019, allocations: 4.225 MB / 370.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005205/0.01071, allocations: 43.75 kB / 370.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.01223, allocations: 1.018 MB / 371.3 MB, free: 10.03 MB / 298.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.0006623/0.0129, allocations: 408.8 kB / 371.7 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000769/0.01367, allocations: 0.6905 MB / 372.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.01523, allocations: 2.27 MB / 374.6 MB, free: 6.664 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007089/0.01594, allocations: 0.6479 MB / 375.3 MB, free: 5.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.01703, allocations: 1.131 MB / 376.4 MB, free: 4.848 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005052/0.01753, allocations: 0.6117 MB / 377 MB, free: 4.234 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.01771, allocations: 256 kB / 377.3 MB, free: 3.984 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.01795, allocations: 287.9 kB / 377.5 MB, free: 3.703 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.01821, allocations: 482.6 kB / 378 MB, free: 3.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.0186, allocations: 0.5885 MB / 378.6 MB, free: 2.637 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002017/0.02061, allocations: 3.105 MB / 381.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.02061, allocations: 4 kB / 381.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.02062, allocations: 3.938 kB / 381.7 MB, free: 15.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.02064, allocations: 0 / 381.7 MB, free: 15.52 MB / 314.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.002471/0.02311, allocations: 1.902 MB / 383.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.02314, allocations: 15.98 kB / 383.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.02332, allocations: 171.9 kB / 383.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.02458, allocations: 1.338 MB / 385.1 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.756e-05/0.02464, allocations: 86.47 kB / 385.2 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.02477, allocations: 112.4 kB / 385.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.02627, allocations: 1.457 MB / 386.8 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.0263, allocations: 11.88 kB / 386.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.02636, allocations: 40 kB / 386.8 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.02637, allocations: 31.98 kB / 386.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.02759, allocations: 1.003 MB / 387.9 MB, free: 9.152 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005147/0.03274, allocations: 4.896 MB / 392.8 MB, free: 4.152 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009559/0.0337, allocations: 0.832 MB / 393.6 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004611/0.03416, allocations: 378.2 kB / 394 MB, free: 2.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.03419, allocations: 4.5 kB / 394 MB, free: 2.941 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.03468, allocations: 0.5106 MB / 394.5 MB, free: 2.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.633e-06/0.03468, allocations: 0 / 394.5 MB, free: 2.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.001132/0.03581, allocations: 0.9688 MB / 395.5 MB, free: 1.418 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.213e-05/0.03589, allocations: 162.7 kB / 395.6 MB, free: 1.223 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.03717, allocations: 1.434 MB / 397.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.03721, allocations: 41.7 kB / 397.1 MB, free: 15.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003821/0.03759, allocations: 0.6567 MB / 397.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/0.03807, allocations: 206.2 kB / 398 MB, free: 14.86 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.03822, allocations: 138.6 kB / 398.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.606e-05/0.03831, allocations: 341.9 kB / 398.4 MB, free: 14.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.0387, allocations: 355.5 kB / 398.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.03922, allocations: 0.6488 MB / 399.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002262/0.04148, allocations: 1.666 MB / 401.1 MB, free: 11.51 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.04148, allocations: 0 / 401.1 MB, free: 11.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001069/0.04255, allocations: 1.046 MB / 402.1 MB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.106e-05/0.04258, allocations: 37.7 kB / 402.2 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.04259, allocations: 8 kB / 402.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.0426, allocations: 8 kB / 402.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.04295, allocations: 160.4 kB / 402.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.856e-06/0.04295, allocations: 15.94 kB / 402.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/0.04321, allocations: 87.53 kB / 402.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.04325, allocations: 31.98 kB / 402.5 MB, free: 10.1 MB / 330.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 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,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 (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.0005076/0.04376, allocations: 0.5368 MB / 403 MB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.411e-05/0.04385, allocations: 111.3 kB / 403.1 MB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008602/0.04471, allocations: 0.77 MB / 403.9 MB, free: 8.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.04472, allocations: 4 kB / 403.9 MB, free: 8.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.04472, allocations: 4 kB / 403.9 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.04473, allocations: 3.984 kB / 403.9 MB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.04697, allocations: 2.055 MB / 406 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.04697, allocations: 7.938 kB / 406 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00029/0.04726, allocations: 115.8 kB / 406.1 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.04726, allocations: 4 kB / 406.1 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.04729, allocations: 16 kB / 406.1 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.04729, allocations: 4 kB / 406.1 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.04729, allocations: 0 / 406.1 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/0.04847, allocations: 1.213 MB / 407.3 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001753/0.04864, allocations: 167.1 kB / 407.5 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.972e-05/0.04872, allocations: 19.94 kB / 407.5 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.04892, allocations: 31.97 kB / 407.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.456e-05/0.04898, allocations: 44.42 kB / 407.6 MB, free: 4.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.04901, allocations: 19.98 kB / 407.6 MB, free: 4.91 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008571/0.04987, allocations: 0.9954 MB / 408.6 MB, free: 3.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04987, allocations: 0 / 408.6 MB, free: 3.906 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004524/0.05032, allocations: 275.1 kB / 408.9 MB, free: 3.637 MB / 330.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.0005683/0.05089, allocations: 418.2 kB / 409.3 MB, free: 3.223 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008373/0.05172, allocations: 0.7812 MB / 410 MB, free: 2.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.05173, allocations: 4 kB / 410 MB, free: 2.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.05206, allocations: 311.9 kB / 410.4 MB, free: 2.121 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.05269, allocations: 253.9 kB / 410.6 MB, free: 1.871 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.05573, allocations: 2.503 MB / 413.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.0563, allocations: 0.7363 MB / 413.8 MB, free: 14.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.05649, allocations: 80.48 kB / 413.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.05649, allocations: 0 / 413.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of Templates: time 0.01538/0.07187, allocations: 18.69 MB / 432.6 MB, free: 11.75 MB / 362.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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.120775653980672] Failed to read output from testmodel.py, exit status != 0: 0.07722360547631979 0.24033074499999996 0.21749224999999994 Calling exit ...