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.0008764/0.0008764, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001376/0.001376, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9453/0.9453, allocations: 158.6 MB / 184.2 MB, free: 3.047 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.03601/0.03601, allocations: 5.557 MB / 242 MB, free: 9.777 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 3.546e-06/3.546e-06, allocations: 0 / 358.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/3.131e-05, allocations: 2.281 kB / 358.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent): time 0.006169/0.0062, allocations: 6.012 MB / 364.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005299/0.0115, allocations: 4.233 MB / 369 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007868/0.01229, allocations: 35.81 kB / 369 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.01426, allocations: 1.022 MB / 370 MB, free: 10.49 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.001181/0.01544, allocations: 408.7 kB / 370.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.01654, allocations: 0.6907 MB / 371.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002285/0.01883, allocations: 2.262 MB / 373.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008925/0.01972, allocations: 0.6479 MB / 374 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.02085, allocations: 1.135 MB / 375.1 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006295/0.02148, allocations: 0.6039 MB / 375.7 MB, free: 4.707 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.02174, allocations: 256 kB / 376 MB, free: 4.457 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.02201, allocations: 295.9 kB / 376.3 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002569/0.02227, allocations: 482.6 kB / 376.8 MB, free: 3.695 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.02274, allocations: 0.5885 MB / 377.3 MB, free: 3.102 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002072/0.02481, allocations: 3.105 MB / 380.5 MB, free: 15.99 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.02482, allocations: 3.938 kB / 380.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.02482, allocations: 0 / 380.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.011e-05/0.02488, allocations: 0 / 380.5 MB, free: 15.98 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.002906/0.02779, allocations: 1.905 MB / 382.4 MB, free: 14.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.02782, allocations: 11.98 kB / 382.4 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002024/0.02803, allocations: 170.9 kB / 382.5 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.02823, allocations: 183.8 kB / 382.7 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.02971, allocations: 1.338 MB / 384.1 MB, free: 12.28 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.02976, allocations: 82.48 kB / 384.1 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.02987, allocations: 112.3 kB / 384.2 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.03148, allocations: 1.468 MB / 385.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.0315, allocations: 0 / 385.7 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.469e-05/0.03156, allocations: 44 kB / 385.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.03158, allocations: 24 kB / 385.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.03278, allocations: 1.015 MB / 386.8 MB, free: 9.426 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004592/0.03737, allocations: 5.063 MB / 391.9 MB, free: 4.246 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.03838, allocations: 0.8218 MB / 392.7 MB, free: 3.426 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004981/0.03888, allocations: 386.1 kB / 393.1 MB, free: 3.043 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.03892, allocations: 4.5 kB / 393.1 MB, free: 3.035 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005628/0.03948, allocations: 0.5067 MB / 393.6 MB, free: 2.492 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 1.422e-06/0.03949, allocations: 0 / 393.6 MB, free: 2.492 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.001532/0.04102, allocations: 0.9766 MB / 394.5 MB, free: 1.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.04109, allocations: 162.7 kB / 394.7 MB, free: 1.312 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.04238, allocations: 1.488 MB / 396.2 MB, free: 15.81 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.837e-05/0.04242, allocations: 37.7 kB / 396.2 MB, free: 15.77 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003617/0.04278, allocations: 0.6575 MB / 396.9 MB, free: 15.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.0429, allocations: 210.2 kB / 397.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.04304, allocations: 142.6 kB / 397.2 MB, free: 14.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.387e-05/0.04313, allocations: 330 kB / 397.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.04352, allocations: 355.5 kB / 397.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/0.04403, allocations: 0.6488 MB / 398.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002282/0.04631, allocations: 1.666 MB / 400.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.04632, allocations: 4 kB / 400.2 MB, free: 11.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001574/0.04789, allocations: 1.054 MB / 401.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.04793, allocations: 33.7 kB / 401.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.04794, allocations: 4.625 kB / 401.3 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.04797, allocations: 8 kB / 401.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003553/0.04832, allocations: 163.8 kB / 401.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.04834, allocations: 19.86 kB / 401.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.04865, allocations: 95.36 kB / 401.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.101e-05/0.04869, allocations: 28 kB / 401.6 MB, free: 10.13 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.0005637/0.04926, allocations: 0.5371 MB / 402.2 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.967e-05/0.04936, allocations: 127.1 kB / 402.3 MB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009216/0.05028, allocations: 0.7626 MB / 403 MB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.05028, allocations: 8 kB / 403.1 MB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.05029, allocations: 3.938 kB / 403.1 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.05029, allocations: 3.984 kB / 403.1 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.05237, allocations: 2.181 MB / 405.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.05237, allocations: 3.938 kB / 405.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.05267, allocations: 111.9 kB / 405.4 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.05268, allocations: 4 kB / 405.4 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.05271, allocations: 12 kB / 405.4 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.05271, allocations: 4 kB / 405.4 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.05271, allocations: 0 / 405.4 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.05392, allocations: 1.229 MB / 406.6 MB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.05409, allocations: 171.1 kB / 406.8 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.164e-05/0.05417, allocations: 19.94 kB / 406.8 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.05439, allocations: 31.97 kB / 406.8 MB, free: 4.844 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.738e-05/0.05448, allocations: 44.42 kB / 406.9 MB, free: 4.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.0545, allocations: 15.98 kB / 406.9 MB, free: 4.785 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000928/0.05543, allocations: 1.04 MB / 407.9 MB, free: 3.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.05543, allocations: 0 / 407.9 MB, free: 3.738 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004978/0.05593, allocations: 275.2 kB / 408.2 MB, free: 3.469 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.002241/0.05817, allocations: 2.06 MB / 410.2 MB, free: 1.387 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000935/0.0591, allocations: 0.7826 MB / 411 MB, free: 0.582 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.0591, allocations: 7.875 kB / 411 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003548/0.05946, allocations: 310.7 kB / 411.3 MB, free: 280 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000778/0.06024, allocations: 282 kB / 411.6 MB, free: 15.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01533/0.07557, allocations: 12.08 MB / 423.7 MB, free: 3.578 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006106/0.07618, allocations: 0.782 MB / 424.5 MB, free: 2.766 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000441/0.07662, allocations: 187.8 kB / 424.7 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/0.0771, allocations: 0.4925 MB / 425.2 MB, free: 2.086 MB / 346.7 MB Notification: Performance of SimCode: time 1.493e-06/0.0771, allocations: 4 kB / 425.2 MB, free: 2.082 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.199/0.2761, allocations: 29.86 MB / 455 MB, free: 77.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.148, allocations: 4.859 kB / 455 MB, free: 77.73 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 & python3 -m fmpy simulate --output-file ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent_res.csv --start-time 0 --stop-time 14100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_AdvancedCellPulseCurrent.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.AdvancedCellPulseCurrent.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.148642735555768] Failed to read output from testmodel.py, exit status != 0: 8.261278904043138 8.267408886 8.241197819 Calling exit ...