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.0009098/0.0009098, allocations: 93.06 kB / 19.65 MB, free: 272 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.0009128/0.0009128, allocations: 173 kB / 23.03 MB, free: 1.539 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.819/0.819, allocations: 158.6 MB / 184.9 MB, free: 2.934 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.03471/0.03471, allocations: 5.565 MB / 242.8 MB, free: 9.523 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 1.863e-06/1.863e-06, allocations: 0 / 309.8 MB, free: 53.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.254e-05/1.441e-05, allocations: 4 kB / 309.8 MB, free: 53.38 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.003824/0.003838, allocations: 4.585 MB / 314.4 MB, free: 50.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002047/0.005885, allocations: 1.926 MB / 316.3 MB, free: 48.89 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000276/0.006161, allocations: 23.88 kB / 316.3 MB, free: 48.87 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006747/0.006835, allocations: 357.8 kB / 316.7 MB, free: 48.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.007189, allocations: 306 kB / 317 MB, free: 48.21 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004066/0.007595, allocations: 355.3 kB / 317.3 MB, free: 47.87 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001315/0.00891, allocations: 2.697 MB / 320 MB, free: 45.18 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007226/0.009633, allocations: 0.8275 MB / 320.9 MB, free: 44.31 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008506/0.01048, allocations: 1.388 MB / 322.3 MB, free: 42.92 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006518/0.01114, allocations: 0.9513 MB / 323.2 MB, free: 41.97 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002442/0.01138, allocations: 332 kB / 323.5 MB, free: 41.64 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.01158, allocations: 332 kB / 323.9 MB, free: 41.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002007/0.01178, allocations: 0.5493 MB / 324.4 MB, free: 40.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004412/0.01222, allocations: 0.7323 MB / 325.1 MB, free: 40.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009597/0.01318, allocations: 1.807 MB / 326.9 MB, free: 38.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01318, allocations: 0 / 326.9 MB, free: 38.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.01318, allocations: 0 / 326.9 MB, free: 38.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.537e-05/0.01321, allocations: 3.938 kB / 326.9 MB, free: 38.22 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.00205/0.01526, allocations: 2.414 MB / 329.4 MB, free: 35.76 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.01529, allocations: 11.98 kB / 329.4 MB, free: 35.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.01556, allocations: 295.7 kB / 329.7 MB, free: 35.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001099/0.01665, allocations: 1.464 MB / 331.1 MB, free: 33.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.01671, allocations: 98.83 kB / 331.2 MB, free: 33.85 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.01682, allocations: 128.3 kB / 331.3 MB, free: 33.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.01807, allocations: 1.237 MB / 332.6 MB, free: 32.35 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.0181, allocations: 192 / 332.6 MB, free: 32.35 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.01817, allocations: 52.38 kB / 332.6 MB, free: 32.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.01819, allocations: 35.94 kB / 332.7 MB, free: 32.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000847/0.01904, allocations: 445.5 kB / 333.1 MB, free: 31.82 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004293/0.02333, allocations: 6.263 MB / 339.4 MB, free: 25.42 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00094/0.02427, allocations: 0.6307 MB / 340 MB, free: 24.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.02458, allocations: 205.6 kB / 340.2 MB, free: 24.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.02461, allocations: 12.5 kB / 340.2 MB, free: 24.58 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000355/0.02496, allocations: 479.1 kB / 340.7 MB, free: 24.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 2.164e-06/0.02496, allocations: 0 / 340.7 MB, free: 24.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0007213/0.02568, allocations: 492.3 kB / 341.2 MB, free: 23.55 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.02572, allocations: 158.7 kB / 341.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00108/0.0268, allocations: 1.288 MB / 342.6 MB, free: 22.05 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.02684, allocations: 41.7 kB / 342.6 MB, free: 22 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003987/0.02724, allocations: 0.886 MB / 343.5 MB, free: 21.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.02735, allocations: 230.2 kB / 343.8 MB, free: 20.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.02751, allocations: 172.3 kB / 343.9 MB, free: 20.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.475e-05/0.02759, allocations: 0.516 MB / 344.4 MB, free: 20.18 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.02779, allocations: 127.6 kB / 344.6 MB, free: 20.05 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.02809, allocations: 0.5252 MB / 345.1 MB, free: 19.38 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000658/0.02875, allocations: 0.6469 MB / 345.7 MB, free: 18.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.02876, allocations: 11.94 kB / 345.7 MB, free: 18.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007417/0.0295, allocations: 0.66 MB / 346.4 MB, free: 17.92 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.02953, allocations: 37.7 kB / 346.4 MB, free: 17.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.964e-06/0.02953, allocations: 8 kB / 346.5 MB, free: 17.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.02955, allocations: 8 kB / 346.5 MB, free: 17.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.02997, allocations: 207.7 kB / 346.7 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.02998, allocations: 12 kB / 346.7 MB, free: 17.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.03024, allocations: 99.69 kB / 346.8 MB, free: 17.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.03028, allocations: 32 kB / 346.8 MB, free: 17.52 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.0002854/0.03057, allocations: 238.9 kB / 347 MB, free: 17.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.409e-05/0.03066, allocations: 131.2 kB / 347.2 MB, free: 17.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000526/0.03119, allocations: 460.8 kB / 347.6 MB, free: 16.68 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.03119, allocations: 12 kB / 347.6 MB, free: 16.67 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.0312, allocations: 4 kB / 347.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.0312, allocations: 3.984 kB / 347.6 MB, free: 16.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.03304, allocations: 2.187 MB / 349.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.03304, allocations: 0 / 349.8 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.03342, allocations: 151.8 kB / 350 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.03342, allocations: 11.94 kB / 350 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/0.03347, allocations: 23.98 kB / 350 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.397e-06/0.03347, allocations: 4 kB / 350 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.03347, allocations: 0 / 350 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007113/0.03418, allocations: 0.7069 MB / 350.7 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.03433, allocations: 191 kB / 350.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.803e-05/0.03442, allocations: 27.92 kB / 350.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.03463, allocations: 47.95 kB / 351 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.03471, allocations: 44.42 kB / 351 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.03474, allocations: 16 kB / 351 MB, free: 13.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000641/0.03538, allocations: 0.7111 MB / 351.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03538, allocations: 3.938 kB / 351.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.03581, allocations: 331 kB / 352.1 MB, free: 12.14 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 9.963e-05/0.03591, allocations: 120.7 kB / 352.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005487/0.03646, allocations: 465.7 kB / 352.6 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.03646, allocations: 0 / 352.6 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.03667, allocations: 176.9 kB / 352.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006002/0.03727, allocations: 275.2 kB / 353.1 MB, free: 11.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.03977, allocations: 2.648 MB / 355.7 MB, free: 8.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.04003, allocations: 0.5112 MB / 356.2 MB, free: 7.875 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003978/0.04043, allocations: 239.8 kB / 356.5 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.04059, allocations: 72.48 kB / 356.6 MB, free: 7.562 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.04059, allocations: 0 / 356.6 MB, free: 7.562 MB / 282.7 MB Notification: Performance of Templates: time 0.01842/0.05901, allocations: 17.27 MB / 373.8 MB, free: 6.309 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: 2.8757267501205206]