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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 113.6 kB / 16.41 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001217/0.001217, allocations: 183 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.368/1.368, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05107/0.05107, allocations: 7.033 MB / 277.6 MB, free: 4.965 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ElectricalEnergyStorage requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 71.41 kB / 385.9 MB, free: 48.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07037/0.07182, allocations: 48.12 MB / 434.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004337/0.07619, allocations: 4.673 MB / 438.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002261/0.07849, allocations: 1.929 MB / 440.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003403/0.07885, allocations: 15.94 kB / 440.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006887/0.07957, allocations: 337.9 kB / 441 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.07997, allocations: 250.1 kB / 441.3 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.08044, allocations: 347.7 kB / 441.6 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.08247, allocations: 2.643 MB / 444.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.08426, allocations: 1.536 MB / 445.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.08529, allocations: 0.8839 MB / 446.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009866/0.08628, allocations: 0.922 MB / 447.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003533/0.08665, allocations: 328 kB / 447.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003736/0.08703, allocations: 332 kB / 448.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004104/0.08745, allocations: 0.53 MB / 448.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.08848, allocations: 1.128 MB / 449.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003118/0.09161, allocations: 3.829 MB / 453.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.09163, allocations: 0 / 453.7 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.357e-06/0.09165, allocations: 4 kB / 453.7 MB, free: 5.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.039e-05/0.0917, allocations: 0 / 453.7 MB, free: 5.652 MB / 334.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.004196/0.0959, allocations: 2.241 MB / 456 MB, free: 3.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.09596, allocations: 8.031 kB / 456 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003234/0.09629, allocations: 186.7 kB / 456.1 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.09864, allocations: 1.73 MB / 457.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.681e-05/0.09875, allocations: 98.83 kB / 458 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002087/0.09897, allocations: 128.3 kB / 458.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003165/0.1021, allocations: 1.839 MB / 459.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.1022, allocations: 3.938 kB / 459.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.1023, allocations: 52 kB / 460 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.1024, allocations: 32 kB / 460 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002674/0.1051, allocations: 1.512 MB / 461.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009714/0.1148, allocations: 7.082 MB / 468.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003173/0.118, allocations: 2.977 MB / 471.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009297/0.119, allocations: 0.5426 MB / 472.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.119, allocations: 8.562 kB / 472.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008996/0.1199, allocations: 0.5549 MB / 472.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.234e-06/0.12, allocations: 0 / 472.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002219/0.1222, allocations: 1.255 MB / 474 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.005e-05/0.1223, allocations: 166.8 kB / 474.1 MB, free: 428 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002794/0.1251, allocations: 1.968 MB / 476.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.1252, allocations: 41.7 kB / 476.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006995/0.1259, allocations: 0.7082 MB / 476.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.1261, allocations: 209 kB / 477 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.1264, allocations: 154.6 kB / 477.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.1266, allocations: 341.9 kB / 477.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007311/0.1273, allocations: 441.7 kB / 478 MB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008537/0.1282, allocations: 0.6554 MB / 478.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003942/0.1321, allocations: 1.959 MB / 480.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1321, allocations: 0 / 480.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00225/0.1344, allocations: 1.296 MB / 481.9 MB, free: 8.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.884e-05/0.1345, allocations: 41.69 kB / 481.9 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.1345, allocations: 4 kB / 481.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/0.1345, allocations: 12 kB / 481.9 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009425/0.1355, allocations: 211.6 kB / 482.1 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.855e-05/0.1355, allocations: 16.16 kB / 482.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008494/0.1364, allocations: 142.7 kB / 482.3 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/0.1365, allocations: 35.94 kB / 482.3 MB, free: 7.957 MB / 366.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.001157/0.1376, allocations: 0.7326 MB / 483 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.1379, allocations: 146.2 kB / 483.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001769/0.1397, allocations: 0.9969 MB / 484.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.1397, allocations: 11.94 kB / 484.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1397, allocations: 0 / 484.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.1397, allocations: 3.984 kB / 484.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004327/0.144, allocations: 3.026 MB / 487.2 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.1441, allocations: 0 / 487.2 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008314/0.1449, allocations: 163.8 kB / 487.4 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.1449, allocations: 0 / 487.4 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.139e-05/0.145, allocations: 27.98 kB / 487.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.902e-06/0.145, allocations: 8.031 kB / 487.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.145, allocations: 0 / 487.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.1473, allocations: 1.568 MB / 489 MB, free: 1.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004153/0.1477, allocations: 299.1 kB / 489.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000188/0.1479, allocations: 27.98 kB / 489.3 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.1485, allocations: 43.95 kB / 489.4 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.1486, allocations: 44.5 kB / 489.4 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.383e-05/0.1487, allocations: 16 kB / 489.4 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002138/0.1508, allocations: 1.418 MB / 490.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1509, allocations: 0 / 490.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009676/0.1518, allocations: 295.2 kB / 491.1 MB, free: 15 MB / 382.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.000183/0.152, allocations: 135.1 kB / 491.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.1537, allocations: 0.9921 MB / 492.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1537, allocations: 0 / 492.2 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.1544, allocations: 423 kB / 492.7 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.1558, allocations: 341.2 kB / 493 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005356/0.1612, allocations: 3.332 MB / 496.3 MB, free: 9.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.1624, allocations: 1.658 MB / 498 MB, free: 8.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.1629, allocations: 87.44 kB / 498.1 MB, free: 7.969 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1629, allocations: 0 / 498.1 MB, free: 7.969 MB / 382.1 MB Notification: Performance of Templates: time 0.03206/0.1949, allocations: 23.7 MB / 0.5095 GB, free: 220 kB / 398.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile (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)