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.005725/0.005725, allocations: 94.98 kB / 15.73 MB, free: 6.039 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.001512/0.001512, allocations: 200 kB / 16.68 MB, free: 5.969 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06459/0.06459, allocations: 7.03 MB / 276.9 MB, free: 14.12 MB / 238.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.002899/0.0029, allocations: 63.91 kB / 385.3 MB, free: 9.672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3905/0.3934, allocations: 48.11 MB / 433.4 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005624/0.3991, allocations: 4.672 MB / 438.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003317/0.4024, allocations: 1.931 MB / 440 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004408/0.403, allocations: 15.62 kB / 440 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.4041, allocations: 346.3 kB / 440.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006079/0.4047, allocations: 241 kB / 440.6 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008286/0.4055, allocations: 346.8 kB / 440.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004069/0.4096, allocations: 2.65 MB / 443.6 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002422/0.412, allocations: 1.526 MB / 445.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.4133, allocations: 0.8775 MB / 446 MB, free: 88 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.4145, allocations: 0.9247 MB / 446.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004508/0.415, allocations: 329.4 kB / 447.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005114/0.4155, allocations: 331.1 kB / 447.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005844/0.4161, allocations: 0.541 MB / 448.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002068/0.4182, allocations: 1.111 MB / 449.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.424, allocations: 3.855 MB / 453.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.424, allocations: 1.094 kB / 453.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.424, allocations: 0 / 453.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.807e-05/0.4241, allocations: 0 / 453.1 MB, free: 11.75 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.006401/0.4305, allocations: 2.295 MB / 455.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.962e-05/0.4306, allocations: 9.406 kB / 455.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005093/0.4311, allocations: 198.8 kB / 455.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002807/0.434, allocations: 1.739 MB / 457.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.4341, allocations: 103.9 kB / 457.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.4343, allocations: 131.7 kB / 457.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/0.4378, allocations: 1.83 MB / 459.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.4379, allocations: 1.562 kB / 459.4 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00014/0.438, allocations: 56.38 kB / 459.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.235e-05/0.4381, allocations: 30.53 kB / 459.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.4409, allocations: 1.518 MB / 461 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.451, allocations: 7.092 MB / 468 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.4541, allocations: 2.973 MB / 471 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008784/0.455, allocations: 0.5426 MB / 471.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.4551, allocations: 4.562 kB / 471.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008745/0.456, allocations: 0.555 MB / 472.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.524e-06/0.456, allocations: 0 / 472.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002271/0.4582, allocations: 1.267 MB / 473.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.4584, allocations: 162.8 kB / 473.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.4618, allocations: 1.976 MB / 475.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.529e-05/0.4619, allocations: 37.7 kB / 475.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007593/0.4627, allocations: 0.721 MB / 476.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.4629, allocations: 218.2 kB / 476.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.4632, allocations: 150.6 kB / 476.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.4634, allocations: 341.9 kB / 477 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007463/0.4641, allocations: 445.7 kB / 477.4 MB, free: 5.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009017/0.4651, allocations: 0.6481 MB / 478.1 MB, free: 4.758 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004037/0.4691, allocations: 1.955 MB / 480 MB, free: 2.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.4691, allocations: 4 kB / 480 MB, free: 2.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002302/0.4714, allocations: 1.308 MB / 481.3 MB, free: 1.375 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.601e-05/0.4715, allocations: 41.64 kB / 481.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.4715, allocations: 8 kB / 481.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.4716, allocations: 8 kB / 481.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009039/0.4725, allocations: 215.6 kB / 481.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/0.4725, allocations: 8 kB / 481.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009918/0.4735, allocations: 147.1 kB / 481.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.514e-05/0.4736, allocations: 35.94 kB / 481.8 MB, free: 0.9141 MB / 350.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.001214/0.4748, allocations: 0.7326 MB / 482.5 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003548/0.4752, allocations: 143.1 kB / 482.7 MB, free: 36 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001967/0.4772, allocations: 1.001 MB / 483.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.4772, allocations: 8 kB / 483.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.4772, allocations: 0 / 483.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.4772, allocations: 3.984 kB / 483.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005359/0.4826, allocations: 3.018 MB / 486.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.694e-06/0.4826, allocations: 7.984 kB / 486.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.4834, allocations: 163.8 kB / 486.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.259e-05/0.4835, allocations: 11.92 kB / 486.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.809e-05/0.4835, allocations: 20 kB / 486.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.737e-06/0.4835, allocations: 4 kB / 486.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4836, allocations: 4.031 kB / 486.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.4861, allocations: 1.577 MB / 488.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008787/0.487, allocations: 304.2 kB / 488.8 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005073/0.4875, allocations: 20 kB / 488.8 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008912/0.4884, allocations: 59.88 kB / 488.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.4886, allocations: 36.61 kB / 488.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.4887, allocations: 23.92 kB / 488.9 MB, free: 9.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00318/0.4919, allocations: 1.414 MB / 490.3 MB, free: 8.238 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4919, allocations: 0 / 490.3 MB, free: 8.238 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001393/0.4933, allocations: 303.4 kB / 490.6 MB, free: 7.941 MB / 366.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.000203/0.4935, allocations: 131.1 kB / 490.7 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.4952, allocations: 0.9959 MB / 491.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4953, allocations: 4 kB / 491.7 MB, free: 6.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009369/0.4962, allocations: 423 kB / 492.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00174/0.498, allocations: 328.6 kB / 492.5 MB, free: 6.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006278/0.5042, allocations: 3.433 MB / 495.9 MB, free: 2.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/0.5062, allocations: 1.697 MB / 497.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001268/0.5075, allocations: 357.7 kB / 498 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/0.508, allocations: 87.44 kB / 498 MB, free: 432 kB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.508, allocations: 0 / 498 MB, free: 432 kB / 366.1 MB Notification: Performance of Templates: time 0.03308/0.541, allocations: 18.99 MB / 0.5049 GB, free: 13.39 MB / 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)