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.001492/0.001492, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001333/0.001333, allocations: 174.6 kB / 22.46 MB, free: 5.355 MB / 14.72 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.22/1.22, allocations: 158.6 MB / 184.2 MB, free: 6.41 MB / 174.1 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.05683/0.05683, allocations: 5.557 MB / 242 MB, free: 13.59 MB / 238.1 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 9.92e-07/9.92e-07, allocations: 0 / 359.2 MB, free: 12.35 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.794e-05/1.894e-05, allocations: 10.16 kB / 359.2 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.003945/0.003964, allocations: 4.218 MB / 363.4 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001932/0.005896, allocations: 1.823 MB / 365.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.006144, allocations: 27.81 kB / 365.3 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006942/0.006838, allocations: 361.8 kB / 365.7 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004234/0.007261, allocations: 306 kB / 366 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004455/0.007707, allocations: 351.7 kB / 366.3 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001567/0.009274, allocations: 2.701 MB / 369 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008433/0.01012, allocations: 0.8304 MB / 369.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000882/0.011, allocations: 1.384 MB / 371.2 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001016/0.01202, allocations: 0.9007 MB / 372.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003931/0.01241, allocations: 332 kB / 372.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004092/0.01282, allocations: 332 kB / 372.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000487/0.0133, allocations: 0.5454 MB / 373.3 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008284/0.01413, allocations: 0.7251 MB / 374 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003717/0.01785, allocations: 3.924 MB / 378 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.01785, allocations: 0 / 378 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01785, allocations: 4 kB / 378 MB, free: 9.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.879e-05/0.01789, allocations: 0 / 378 MB, free: 9.488 MB / 302.1 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.004015/0.02191, allocations: 2.207 MB / 380.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.02195, allocations: 11.98 kB / 380.2 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.02227, allocations: 195.7 kB / 380.4 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.02479, allocations: 1.692 MB / 382.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.02489, allocations: 106.8 kB / 382.2 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000229/0.02512, allocations: 136.2 kB / 382.3 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003205/0.02833, allocations: 1.999 MB / 384.3 MB, free: 2.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.368e-05/0.02836, allocations: 8.188 kB / 384.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.0285, allocations: 52.38 kB / 384.4 MB, free: 2.883 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.943e-05/0.02853, allocations: 31.94 kB / 384.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002705/0.03124, allocations: 1.52 MB / 385.9 MB, free: 1.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008838/0.04008, allocations: 6.142 MB / 392 MB, free: 11.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002465/0.04254, allocations: 1.186 MB / 393.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009429/0.04348, allocations: 0.5103 MB / 393.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.04352, allocations: 8.5 kB / 393.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009933/0.04452, allocations: 0.7336 MB / 394.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.565e-06/0.04452, allocations: 0 / 394.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002179/0.0467, allocations: 1.234 MB / 395.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.0468, allocations: 158.7 kB / 395.9 MB, free: 7.129 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/0.04901, allocations: 1.624 MB / 397.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.04908, allocations: 37.7 kB / 397.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007188/0.04979, allocations: 0.7425 MB / 398.3 MB, free: 4.695 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/0.05001, allocations: 222.2 kB / 398.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.05028, allocations: 150.6 kB / 398.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.05045, allocations: 338 kB / 399 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007746/0.05123, allocations: 467.5 kB / 399.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.05224, allocations: 0.7808 MB / 400.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004161/0.0564, allocations: 1.96 MB / 402.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.05641, allocations: 3.938 kB / 402.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002272/0.05868, allocations: 1.312 MB / 403.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.702e-05/0.05872, allocations: 38.95 kB / 403.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.05873, allocations: 4 kB / 403.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.05876, allocations: 12 kB / 403.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009412/0.0597, allocations: 216.3 kB / 403.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.05972, allocations: 15.98 kB / 403.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006414/0.06036, allocations: 107.3 kB / 403.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.155e-05/0.06043, allocations: 32 kB / 403.9 MB, free: 14.81 MB / 334.1 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.001122/0.06155, allocations: 0.7326 MB / 404.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.06173, allocations: 119.3 kB / 404.8 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001738/0.06346, allocations: 0.9693 MB / 405.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.06348, allocations: 8 kB / 405.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.06348, allocations: 0 / 405.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.06349, allocations: 3.984 kB / 405.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004226/0.06772, allocations: 2.593 MB / 408.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.06772, allocations: 0 / 408.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/0.06855, allocations: 167.7 kB / 408.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.06856, allocations: 7.938 kB / 408.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.911e-05/0.06862, allocations: 28.02 kB / 408.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.06863, allocations: 4 kB / 408.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.06863, allocations: 4 kB / 408.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.07098, allocations: 1.546 MB / 410.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000335/0.07132, allocations: 203.1 kB / 410.3 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.07147, allocations: 31.92 kB / 410.3 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005031/0.07197, allocations: 47.95 kB / 410.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.0721, allocations: 44.45 kB / 410.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.07214, allocations: 19.98 kB / 410.4 MB, free: 8.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001681/0.07383, allocations: 1.148 MB / 411.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.07383, allocations: 0 / 411.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009207/0.07475, allocations: 327 kB / 411.9 MB, free: 6.715 MB / 334.1 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.0001923/0.07494, allocations: 119.2 kB / 412 MB, free: 6.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.0766, allocations: 1.003 MB / 413 MB, free: 5.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.0766, allocations: 5.484 kB / 413 MB, free: 5.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006838/0.07729, allocations: 410.6 kB / 413.4 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.07835, allocations: 278.7 kB / 413.7 MB, free: 4.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.08314, allocations: 3.229 MB / 416.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.08433, allocations: 1.101 MB / 418 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007106/0.08504, allocations: 307.8 kB / 418.3 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002755/0.08531, allocations: 72.5 kB / 418.4 MB, free: 124 kB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.08531, allocations: 3.938 kB / 418.4 MB, free: 120 kB / 334.1 MB Notification: Performance of Templates: time 0.1576/0.2429, allocations: 16.62 MB / 435 MB, free: 69.53 MB / 350.1 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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.412067912518978] Failed to read output from testmodel.py, exit status != 0: 0.24974488094449043 0.261109548 0.24106149500000001 Calling exit ...