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.001188/0.001188, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001151/0.001151, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.208/1.208, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05066/0.05066, allocations: 7.033 MB / 277.6 MB, free: 4.969 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.001348/0.001348, allocations: 74.39 kB / 385.9 MB, free: 48.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06978/0.07113, allocations: 48.11 MB / 434.1 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004138/0.07531, allocations: 4.681 MB / 438.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.07701, allocations: 1.925 MB / 440.7 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002475/0.07727, allocations: 16 kB / 440.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006084/0.07789, allocations: 345.8 kB / 441 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003234/0.07822, allocations: 246.2 kB / 441.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.07863, allocations: 347.7 kB / 441.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.08025, allocations: 2.643 MB / 444.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001535/0.0818, allocations: 1.536 MB / 445.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006746/0.08248, allocations: 0.8761 MB / 446.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008063/0.08329, allocations: 0.9259 MB / 447.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003182/0.08362, allocations: 328 kB / 447.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003428/0.08397, allocations: 332 kB / 448.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004144/0.08439, allocations: 0.5416 MB / 448.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008732/0.08527, allocations: 1.109 MB / 449.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00277/0.08804, allocations: 3.845 MB / 453.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.08806, allocations: 0 / 453.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08807, allocations: 0 / 453.7 MB, free: 5.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.157e-05/0.08809, allocations: 0 / 453.7 MB, free: 5.66 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.003577/0.09167, allocations: 2.241 MB / 456 MB, free: 3.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.09172, allocations: 12.03 kB / 456 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000283/0.09201, allocations: 186.7 kB / 456.2 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002366/0.09438, allocations: 1.726 MB / 457.9 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.719e-05/0.09447, allocations: 102.8 kB / 458 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.09467, allocations: 128.3 kB / 458.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002646/0.09732, allocations: 1.831 MB / 459.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.09737, allocations: 8 kB / 459.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.09751, allocations: 52 kB / 460 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.368e-05/0.09754, allocations: 28 kB / 460 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002366/0.09991, allocations: 1.516 MB / 461.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008722/0.1086, allocations: 7.086 MB / 468.6 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.1115, allocations: 2.969 MB / 471.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008279/0.1124, allocations: 0.5504 MB / 472.1 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.1124, allocations: 4.562 kB / 472.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007982/0.1132, allocations: 0.555 MB / 472.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.565e-06/0.1132, allocations: 0 / 472.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002044/0.1153, allocations: 1.247 MB / 473.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.1154, allocations: 170.8 kB / 474.1 MB, free: 440 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.1178, allocations: 1.972 MB / 476.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.658e-05/0.1179, allocations: 41.7 kB / 476.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006278/0.1186, allocations: 0.7121 MB / 476.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.1188, allocations: 209 kB / 477 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.119, allocations: 154.6 kB / 477.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1191, allocations: 337.9 kB / 477.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006623/0.1198, allocations: 437.8 kB / 478 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008029/0.1206, allocations: 0.6632 MB / 478.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/0.1242, allocations: 1.951 MB / 480.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.1242, allocations: 4 kB / 480.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001949/0.1262, allocations: 1.296 MB / 481.9 MB, free: 8.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.1262, allocations: 33.7 kB / 481.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.1263, allocations: 8 kB / 481.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.1263, allocations: 8 kB / 481.9 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008389/0.1271, allocations: 223.6 kB / 482.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.437e-05/0.1272, allocations: 8 kB / 482.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006771/0.1278, allocations: 138.8 kB / 482.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.1279, allocations: 39.92 kB / 482.3 MB, free: 7.969 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.0008904/0.1288, allocations: 0.7326 MB / 483 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.129, allocations: 150.2 kB / 483.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.1305, allocations: 1.001 MB / 484.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.782e-06/0.1305, allocations: 11.94 kB / 484.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1305, allocations: 0 / 484.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.1305, allocations: 3.984 kB / 484.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003964/0.1345, allocations: 3.018 MB / 487.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1345, allocations: 0 / 487.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007394/0.1353, allocations: 163.8 kB / 487.4 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.1353, allocations: 4 kB / 487.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.506e-05/0.1354, allocations: 31.92 kB / 487.4 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1354, allocations: 8.031 kB / 487.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1354, allocations: 0 / 487.4 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.1374, allocations: 1.561 MB / 489 MB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004027/0.1378, allocations: 303.1 kB / 489.3 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.138, allocations: 23.98 kB / 489.3 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004868/0.1385, allocations: 47.95 kB / 489.4 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.1386, allocations: 44.5 kB / 489.4 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.1386, allocations: 16.09 kB / 489.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001734/0.1404, allocations: 1.414 MB / 490.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1404, allocations: 0 / 490.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007465/0.1411, allocations: 295.2 kB / 491.1 MB, free: 15.02 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.0001547/0.1413, allocations: 135.1 kB / 491.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.1428, allocations: 0.9921 MB / 492.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1428, allocations: 8 kB / 492.3 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005903/0.1434, allocations: 419 kB / 492.7 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.1445, allocations: 337.3 kB / 493 MB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004495/0.149, allocations: 3.32 MB / 496.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001181/0.1502, allocations: 1.665 MB / 498 MB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.1506, allocations: 83.44 kB / 498.1 MB, free: 7.988 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1506, allocations: 0 / 498.1 MB, free: 7.988 MB / 382.1 MB Notification: Performance of Templates: time 0.03129/0.1819, allocations: 23.72 MB / 0.5095 GB, free: 228 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)