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.001869/0.001869, allocations: 84.73 kB / 19.43 MB, free: 360 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.001576/0.001576, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.337/1.337, allocations: 158.6 MB / 184.6 MB, free: 2.891 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.05724/0.05724, allocations: 5.569 MB / 242.4 MB, free: 9.59 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.543e-06/1.543e-06, allocations: 0 / 309.1 MB, free: 53.48 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.322e-05/2.477e-05, allocations: 4.094 kB / 309.1 MB, free: 53.47 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005177/0.005201, allocations: 4.224 MB / 313.3 MB, free: 50.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.008137, allocations: 1.852 MB / 315.2 MB, free: 49.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006314/0.008769, allocations: 23 kB / 315.2 MB, free: 49.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.009784, allocations: 354.8 kB / 315.5 MB, free: 49.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000792/0.01058, allocations: 310.6 kB / 315.8 MB, free: 48.98 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006439/0.01122, allocations: 351.1 kB / 316.2 MB, free: 48.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.01328, allocations: 2.699 MB / 318.9 MB, free: 45.97 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001076/0.01435, allocations: 0.8197 MB / 319.7 MB, free: 45.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.0155, allocations: 1.388 MB / 321.1 MB, free: 43.71 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007459/0.01625, allocations: 0.9044 MB / 322 MB, free: 42.81 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002473/0.01649, allocations: 328 kB / 322.3 MB, free: 42.49 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.01676, allocations: 332 kB / 322.6 MB, free: 42.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002621/0.01702, allocations: 0.5454 MB / 323.2 MB, free: 41.62 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005069/0.01752, allocations: 0.7251 MB / 323.9 MB, free: 40.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002145/0.01967, allocations: 3.92 MB / 327.8 MB, free: 36.96 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.01967, allocations: 0 / 327.8 MB, free: 36.96 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01967, allocations: 3.938 kB / 327.8 MB, free: 36.96 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.0197, allocations: 0 / 327.8 MB, free: 36.96 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.003154/0.02286, allocations: 2.215 MB / 330 MB, free: 34.7 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.02289, allocations: 15.98 kB / 330.1 MB, free: 34.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003761/0.02327, allocations: 287.7 kB / 330.3 MB, free: 34.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.02514, allocations: 1.758 MB / 332.1 MB, free: 32.6 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.02521, allocations: 102.8 kB / 332.2 MB, free: 32.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001776/0.02538, allocations: 128.4 kB / 332.3 MB, free: 32.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.02778, allocations: 2.008 MB / 334.3 MB, free: 30.25 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.02782, allocations: 8.141 kB / 334.3 MB, free: 30.24 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.02794, allocations: 56.38 kB / 334.4 MB, free: 30.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.02796, allocations: 31.94 kB / 334.4 MB, free: 30.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.03005, allocations: 1.512 MB / 335.9 MB, free: 28.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00672/0.03677, allocations: 6.251 MB / 342.2 MB, free: 22.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001992/0.03877, allocations: 1.186 MB / 343.4 MB, free: 21.08 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007139/0.03948, allocations: 0.5131 MB / 343.9 MB, free: 20.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.605e-05/0.03952, allocations: 8.5 kB / 343.9 MB, free: 20.56 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007503/0.04027, allocations: 0.7258 MB / 344.6 MB, free: 19.77 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 1.943e-06/0.04027, allocations: 4 kB / 344.6 MB, free: 19.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.001804/0.04207, allocations: 1.254 MB / 345.9 MB, free: 18.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.04212, allocations: 166.7 kB / 346 MB, free: 18.3 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.04376, allocations: 1.613 MB / 347.7 MB, free: 16.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/0.04381, allocations: 41.64 kB / 347.7 MB, free: 16.63 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004567/0.04427, allocations: 0.7425 MB / 348.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.04441, allocations: 226.1 kB / 348.7 MB, free: 15.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.04464, allocations: 154.6 kB / 348.8 MB, free: 15.5 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.184e-05/0.0447, allocations: 334 kB / 349.1 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.04529, allocations: 463.5 kB / 349.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000711/0.046, allocations: 0.7886 MB / 350.4 MB, free: 13.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00325/0.04925, allocations: 1.968 MB / 352.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.04925, allocations: 3.938 kB / 352.3 MB, free: 11.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001736/0.05099, allocations: 1.343 MB / 353.7 MB, free: 10.37 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.05102, allocations: 33.7 kB / 353.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.05103, allocations: 8 kB / 353.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.05106, allocations: 8 kB / 353.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008299/0.05189, allocations: 224.1 kB / 354 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.0519, allocations: 8 kB / 354 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006097/0.05251, allocations: 103.5 kB / 354.1 MB, free: 9.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.918e-05/0.05257, allocations: 31.98 kB / 354.1 MB, free: 9.953 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.0008212/0.05339, allocations: 0.7435 MB / 354.8 MB, free: 9.203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001771/0.05357, allocations: 131.2 kB / 355 MB, free: 9.074 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.05493, allocations: 0.9693 MB / 355.9 MB, free: 8.094 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.05494, allocations: 8 kB / 355.9 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.05494, allocations: 0 / 355.9 MB, free: 8.086 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.05495, allocations: 3.984 kB / 356 MB, free: 8.082 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003242/0.05819, allocations: 2.589 MB / 358.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.05819, allocations: 0 / 358.5 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007863/0.05898, allocations: 167.8 kB / 358.7 MB, free: 5.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.05899, allocations: 7.938 kB / 358.7 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.609e-05/0.05904, allocations: 27.98 kB / 358.7 MB, free: 5.246 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.05905, allocations: 3.938 kB / 358.7 MB, free: 5.242 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.05905, allocations: 8.031 kB / 358.8 MB, free: 5.234 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001838/0.06089, allocations: 1.558 MB / 360.3 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.06117, allocations: 207 kB / 360.5 MB, free: 3.453 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.06132, allocations: 27.94 kB / 360.5 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/0.06182, allocations: 47.94 kB / 360.6 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.06194, allocations: 44.42 kB / 360.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.06198, allocations: 19.98 kB / 360.6 MB, free: 3.316 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001309/0.06329, allocations: 1.156 MB / 361.8 MB, free: 2.152 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06329, allocations: 0 / 361.8 MB, free: 2.152 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008273/0.06412, allocations: 327 kB / 362.1 MB, free: 1.832 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.0001431/0.06426, allocations: 120.7 kB / 362.2 MB, free: 1.707 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.06559, allocations: 0.9997 MB / 363.2 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.06559, allocations: 0 / 363.2 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.06609, allocations: 412.1 kB / 363.6 MB, free: 296 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009887/0.06708, allocations: 286.4 kB / 363.9 MB, free: 28 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005744/0.07282, allocations: 3.272 MB / 367.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/0.07433, allocations: 1.105 MB / 368.3 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000987/0.07532, allocations: 303.8 kB / 368.6 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002872/0.07561, allocations: 76.48 kB / 368.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of SimCode: time 1.012e-06/0.07561, allocations: 4 kB / 368.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of Templates: time 0.03235/0.108, allocations: 16.69 MB / 385.4 MB, free: 10.52 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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.641117568942718]