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.001052/0.001052, allocations: 81.95 kB / 19.87 MB, free: 4.617 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.001606/0.001606, allocations: 169.7 kB / 23.27 MB, free: 1.223 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 1.005/1.005, allocations: 158.6 MB / 185.2 MB, free: 2.777 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.04422/0.04422, allocations: 5.565 MB / 243.1 MB, free: 9.461 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.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.354e-06/2.354e-06, allocations: 5.109 kB / 310.3 MB, free: 52.99 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.706e-05/3.941e-05, allocations: 4.547 kB / 310.3 MB, free: 52.99 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005893/0.005933, allocations: 4.493 MB / 314.8 MB, free: 50.01 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003333/0.009266, allocations: 1.914 MB / 316.7 MB, free: 48.56 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000598/0.009864, allocations: 23.88 kB / 316.7 MB, free: 48.54 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008626/0.01073, allocations: 357.9 kB / 317 MB, free: 48.19 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.0113, allocations: 302 kB / 317.3 MB, free: 47.89 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006308/0.01193, allocations: 355.3 kB / 317.7 MB, free: 47.55 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001641/0.01357, allocations: 2.693 MB / 320.4 MB, free: 44.86 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001017/0.01459, allocations: 0.8236 MB / 321.2 MB, free: 44 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001516/0.0161, allocations: 1.396 MB / 322.6 MB, free: 42.6 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.01715, allocations: 0.9591 MB / 323.6 MB, free: 41.64 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005727/0.01772, allocations: 328 kB / 323.9 MB, free: 41.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002705/0.018, allocations: 332 kB / 324.2 MB, free: 40.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.01826, allocations: 0.5493 MB / 324.7 MB, free: 40.44 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009545/0.01922, allocations: 0.7245 MB / 325.5 MB, free: 39.72 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.0209, allocations: 1.811 MB / 327.3 MB, free: 37.9 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.02091, allocations: 0 / 327.3 MB, free: 37.9 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.02091, allocations: 0 / 327.3 MB, free: 37.9 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.39e-05/0.02096, allocations: 4 kB / 327.3 MB, free: 37.9 MB / 282.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.003215/0.02418, allocations: 2.301 MB / 329.6 MB, free: 35.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.122e-05/0.02424, allocations: 15.98 kB / 329.6 MB, free: 35.53 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003399/0.02458, allocations: 295.7 kB / 329.9 MB, free: 35.24 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.02585, allocations: 1.406 MB / 331.3 MB, free: 33.79 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.446e-05/0.02592, allocations: 102.8 kB / 331.4 MB, free: 33.69 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.02605, allocations: 136.3 kB / 331.5 MB, free: 33.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.02732, allocations: 1.155 MB / 332.7 MB, free: 32.27 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.203e-05/0.02735, allocations: 8.125 kB / 332.7 MB, free: 32.26 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.315e-05/0.02742, allocations: 48.38 kB / 332.7 MB, free: 32.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.02744, allocations: 31.94 kB / 332.8 MB, free: 32.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000521/0.02796, allocations: 347.9 kB / 333.1 MB, free: 31.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005289/0.03325, allocations: 5.789 MB / 338.9 MB, free: 25.91 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/0.03415, allocations: 0.5681 MB / 339.5 MB, free: 25.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.03442, allocations: 181.6 kB / 339.6 MB, free: 25.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.03446, allocations: 20.44 kB / 339.7 MB, free: 25.14 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003993/0.03486, allocations: 467.1 kB / 340.1 MB, free: 24.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 4.709e-06/0.03486, allocations: 0 / 340.1 MB, free: 24.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0007935/0.03566, allocations: 444.2 kB / 340.6 MB, free: 24.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/0.03573, allocations: 162.7 kB / 340.7 MB, free: 23.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.03688, allocations: 1.218 MB / 341.9 MB, free: 22.74 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.03693, allocations: 37.7 kB / 342 MB, free: 22.7 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000556/0.03749, allocations: 0.8898 MB / 342.9 MB, free: 21.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.03765, allocations: 230.1 kB / 343.1 MB, free: 21.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002088/0.03786, allocations: 184.2 kB / 343.3 MB, free: 21.38 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.03796, allocations: 0.516 MB / 343.8 MB, free: 20.86 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.03811, allocations: 99.64 kB / 343.9 MB, free: 20.76 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002924/0.0384, allocations: 0.5173 MB / 344.4 MB, free: 20.09 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006069/0.03901, allocations: 0.5883 MB / 345 MB, free: 19.38 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.03901, allocations: 4 kB / 345 MB, free: 19.38 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007696/0.03978, allocations: 0.6165 MB / 345.6 MB, free: 18.74 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.03983, allocations: 37.69 kB / 345.6 MB, free: 18.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.03984, allocations: 4.75 kB / 345.6 MB, free: 18.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.03987, allocations: 8 kB / 345.7 MB, free: 18.69 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.04033, allocations: 195.7 kB / 345.8 MB, free: 18.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.04034, allocations: 19.92 kB / 345.9 MB, free: 18.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003556/0.0407, allocations: 83.44 kB / 345.9 MB, free: 18.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.055e-05/0.04074, allocations: 24 kB / 346 MB, free: 18.37 MB / 282.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 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rs.impedanceValue.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 (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.0004588/0.0412, allocations: 236.6 kB / 346.2 MB, free: 18.13 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.04131, allocations: 139.2 kB / 346.3 MB, free: 18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005768/0.04189, allocations: 412.9 kB / 346.7 MB, free: 17.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.0419, allocations: 11.94 kB / 346.8 MB, free: 17.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.0419, allocations: 3.984 kB / 346.8 MB, free: 17.56 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.04191, allocations: 0 / 346.8 MB, free: 17.56 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.04397, allocations: 1.818 MB / 348.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.04398, allocations: 0 / 348.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.04436, allocations: 135.9 kB / 348.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.04437, allocations: 48 / 348.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.05e-05/0.04441, allocations: 31.97 kB / 348.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.04442, allocations: 7.938 kB / 348.7 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.04442, allocations: 0 / 348.7 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000677/0.04509, allocations: 0.6716 MB / 349.4 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.04525, allocations: 175.1 kB / 349.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.829e-05/0.04534, allocations: 20 kB / 349.6 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.04555, allocations: 35.91 kB / 349.6 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/0.04564, allocations: 44.42 kB / 349.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.04566, allocations: 12 kB / 349.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005462/0.04621, allocations: 0.6563 MB / 350.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.04621, allocations: 4 kB / 350.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007803/0.04699, allocations: 327 kB / 350.7 MB, free: 13.57 MB / 282.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.0001682/0.04716, allocations: 123.1 kB / 350.8 MB, free: 13.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.04767, allocations: 427.1 kB / 351.2 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.04767, allocations: 0 / 351.2 MB, free: 13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.04785, allocations: 167.3 kB / 351.4 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006606/0.04851, allocations: 270.2 kB / 351.6 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.05159, allocations: 2.609 MB / 354.3 MB, free: 9.922 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.05189, allocations: 0.5073 MB / 354.8 MB, free: 9.391 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004007/0.05229, allocations: 132 kB / 354.9 MB, free: 9.258 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004305/0.05272, allocations: 310 kB / 355.2 MB, free: 8.953 MB / 282.7 MB Notification: Performance of SimCode: time 1.653e-06/0.05272, allocations: 0 / 355.2 MB, free: 8.953 MB / 282.7 MB Notification: Performance of Templates: time 0.02414/0.07686, allocations: 17.83 MB / 373 MB, free: 7.16 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile [Timeout 660] (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 & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance -abortSlowSimulation -alarm=240 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.314263943117112]