Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.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.0007521/0.0007521, 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.0007905/0.0007905, allocations: 165.9 kB / 22.45 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.8863/0.8863, 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.03651/0.03651, allocations: 5.553 MB / 242 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: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 358.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.192e-05, allocations: 6.219 kB / 358.7 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004377/0.004399, allocations: 4.226 MB / 362.9 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0025/0.006899, allocations: 1.827 MB / 364.8 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004282/0.007327, allocations: 23.88 kB / 364.8 MB, free: 15.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009487/0.008276, allocations: 361.8 kB / 365.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005722/0.008848, allocations: 309.9 kB / 365.4 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.009474, allocations: 355.7 kB / 365.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002235/0.01171, allocations: 2.686 MB / 368.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.01281, allocations: 0.8264 MB / 369.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00129/0.0141, allocations: 1.388 MB / 370.7 MB, free: 9.777 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009002/0.015, allocations: 0.9044 MB / 371.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003359/0.01533, allocations: 328 kB / 371.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000306/0.01564, allocations: 336 kB / 372.2 MB, free: 8.223 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003615/0.016, allocations: 0.5493 MB / 372.8 MB, free: 7.672 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.01665, allocations: 0.7251 MB / 373.5 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.01962, allocations: 3.912 MB / 377.4 MB, free: 3.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.01962, allocations: 4 kB / 377.4 MB, free: 3.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.01962, allocations: 0 / 377.4 MB, free: 3.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.487e-05/0.01966, allocations: 0 / 377.4 MB, free: 3.016 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 312 * Number of variables: 312 Notification: Performance of Generate backend data structure: time 0.003436/0.02309, allocations: 2.219 MB / 379.6 MB, free: 0.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.02314, allocations: 11.98 kB / 379.7 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003234/0.02346, allocations: 216.4 kB / 379.9 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002635/0.02373, allocations: 195.7 kB / 380.1 MB, free: 332 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002145/0.02587, allocations: 1.692 MB / 381.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.638e-05/0.02596, allocations: 102.8 kB / 381.9 MB, free: 14.49 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/0.02614, allocations: 124.4 kB / 382 MB, free: 14.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.02883, allocations: 2.015 MB / 384 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.159e-05/0.02887, allocations: 192 / 384 MB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.02899, allocations: 56.12 kB / 384 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.387e-05/0.02901, allocations: 32 kB / 384.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00232/0.03133, allocations: 1.52 MB / 385.6 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007511/0.03884, allocations: 6.423 MB / 392 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.04078, allocations: 1.179 MB / 393.2 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007479/0.04153, allocations: 0.5104 MB / 393.7 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.04156, allocations: 4.5 kB / 393.7 MB, free: 2.383 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007822/0.04234, allocations: 0.7336 MB / 394.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 1.824e-06/0.04234, allocations: 3.938 kB / 394.5 MB, free: 1.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.001419/0.04376, allocations: 1.257 MB / 395.7 MB, free: 320 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.03e-05/0.04385, allocations: 162.7 kB / 395.9 MB, free: 120 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.04578, allocations: 1.984 MB / 397.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.04583, allocations: 37.7 kB / 397.9 MB, free: 14.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004812/0.04631, allocations: 0.7171 MB / 398.6 MB, free: 13.35 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.04646, allocations: 226 kB / 398.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.04664, allocations: 150.6 kB / 399 MB, free: 12.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.04674, allocations: 341.9 kB / 399.3 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004854/0.04723, allocations: 467.5 kB / 399.8 MB, free: 12.17 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006369/0.04786, allocations: 0.7886 MB / 400.6 MB, free: 11.26 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/0.05052, allocations: 1.964 MB / 402.5 MB, free: 9.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.05053, allocations: 4 kB / 402.5 MB, free: 9.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001511/0.05204, allocations: 1.331 MB / 403.9 MB, free: 7.848 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.0521, allocations: 40.81 kB / 403.9 MB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.05211, allocations: 4 kB / 403.9 MB, free: 7.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.636e-05/0.05214, allocations: 12.75 kB / 403.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.05262, allocations: 219.6 kB / 404.1 MB, free: 7.574 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.05263, allocations: 12 kB / 404.1 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004709/0.0531, allocations: 143 kB / 404.3 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.045e-05/0.05315, allocations: 28 kB / 404.3 MB, free: 7.395 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = \"C\" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = \"C\" fixed = true ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = \"C\" fixed = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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,rCseriesLinear.rs.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 94 * 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.0007708/0.05392, allocations: 0.7288 MB / 405 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.05406, allocations: 143.1 kB / 405.2 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.05524, allocations: 0.9993 MB / 406.2 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.777e-06/0.05525, allocations: 4 kB / 406.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.05526, allocations: 3.938 kB / 406.2 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.05527, allocations: 3.984 kB / 406.2 MB, free: 5.488 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.05817, allocations: 2.72 MB / 408.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.05818, allocations: 4 kB / 408.9 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.05859, allocations: 167.7 kB / 409.1 MB, free: 2.531 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.0586, allocations: 8.031 kB / 409.1 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.05864, allocations: 23.98 kB / 409.1 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.05864, allocations: 0 / 409.1 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.05864, allocations: 4 kB / 409.1 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.06019, allocations: 1.575 MB / 410.7 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002444/0.06043, allocations: 234.8 kB / 410.9 MB, free: 0.668 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.06054, allocations: 27.98 kB / 410.9 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.0608, allocations: 51.95 kB / 411 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.838e-05/0.06089, allocations: 40.42 kB / 411 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.06092, allocations: 19.98 kB / 411 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001356/0.06228, allocations: 1.41 MB / 412.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.06228, allocations: 0 / 412.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005745/0.06285, allocations: 303.3 kB / 412.8 MB, free: 14.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.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 (62): * Single equations (assignments): 60 * 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.001739/0.06459, allocations: 2.16 MB / 414.9 MB, free: 12.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009963/0.06559, allocations: 0.9934 MB / 415.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.06559, allocations: 4 kB / 415.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.06598, allocations: 410.5 kB / 416.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007344/0.06671, allocations: 340 kB / 416.6 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03211/0.09882, allocations: 16.61 MB / 433.3 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.1001, allocations: 1.106 MB / 434.4 MB, free: 8.781 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001197/0.1013, allocations: 357.7 kB / 434.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009423/0.1023, allocations: 0.5511 MB / 435.3 MB, free: 7.879 MB / 362.7 MB Notification: Performance of SimCode: time 1.903e-06/0.1023, allocations: 3.938 kB / 435.3 MB, free: 7.875 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1894/0.2917, allocations: 37.86 MB / 473.1 MB, free: 61.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.326, allocations: 17.34 kB / 473.1 MB, free: 61.52 MB / 362.7 MB " [Timeout remaining time 652] (rm -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; mkfifo ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe ; head -c 1048576 < ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe >> ../files/ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.sim & python3 -m fmpy simulate --output-file ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.286157323978841] Failed to read output from testmodel.py, exit status != 0: 8.42308744508773 8.429442494 8.408441693 Calling exit ...