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.0009789/0.0009789, allocations: 73.09 kB / 20.65 MB, free: 3.848 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.0009798/0.0009798, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.9415/0.9415, allocations: 158.6 MB / 185.9 MB, free: 2.793 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.03171/0.03171, allocations: 5.581 MB / 243.9 MB, free: 9.359 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.515e-06/2.515e-06, allocations: 0.6094 kB / 311 MB, free: 52.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.703e-05/1.955e-05, allocations: 5.531 kB / 311 MB, free: 52.92 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006017/0.006037, allocations: 4.493 MB / 315.5 MB, free: 49.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002058/0.008095, allocations: 1.916 MB / 317.4 MB, free: 48.45 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.008318, allocations: 23.88 kB / 317.5 MB, free: 48.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004646/0.008783, allocations: 357.8 kB / 317.8 MB, free: 48.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002999/0.009083, allocations: 294 kB / 318.1 MB, free: 47.79 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.009442, allocations: 363.4 kB / 318.5 MB, free: 47.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001295/0.01074, allocations: 2.687 MB / 321.2 MB, free: 44.75 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006978/0.01144, allocations: 0.8275 MB / 322 MB, free: 43.88 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007711/0.01221, allocations: 1.396 MB / 323.4 MB, free: 42.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006011/0.01281, allocations: 0.9552 MB / 324.3 MB, free: 41.53 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002273/0.01303, allocations: 328 kB / 324.7 MB, free: 41.21 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001946/0.01323, allocations: 332 kB / 325 MB, free: 40.88 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.01345, allocations: 0.5532 MB / 325.5 MB, free: 40.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003889/0.01384, allocations: 0.7323 MB / 326.3 MB, free: 39.6 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009509/0.01479, allocations: 1.807 MB / 328.1 MB, free: 37.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.01479, allocations: 0 / 328.1 MB, free: 37.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.01479, allocations: 0 / 328.1 MB, free: 37.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.515e-05/0.01482, allocations: 0 / 328.1 MB, free: 37.79 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.001994/0.01681, allocations: 2.313 MB / 330.4 MB, free: 35.42 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.01685, allocations: 11.98 kB / 330.4 MB, free: 35.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002455/0.01709, allocations: 291.7 kB / 330.7 MB, free: 35.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.0181, allocations: 1.394 MB / 332.1 MB, free: 33.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.537e-05/0.01817, allocations: 102.8 kB / 332.2 MB, free: 33.59 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.01829, allocations: 140.3 kB / 332.3 MB, free: 33.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009846/0.01927, allocations: 1.159 MB / 333.5 MB, free: 32.15 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/0.0193, allocations: 192 / 333.5 MB, free: 32.15 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.01937, allocations: 52.38 kB / 333.5 MB, free: 32.1 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.01939, allocations: 35.94 kB / 333.6 MB, free: 32.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005055/0.0199, allocations: 347.8 kB / 333.9 MB, free: 31.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004117/0.02401, allocations: 5.789 MB / 339.7 MB, free: 25.79 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009158/0.02493, allocations: 0.572 MB / 340.3 MB, free: 25.23 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002519/0.02518, allocations: 181.6 kB / 340.4 MB, free: 25.05 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/0.02521, allocations: 12.44 kB / 340.4 MB, free: 25.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.02554, allocations: 467.1 kB / 340.9 MB, free: 24.5 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 2.084e-06/0.02554, allocations: 4 kB / 340.9 MB, free: 24.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0006033/0.02614, allocations: 440.3 kB / 341.3 MB, free: 24.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.02618, allocations: 162.7 kB / 341.5 MB, free: 23.87 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008801/0.02706, allocations: 1.221 MB / 342.7 MB, free: 22.63 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.0271, allocations: 37.7 kB / 342.8 MB, free: 22.59 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/0.02754, allocations: 0.8898 MB / 343.6 MB, free: 21.69 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.02766, allocations: 230.1 kB / 343.9 MB, free: 21.46 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.02783, allocations: 176.2 kB / 344 MB, free: 21.28 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/0.02792, allocations: 0.5199 MB / 344.6 MB, free: 20.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.02827, allocations: 107.6 kB / 344.7 MB, free: 20.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.02862, allocations: 0.5056 MB / 345.2 MB, free: 19.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005486/0.02917, allocations: 0.6 MB / 345.8 MB, free: 19.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.02917, allocations: 0 / 345.8 MB, free: 19.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.000805/0.02998, allocations: 0.6167 MB / 346.4 MB, free: 18.63 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.03001, allocations: 33.7 kB / 346.4 MB, free: 18.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.03002, allocations: 4 kB / 346.4 MB, free: 18.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.03004, allocations: 12 kB / 346.4 MB, free: 18.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004409/0.03048, allocations: 200.2 kB / 346.6 MB, free: 18.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.03049, allocations: 8 kB / 346.6 MB, free: 18.37 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.03086, allocations: 87.44 kB / 346.7 MB, free: 18.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.0309, allocations: 23.98 kB / 346.7 MB, free: 18.26 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.0005159/0.03142, allocations: 240.7 kB / 347 MB, free: 18.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.03156, allocations: 135.2 kB / 347.1 MB, free: 17.89 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005701/0.03213, allocations: 428.8 kB / 347.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.03214, allocations: 4 kB / 347.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.03214, allocations: 0 / 347.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.03215, allocations: 3.984 kB / 347.5 MB, free: 17.45 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.03409, allocations: 1.803 MB / 349.3 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.03409, allocations: 7.969 kB / 349.4 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003817/0.03448, allocations: 143.8 kB / 349.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.03448, allocations: 4 kB / 349.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.127e-05/0.03452, allocations: 24 kB / 349.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.03453, allocations: 7.922 kB / 349.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.03453, allocations: 0 / 349.5 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006882/0.03522, allocations: 0.6599 MB / 350.2 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.03539, allocations: 183 kB / 350.4 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.185e-05/0.03548, allocations: 31.98 kB / 350.4 MB, free: 14.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.03571, allocations: 31.92 kB / 350.4 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.882e-05/0.03579, allocations: 36.42 kB / 350.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.03581, allocations: 19.98 kB / 350.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004981/0.03631, allocations: 0.6524 MB / 351.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 2e-07/0.03631, allocations: 0 / 351.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006221/0.03693, allocations: 331 kB / 351.5 MB, free: 13.45 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.0001417/0.03707, allocations: 137.9 kB / 351.6 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004959/0.03757, allocations: 414.7 kB / 352 MB, free: 12.89 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.03757, allocations: 4.438 kB / 352 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.03775, allocations: 163.4 kB / 352.2 MB, free: 12.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.03838, allocations: 267.7 kB / 352.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002991/0.04137, allocations: 2.613 MB / 355 MB, free: 9.809 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.04166, allocations: 0.5034 MB / 355.5 MB, free: 9.281 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004349/0.04209, allocations: 124.1 kB / 355.7 MB, free: 9.156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004324/0.04253, allocations: 314 kB / 356 MB, free: 8.848 MB / 282.7 MB Notification: Performance of SimCode: time 1.853e-06/0.04253, allocations: 0 / 356 MB, free: 8.848 MB / 282.7 MB Notification: Performance of Templates: time 0.02211/0.06464, allocations: 18.14 MB / 374.1 MB, free: 6.715 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.221950178965926]