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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001509/0.001509, allocations: 182.5 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07628/0.07628, allocations: 7.034 MB / 20.3 MB, free: 4.387 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.171/1.171, allocations: 194.3 MB / 216.6 MB, free: 10.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001699/0.0017, allocations: 113.8 kB / 263.1 MB, free: 13.38 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.558e-05/2.561e-05, allocations: 4 kB / 317 MB, free: 7.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2304, allocations: 45.97 MB / 363 MB, free: 46.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08769/0.3181, allocations: 79.1 MB / 442.1 MB, free: 8.391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/0.3183, allocations: 79.12 kB / 442.1 MB, free: 8.316 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06709/0.3854, allocations: 32.27 MB / 474.4 MB, free: 8.152 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3855, allocations: 0 / 474.4 MB, free: 8.152 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001676/0.3857, allocations: 36 kB / 474.5 MB, free: 8.117 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003637/0.3893, allocations: 1.591 MB / 476 MB, free: 6.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3894, allocations: 8.031 kB / 476.1 MB, free: 6.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006107/0.39, allocations: 185.7 kB / 476.2 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002371/0.3924, allocations: 1.475 MB / 477.7 MB, free: 4.746 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.144e-05/0.3925, allocations: 98.34 kB / 477.8 MB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.3927, allocations: 116 kB / 477.9 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.3951, allocations: 1.417 MB / 479.3 MB, free: 3.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.3951, allocations: 3.938 kB / 479.3 MB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.3952, allocations: 52 kB / 479.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.3953, allocations: 32 kB / 479.4 MB, free: 3.004 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002069/0.3973, allocations: 1.31 MB / 480.7 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008517/0.4059, allocations: 5.91 MB / 486.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0026/0.4085, allocations: 2.919 MB / 489.6 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007508/0.4093, allocations: 0.5231 MB / 490.1 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.4093, allocations: 4.562 kB / 490.1 MB, free: 7.816 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007416/0.4101, allocations: 0.5394 MB / 490.6 MB, free: 7.246 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.885e-06/0.4101, allocations: 0 / 490.6 MB, free: 7.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001318/0.4114, allocations: 0.8605 MB / 491.5 MB, free: 6.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.4115, allocations: 166.8 kB / 491.7 MB, free: 6.176 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002184/0.4137, allocations: 1.678 MB / 493.3 MB, free: 4.484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.067e-05/0.4138, allocations: 37.7 kB / 493.4 MB, free: 4.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005741/0.4144, allocations: 0.6615 MB / 494 MB, free: 3.773 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.4145, allocations: 208.9 kB / 494.2 MB, free: 3.566 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.4146, allocations: 19.94 kB / 494.3 MB, free: 3.547 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4147, allocations: 330 kB / 494.6 MB, free: 3.219 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.4152, allocations: 389.4 kB / 495 MB, free: 2.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006443/0.4159, allocations: 0.5128 MB / 495.5 MB, free: 2.281 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006496/0.4165, allocations: 498.3 kB / 496 MB, free: 1.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.4166, allocations: 4 kB / 496 MB, free: 1.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001545/0.4181, allocations: 1.124 MB / 497.1 MB, free: 0.6523 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.4182, allocations: 41.77 kB / 497.1 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4182, allocations: 0 / 497.1 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4182, allocations: 8 kB / 497.1 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008756/0.4191, allocations: 207.7 kB / 497.3 MB, free: 404 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.4191, allocations: 11.94 kB / 497.3 MB, free: 392 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.4197, allocations: 122.9 kB / 497.5 MB, free: 268 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/0.4198, allocations: 23.98 kB / 497.5 MB, free: 244 kB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.42, allocations: 169.1 kB / 497.7 MB, free: 68 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.4202, allocations: 126.6 kB / 497.8 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001442/0.4216, allocations: 0.9493 MB / 498.7 MB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.4217, allocations: 4 kB / 498.7 MB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.4217, allocations: 4 kB / 498.7 MB, free: 14.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.4217, allocations: 3.984 kB / 498.7 MB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004064/0.4258, allocations: 3.01 MB / 0.49 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.4258, allocations: 4 kB / 0.49 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007932/0.4266, allocations: 183.8 kB / 0.4902 GB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.4266, allocations: 3.984 kB / 0.4902 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.4267, allocations: 23.95 kB / 0.4902 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.4267, allocations: 4 kB / 0.4902 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4267, allocations: 0 / 0.4902 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.4285, allocations: 1.525 MB / 0.4917 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003889/0.4289, allocations: 295.3 kB / 0.492 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.4291, allocations: 27.98 kB / 0.492 GB, free: 9.773 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005121/0.4296, allocations: 48.14 kB / 0.492 GB, free: 9.727 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.4297, allocations: 52.48 kB / 0.4921 GB, free: 9.676 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.4298, allocations: 19.94 kB / 0.4921 GB, free: 9.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001795/0.4316, allocations: 1.312 MB / 0.4934 GB, free: 8.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4316, allocations: 0 / 0.4934 GB, free: 8.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007964/0.4324, allocations: 295.1 kB / 0.4937 GB, free: 8.051 MB / 394.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003193/0.4327, allocations: 218.1 kB / 0.4939 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.434, allocations: 0.8894 MB / 0.4947 GB, free: 6.926 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.434, allocations: 0 / 0.4947 GB, free: 6.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000514/0.4345, allocations: 415 kB / 0.4951 GB, free: 6.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.4355, allocations: 303.2 kB / 0.4954 GB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.4396, allocations: 2.733 MB / 0.4981 GB, free: 3.461 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001217/0.4409, allocations: 1.681 MB / 0.4997 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008391/0.4417, allocations: 316.9 kB / 0.5 GB, free: 1.434 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002478/0.442, allocations: 79.44 kB / 0.5001 GB, free: 1.355 MB / 394.7 MB Notification: Performance of SimCode: time 8.32e-07/0.442, allocations: 0 / 0.5001 GB, free: 1.355 MB / 394.7 MB Notification: Performance of Templates: time 0.2045/0.6465, allocations: 17.59 MB / 0.5173 GB, free: 107 MB / 394.7 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)