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.0009798/0.0009798, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001468/0.001468, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8708/0.8708, allocations: 158.6 MB / 184.2 MB, free: 3.043 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.03313/0.03313, allocations: 5.557 MB / 242 MB, free: 9.773 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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 358.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.237e-06/1.046e-05, allocations: 10.16 kB / 358.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.004085/0.004096, allocations: 6.008 MB / 364.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004086/0.008182, allocations: 4.233 MB / 368.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004865/0.008668, allocations: 39.75 kB / 369 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.01039, allocations: 1.018 MB / 370 MB, free: 10.51 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.0006959/0.01109, allocations: 408.7 kB / 370.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007709/0.01186, allocations: 0.6945 MB / 371.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00185/0.01371, allocations: 2.262 MB / 373.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007386/0.01445, allocations: 0.6479 MB / 374 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000901/0.01535, allocations: 1.131 MB / 375.1 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004779/0.01583, allocations: 0.6078 MB / 375.7 MB, free: 4.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001763/0.01601, allocations: 260 kB / 376 MB, free: 4.469 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.01623, allocations: 291.9 kB / 376.3 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002388/0.01647, allocations: 478.6 kB / 376.8 MB, free: 3.715 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006352/0.0171, allocations: 0.5924 MB / 377.3 MB, free: 3.121 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002229/0.01933, allocations: 3.101 MB / 380.4 MB, free: 12 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.01934, allocations: 3.938 kB / 380.5 MB, free: 8 kB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.01934, allocations: 0 / 380.5 MB, free: 8 kB / 298.7 MB Notification: Performance of Transformations before backend: time 5.712e-05/0.0194, allocations: 4 kB / 380.5 MB, free: 4 kB / 298.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.002763/0.02216, allocations: 1.902 MB / 382.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.0222, allocations: 15.98 kB / 382.4 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002058/0.02241, allocations: 170.9 kB / 382.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.02263, allocations: 183.8 kB / 382.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001342/0.02397, allocations: 1.335 MB / 384.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.501e-05/0.02402, allocations: 90.47 kB / 384.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.02413, allocations: 112.3 kB / 384.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.02566, allocations: 1.465 MB / 385.7 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.02568, allocations: 3.938 kB / 385.7 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.441e-05/0.02574, allocations: 44 kB / 385.8 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.02576, allocations: 28 kB / 385.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.02697, allocations: 1.011 MB / 386.8 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004568/0.03153, allocations: 5.052 MB / 391.9 MB, free: 4.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.03258, allocations: 0.8179 MB / 392.7 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004515/0.03303, allocations: 386.1 kB / 393 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.03306, allocations: 8.5 kB / 393.1 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004933/0.03356, allocations: 0.5066 MB / 393.6 MB, free: 2.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.335e-06/0.03356, allocations: 0 / 393.6 MB, free: 2.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.00129/0.03485, allocations: 0.9727 MB / 394.5 MB, free: 1.539 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.03492, allocations: 166.7 kB / 394.7 MB, free: 1.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.03626, allocations: 1.488 MB / 396.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.174e-05/0.03631, allocations: 37.7 kB / 396.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003893/0.0367, allocations: 0.6575 MB / 396.9 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.03688, allocations: 214.2 kB / 397.1 MB, free: 14.92 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.03705, allocations: 142.6 kB / 397.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003369/0.03739, allocations: 334 kB / 397.6 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/0.0378, allocations: 355.5 kB / 397.9 MB, free: 14.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00049/0.03829, allocations: 0.6449 MB / 398.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/0.04062, allocations: 1.67 MB / 400.2 MB, free: 11.58 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.04063, allocations: 0 / 400.2 MB, free: 11.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001192/0.04182, allocations: 1.05 MB / 401.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.04186, allocations: 33.7 kB / 401.3 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.04187, allocations: 4.625 kB / 401.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.04189, allocations: 8 kB / 401.3 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.04225, allocations: 175.7 kB / 401.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.04226, allocations: 11.94 kB / 401.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.04261, allocations: 95.36 kB / 401.6 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.04265, allocations: 24 kB / 401.6 MB, free: 10.16 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.0005711/0.04322, allocations: 0.5371 MB / 402.2 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.04333, allocations: 127.1 kB / 402.3 MB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008881/0.04422, allocations: 0.7704 MB / 403 MB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.04422, allocations: 4 kB / 403.1 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.04423, allocations: 3.938 kB / 403.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.04423, allocations: 0 / 403.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002451/0.04668, allocations: 2.181 MB / 405.2 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.04669, allocations: 0 / 405.2 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00031/0.047, allocations: 111.9 kB / 405.3 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-06/0.047, allocations: 4 kB / 405.3 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.04704, allocations: 19.98 kB / 405.4 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.04704, allocations: 4 kB / 405.4 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.04704, allocations: 0 / 405.4 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.04824, allocations: 1.221 MB / 406.6 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.04844, allocations: 179.1 kB / 406.8 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.059e-05/0.04852, allocations: 19.98 kB / 406.8 MB, free: 4.898 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.04874, allocations: 31.97 kB / 406.8 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.653e-05/0.04882, allocations: 40.42 kB / 406.9 MB, free: 4.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.04884, allocations: 16 kB / 406.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009527/0.0498, allocations: 1.04 MB / 407.9 MB, free: 3.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0498, allocations: 0 / 407.9 MB, free: 3.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005582/0.05035, allocations: 275.2 kB / 408.2 MB, free: 3.496 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.001966/0.05232, allocations: 2.064 MB / 410.2 MB, free: 1.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009433/0.05326, allocations: 0.7903 MB / 411 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.05327, allocations: 3.938 kB / 411 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.0536, allocations: 318.7 kB / 411.4 MB, free: 292 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007904/0.05439, allocations: 266 kB / 411.6 MB, free: 24 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/0.06984, allocations: 12.09 MB / 423.7 MB, free: 3.602 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.07043, allocations: 0.7898 MB / 424.5 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004681/0.0709, allocations: 183.8 kB / 424.7 MB, free: 2.598 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.07138, allocations: 0.4964 MB / 425.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.07138, allocations: 0 / 425.2 MB, free: 2.102 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1657/0.2371, allocations: 29.86 MB / 455 MB, free: 78.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.559, allocations: 4.828 kB / 455 MB, free: 78.04 MB / 362.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent_fmu --startTime=0 --stopTime=14100 --stepSize=1 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.577344628982246] Failed to read output from testmodel.py, exit status != 0: 7.669789997860789 7.678403462 7.65769439 Calling exit ...