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.001116/0.001116, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001131/0.001131, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.442/1.442, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05124/0.05124, allocations: 7.038 MB / 277.6 MB, free: 4.957 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.001544/0.001544, allocations: 67.91 kB / 337.3 MB, free: 9.102 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2604, allocations: 48.08 MB / 385.4 MB, free: 52.35 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005738/0.2662, allocations: 4.67 MB / 390.1 MB, free: 49.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003104/0.2693, allocations: 1.926 MB / 392 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006462/0.27, allocations: 18.44 kB / 392 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.2712, allocations: 343.9 kB / 392.4 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008451/0.2721, allocations: 249 kB / 392.6 MB, free: 47.31 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007907/0.2729, allocations: 345.4 kB / 393 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002715/0.2756, allocations: 2.651 MB / 395.6 MB, free: 45.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/0.2774, allocations: 1.532 MB / 397.1 MB, free: 44.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.2786, allocations: 0.8695 MB / 398 MB, free: 44.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.28, allocations: 0.9297 MB / 398.9 MB, free: 43.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004877/0.2805, allocations: 328.4 kB / 399.3 MB, free: 43.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004854/0.281, allocations: 331.7 kB / 399.6 MB, free: 43.8 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004076/0.2814, allocations: 0.537 MB / 400.1 MB, free: 43.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001237/0.2826, allocations: 1.113 MB / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003318/0.286, allocations: 3.843 MB / 405.1 MB, free: 39.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.286, allocations: 4 kB / 405.1 MB, free: 39.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.286, allocations: 0 / 405.1 MB, free: 39.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.917e-05/0.2861, allocations: 1.375 kB / 405.1 MB, free: 39.91 MB / 318.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.004842/0.2909, allocations: 2.245 MB / 407.3 MB, free: 38.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.291, allocations: 9.75 kB / 407.3 MB, free: 38.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003998/0.2914, allocations: 189.1 kB / 407.5 MB, free: 38.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002528/0.2939, allocations: 1.735 MB / 409.3 MB, free: 36.81 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.836e-05/0.294, allocations: 99.8 kB / 409.3 MB, free: 36.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002314/0.2943, allocations: 123.5 kB / 409.5 MB, free: 36.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003048/0.2973, allocations: 1.829 MB / 411.3 MB, free: 35.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.485e-05/0.2974, allocations: 7.938 kB / 411.3 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/0.2975, allocations: 59.98 kB / 411.4 MB, free: 35.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.2975, allocations: 32 kB / 411.4 MB, free: 35.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.2998, allocations: 1.508 MB / 412.9 MB, free: 33.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009414/0.3092, allocations: 7.078 MB / 420 MB, free: 26.36 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002392/0.3116, allocations: 2.969 MB / 423 MB, free: 22.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007417/0.3124, allocations: 0.5426 MB / 423.5 MB, free: 22.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.3125, allocations: 4.562 kB / 423.5 MB, free: 22.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007118/0.3132, allocations: 0.551 MB / 424.1 MB, free: 21.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.304e-06/0.3132, allocations: 0 / 424.1 MB, free: 21.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.001871/0.3151, allocations: 1.251 MB / 425.3 MB, free: 20.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.3151, allocations: 166.8 kB / 425.5 MB, free: 20.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/0.3174, allocations: 1.968 MB / 427.4 MB, free: 18.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-05/0.3175, allocations: 41.7 kB / 427.5 MB, free: 18.37 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005279/0.3181, allocations: 0.7121 MB / 428.2 MB, free: 17.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.3182, allocations: 212.9 kB / 428.4 MB, free: 17.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.3185, allocations: 154.6 kB / 428.5 MB, free: 17.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.564e-05/0.3186, allocations: 345.8 kB / 428.9 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.3192, allocations: 437.7 kB / 429.3 MB, free: 16.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006746/0.3199, allocations: 0.6498 MB / 430 MB, free: 15.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.3232, allocations: 1.967 MB / 431.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3232, allocations: 7.984 kB / 431.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001824/0.325, allocations: 1.287 MB / 433.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.3251, allocations: 36.83 kB / 433.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3251, allocations: 11.94 kB / 433.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.3251, allocations: 8.047 kB / 433.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000829/0.326, allocations: 228.2 kB / 433.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.326, allocations: 15.92 kB / 433.5 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009029/0.3269, allocations: 134.7 kB / 433.6 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.327, allocations: 35.94 kB / 433.7 MB, free: 11.93 MB / 318.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.001005/0.328, allocations: 0.7379 MB / 434.4 MB, free: 11.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.3282, allocations: 138.3 kB / 434.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.3297, allocations: 0.9902 MB / 435.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3297, allocations: 8 kB / 435.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3297, allocations: 0 / 435.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3297, allocations: 3.984 kB / 435.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003872/0.3336, allocations: 3.022 MB / 438.6 MB, free: 6.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3336, allocations: 4 kB / 438.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007598/0.3344, allocations: 163.8 kB / 438.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.934e-06/0.3344, allocations: 4 kB / 438.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.914e-05/0.3345, allocations: 27.98 kB / 438.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.3345, allocations: 8 kB / 438.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3345, allocations: 0 / 438.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.3364, allocations: 1.568 MB / 440.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005088/0.337, allocations: 303.1 kB / 440.6 MB, free: 4.828 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.3371, allocations: 20 kB / 440.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005271/0.3377, allocations: 47.94 kB / 440.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3378, allocations: 44.5 kB / 440.8 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.31e-05/0.3379, allocations: 16 kB / 440.8 MB, free: 4.703 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001791/0.3397, allocations: 1.414 MB / 442.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3397, allocations: 192 / 442.2 MB, free: 3.289 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009386/0.3406, allocations: 295.2 kB / 442.5 MB, free: 3 MB / 318.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.0001796/0.3408, allocations: 143.1 kB / 442.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.3422, allocations: 0.9991 MB / 443.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3423, allocations: 0 / 443.6 MB, free: 1.84 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005499/0.3428, allocations: 423 kB / 444 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/0.3442, allocations: 323.3 kB / 444.3 MB, free: 1.121 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005505/0.3497, allocations: 3.389 MB / 447.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/0.3512, allocations: 1.7 MB / 449.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001191/0.3525, allocations: 357.7 kB / 449.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.3528, allocations: 79.44 kB / 449.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3528, allocations: 0 / 449.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Templates: time 0.0329/0.3857, allocations: 18.62 MB / 468.5 MB, free: 8.926 MB / 350.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 -s cvode -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)