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.0008361/0.0008361, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009214/0.0009214, allocations: 169 kB / 23.02 MB, free: 1.547 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.8896/0.8896, allocations: 158.6 MB / 184.9 MB, free: 2.918 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.03621/0.03621, allocations: 5.576 MB / 242.8 MB, free: 9.52 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.733e-06/1.733e-06, allocations: 0 / 309.8 MB, free: 53.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.7e-05/1.874e-05, allocations: 4 kB / 309.8 MB, free: 53.4 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.01251/0.01253, allocations: 4.59 MB / 314.4 MB, free: 50.42 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005753/0.01828, allocations: 1.931 MB / 316.3 MB, free: 48.9 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002816/0.01856, allocations: 15.94 kB / 316.3 MB, free: 48.88 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006781/0.01924, allocations: 365.8 kB / 316.7 MB, free: 48.52 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003437/0.01959, allocations: 298 kB / 317 MB, free: 48.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004442/0.02003, allocations: 363.2 kB / 317.3 MB, free: 47.88 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001394/0.02142, allocations: 2.693 MB / 320 MB, free: 45.2 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007054/0.02213, allocations: 0.8236 MB / 320.9 MB, free: 44.33 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007789/0.02291, allocations: 1.388 MB / 322.2 MB, free: 42.94 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006239/0.02353, allocations: 0.9591 MB / 323.2 MB, free: 41.98 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.0238, allocations: 335.9 kB / 323.5 MB, free: 41.65 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.024, allocations: 332 kB / 323.9 MB, free: 41.32 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002257/0.02423, allocations: 0.5532 MB / 324.4 MB, free: 40.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004461/0.02467, allocations: 0.7284 MB / 325.1 MB, free: 40.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.02573, allocations: 1.8 MB / 326.9 MB, free: 38.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.02574, allocations: 3.984 kB / 326.9 MB, free: 38.23 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.02574, allocations: 3.938 kB / 326.9 MB, free: 38.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.02575, allocations: 0 / 326.9 MB, free: 38.23 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.002093/0.02785, allocations: 2.414 MB / 329.4 MB, free: 35.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.02789, allocations: 15.98 kB / 329.4 MB, free: 35.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/0.02815, allocations: 291.7 kB / 329.7 MB, free: 35.46 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.0293, allocations: 1.468 MB / 331.1 MB, free: 33.95 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.639e-05/0.02935, allocations: 98.83 kB / 331.2 MB, free: 33.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.02947, allocations: 132.3 kB / 331.4 MB, free: 33.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.03072, allocations: 1.23 MB / 332.6 MB, free: 32.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.03075, allocations: 4.125 kB / 332.6 MB, free: 32.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.218e-05/0.03082, allocations: 56.38 kB / 332.6 MB, free: 32.3 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.03084, allocations: 31.94 kB / 332.7 MB, free: 32.27 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008834/0.03172, allocations: 441.6 kB / 333.1 MB, free: 31.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004285/0.03601, allocations: 6.251 MB / 339.4 MB, free: 25.44 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009361/0.03694, allocations: 0.6423 MB / 340 MB, free: 24.8 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003348/0.03728, allocations: 201.6 kB / 340.2 MB, free: 24.6 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.03731, allocations: 16.5 kB / 340.2 MB, free: 24.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.03767, allocations: 479.1 kB / 340.7 MB, free: 24.04 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 1.884e-06/0.03767, allocations: 0 / 340.7 MB, free: 24.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0007403/0.03841, allocations: 484.3 kB / 341.2 MB, free: 23.56 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.03846, allocations: 170.6 kB / 341.3 MB, free: 23.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.0396, allocations: 1.288 MB / 342.6 MB, free: 22.05 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.03963, allocations: 41.64 kB / 342.7 MB, free: 22.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004148/0.04005, allocations: 0.8861 MB / 343.5 MB, free: 21.11 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.04016, allocations: 230.2 kB / 343.8 MB, free: 20.89 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.04033, allocations: 168.3 kB / 343.9 MB, free: 20.71 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.125e-05/0.0404, allocations: 0.516 MB / 344.4 MB, free: 20.19 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.04061, allocations: 127.6 kB / 344.6 MB, free: 20.06 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.04092, allocations: 0.5252 MB / 345.1 MB, free: 19.38 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006903/0.04161, allocations: 0.6509 MB / 345.7 MB, free: 18.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.04161, allocations: 7.938 kB / 345.8 MB, free: 18.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0008117/0.04242, allocations: 0.66 MB / 346.4 MB, free: 17.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.04245, allocations: 33.7 kB / 346.4 MB, free: 17.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.04246, allocations: 7.984 kB / 346.5 MB, free: 17.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.04248, allocations: 8 kB / 346.5 MB, free: 17.87 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.04294, allocations: 211.7 kB / 346.7 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.04296, allocations: 15.92 kB / 346.7 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.04323, allocations: 103.7 kB / 346.8 MB, free: 17.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.04327, allocations: 24 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.000286/0.04356, allocations: 239.3 kB / 347 MB, free: 17.28 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.04367, allocations: 135.2 kB / 347.2 MB, free: 17.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005727/0.04424, allocations: 452.9 kB / 347.6 MB, free: 16.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.04425, allocations: 12 kB / 347.6 MB, free: 16.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.04425, allocations: 0 / 347.6 MB, free: 16.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.04426, allocations: 3.984 kB / 347.6 MB, free: 16.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/0.04622, allocations: 2.187 MB / 349.8 MB, free: 14.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.04622, allocations: 3.984 kB / 349.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.0466, allocations: 159.8 kB / 350 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.0466, allocations: 3.938 kB / 350 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.904e-05/0.04664, allocations: 27.98 kB / 350 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.04665, allocations: 4 kB / 350 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.04665, allocations: 0 / 350 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.04741, allocations: 0.7107 MB / 350.7 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001778/0.04758, allocations: 187.1 kB / 350.9 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.822e-05/0.04767, allocations: 27.94 kB / 350.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.04791, allocations: 47.95 kB / 351 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.04798, allocations: 40.41 kB / 351 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/0.04801, allocations: 16 kB / 351 MB, free: 13.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006696/0.04868, allocations: 0.715 MB / 351.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04868, allocations: 0 / 351.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004741/0.04915, allocations: 331 kB / 352.1 MB, free: 12.15 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.0001046/0.04926, allocations: 132.2 kB / 352.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005496/0.04981, allocations: 449.7 kB / 352.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.04981, allocations: 9.484 kB / 352.6 MB, free: 11.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.05003, allocations: 179.4 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.0006257/0.05066, allocations: 270.8 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.002653/0.05331, allocations: 2.656 MB / 355.7 MB, free: 8.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.05358, allocations: 0.5034 MB / 356.2 MB, free: 7.883 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003706/0.05395, allocations: 239.8 kB / 356.5 MB, free: 7.645 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.05411, allocations: 76.5 kB / 356.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.05412, allocations: 0 / 356.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of Templates: time 0.0191/0.07321, allocations: 16.66 MB / 373.2 MB, free: 6.926 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.101011687889695]