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.001937/0.001937, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 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.002182/0.002182, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.34/1.34, allocations: 158.6 MB / 184.6 MB, free: 2.516 MB / 170.7 MB " [Timeout remaining time 178] 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.08642/0.08642, allocations: 5.572 MB / 242.4 MB, free: 9.574 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.374e-06/2.374e-06, allocations: 0 / 309.1 MB, free: 53.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.235e-05/3.472e-05, allocations: 5.188 kB / 309.1 MB, free: 53.2 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005521/0.005556, allocations: 4.538 MB / 313.6 MB, free: 50.21 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003343/0.008899, allocations: 1.915 MB / 315.5 MB, free: 48.89 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000415/0.009314, allocations: 19.06 kB / 315.6 MB, free: 48.89 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000899/0.01021, allocations: 366.2 kB / 315.9 MB, free: 48.66 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005455/0.01076, allocations: 303.8 kB / 316.2 MB, free: 48.4 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.01137, allocations: 361.7 kB / 316.6 MB, free: 48.1 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001835/0.01321, allocations: 2.678 MB / 319.2 MB, free: 45.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009804/0.01419, allocations: 0.8236 MB / 320.1 MB, free: 44.56 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.01559, allocations: 1.392 MB / 321.5 MB, free: 43.17 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009149/0.01651, allocations: 0.9513 MB / 322.4 MB, free: 42.21 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.01679, allocations: 328 kB / 322.7 MB, free: 41.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000307/0.01709, allocations: 336 kB / 323.1 MB, free: 41.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003394/0.01743, allocations: 0.5532 MB / 323.6 MB, free: 41.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006303/0.01806, allocations: 0.729 MB / 324.3 MB, free: 40.28 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002521/0.02058, allocations: 3.928 MB / 328.3 MB, free: 36.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.02059, allocations: 0 / 328.3 MB, free: 36.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.02059, allocations: 0 / 328.3 MB, free: 36.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.02063, allocations: 0 / 328.3 MB, free: 36.34 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.004068/0.0247, allocations: 2.695 MB / 331 MB, free: 33.6 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.02473, allocations: 11.98 kB / 331 MB, free: 33.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003869/0.02512, allocations: 295.7 kB / 331.3 MB, free: 33.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002055/0.02718, allocations: 1.656 MB / 332.9 MB, free: 31.6 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.621e-05/0.02724, allocations: 102.8 kB / 333 MB, free: 31.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.02742, allocations: 124.4 kB / 333.1 MB, free: 31.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002634/0.03005, allocations: 2.162 MB / 335.3 MB, free: 29.08 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.03009, allocations: 4.141 kB / 335.3 MB, free: 29.08 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.0302, allocations: 56.38 kB / 335.4 MB, free: 29.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.03022, allocations: 35.94 kB / 335.4 MB, free: 28.99 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.0322, allocations: 1.395 MB / 336.8 MB, free: 27.59 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.04233, allocations: 10.38 MB / 347.2 MB, free: 16.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00193/0.04426, allocations: 1.171 MB / 348.3 MB, free: 15.6 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00067/0.04493, allocations: 0.5014 MB / 348.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.265e-05/0.04497, allocations: 16.5 kB / 348.9 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00076/0.04573, allocations: 0.7764 MB / 349.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 2.645e-06/0.04574, allocations: 0 / 349.6 MB, free: 14.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.001749/0.04748, allocations: 1.16 MB / 350.8 MB, free: 13.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.04754, allocations: 162.7 kB / 351 MB, free: 12.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/0.05011, allocations: 2.273 MB / 353.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.886e-05/0.05019, allocations: 37.7 kB / 353.3 MB, free: 10.53 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007966/0.05098, allocations: 1.011 MB / 354.3 MB, free: 9.508 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.0512, allocations: 274 kB / 354.5 MB, free: 9.238 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.05151, allocations: 236.3 kB / 354.8 MB, free: 8.996 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.05166, allocations: 0.5629 MB / 355.3 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005577/0.05222, allocations: 431.4 kB / 355.8 MB, free: 8 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000687/0.05291, allocations: 0.8844 MB / 356.6 MB, free: 6.965 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.05447, allocations: 1.541 MB / 358.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.05448, allocations: 3.938 kB / 358.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001762/0.05624, allocations: 1.276 MB / 359.5 MB, free: 4.004 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.05628, allocations: 41.88 kB / 359.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.05629, allocations: 4 kB / 359.5 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.05631, allocations: 12 kB / 359.5 MB, free: 3.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007864/0.0571, allocations: 215.7 kB / 359.7 MB, free: 3.734 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.05711, allocations: 8 kB / 359.7 MB, free: 3.727 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007169/0.05783, allocations: 99.47 kB / 359.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.627e-05/0.05789, allocations: 24 kB / 359.9 MB, free: 3.605 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 ($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.001068/0.05895, allocations: 0.7624 MB / 360.6 MB, free: 2.836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.05914, allocations: 135.2 kB / 360.8 MB, free: 2.703 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.0604, allocations: 0.8951 MB / 361.7 MB, free: 1.793 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.0604, allocations: 8 kB / 361.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.06041, allocations: 0 / 361.7 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.06042, allocations: 3.984 kB / 361.7 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005314/0.06573, allocations: 3.352 MB / 365 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.06574, allocations: 0 / 365 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008014/0.06654, allocations: 159.8 kB / 365.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/0.06655, allocations: 3.938 kB / 365.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-05/0.06663, allocations: 23.98 kB / 365.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.06663, allocations: 8.031 kB / 365.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.06664, allocations: 4 kB / 365.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/0.06946, allocations: 1.558 MB / 366.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005844/0.07004, allocations: 183.1 kB / 366.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.07023, allocations: 31.92 kB / 367 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000529/0.07075, allocations: 43.95 kB / 367 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002089/0.07096, allocations: 44.42 kB / 367.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-05/0.07103, allocations: 19.98 kB / 367.1 MB, free: 12.28 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002958/0.07398, allocations: 1.367 MB / 368.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.07398, allocations: 0 / 368.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002283/0.07627, allocations: 331 kB / 368.8 MB, free: 10.58 MB / 298.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.0003577/0.07662, allocations: 128.1 kB / 368.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002282/0.07891, allocations: 1.044 MB / 369.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.07891, allocations: 4 kB / 370 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007513/0.07966, allocations: 435.3 kB / 370.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/0.08114, allocations: 279.5 kB / 370.6 MB, free: 8.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006289/0.08743, allocations: 3.169 MB / 373.8 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.08872, allocations: 1.031 MB / 374.8 MB, free: 4.402 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009215/0.08964, allocations: 239.8 kB / 375.1 MB, free: 4.164 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.08993, allocations: 72.48 kB / 375.2 MB, free: 4.094 MB / 298.7 MB Notification: Performance of SimCode: time 2.284e-06/0.08994, allocations: 0 / 375.2 MB, free: 4.094 MB / 298.7 MB Notification: Performance of Templates: time 0.03442/0.1244, allocations: 16.65 MB / 391.8 MB, free: 3.465 MB / 314.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: 4.958121005096473]