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.00593/0.00593, allocations: 176 kB / 15.12 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.0612/0.0612, allocations: 7.043 MB / 22.9 MB, free: 4.484 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.428/1.428, allocations: 194.5 MB / 219.6 MB, free: 15.59 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.001652/0.001652, allocations: 120.6 kB / 266.4 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003591, allocations: 12 kB / 322.8 MB, free: 17.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.08118, allocations: 45.98 MB / 368.8 MB, free: 3.344 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2982/0.3794, allocations: 79.18 MB / 448 MB, free: 2.398 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.3798, allocations: 78.22 kB / 448.1 MB, free: 2.359 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07112/0.4509, allocations: 32.23 MB / 480.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.4509, allocations: 0 / 480.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002267/0.4512, allocations: 35.98 kB / 480.3 MB, free: 5.035 MB / 346.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.004893/0.4561, allocations: 1.84 MB / 482.2 MB, free: 3.133 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.4562, allocations: 16.03 kB / 482.2 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007956/0.457, allocations: 177.8 kB / 482.4 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00295/0.4599, allocations: 1.481 MB / 483.8 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.475e-05/0.46, allocations: 94.34 kB / 483.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.4603, allocations: 120 kB / 484.1 MB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002749/0.463, allocations: 1.452 MB / 485.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.4631, allocations: 7.875 kB / 485.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.4632, allocations: 52 kB / 485.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.4632, allocations: 31.98 kB / 485.6 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.4656, allocations: 1.368 MB / 487 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01046/0.4761, allocations: 5.903 MB / 492.9 MB, free: 8.254 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003198/0.4794, allocations: 2.981 MB / 495.8 MB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.757e-05/0.4794, allocations: 8.562 kB / 495.9 MB, free: 4.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009291/0.4804, allocations: 0.5589 MB / 496.4 MB, free: 4.258 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.665e-06/0.4804, allocations: 0 / 496.4 MB, free: 4.258 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.00225/0.4827, allocations: 1.27 MB / 497.7 MB, free: 2.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.4828, allocations: 166.7 kB / 497.8 MB, free: 2.781 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.4854, allocations: 1.691 MB / 499.5 MB, free: 1.078 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.627e-05/0.4854, allocations: 41.69 kB / 499.6 MB, free: 1.031 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006718/0.4861, allocations: 0.6497 MB / 0.4885 GB, free: 384 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.4863, allocations: 212.9 kB / 0.4887 GB, free: 168 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.4864, allocations: 16 kB / 0.4887 GB, free: 152 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4866, allocations: 334.5 kB / 0.489 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007014/0.4873, allocations: 413.1 kB / 0.4894 GB, free: 15.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008019/0.4881, allocations: 0.5466 MB / 0.49 GB, free: 14.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008379/0.4889, allocations: 0.513 MB / 0.4905 GB, free: 14.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4889, allocations: 3.953 kB / 0.4905 GB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001948/0.4909, allocations: 1.194 MB / 0.4916 GB, free: 13.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.352e-05/0.491, allocations: 29.7 kB / 0.4917 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.491, allocations: 4 kB / 0.4917 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.491, allocations: 4 kB / 0.4917 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009131/0.4919, allocations: 212 kB / 0.4919 GB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/0.492, allocations: 11.94 kB / 0.4919 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007505/0.4927, allocations: 130.9 kB / 0.492 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.858e-05/0.4928, allocations: 23.98 kB / 0.492 GB, free: 12.67 MB / 378.7 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: 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 () * Number of clocked 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.001162/0.494, allocations: 0.6818 MB / 0.4927 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002153/0.4942, allocations: 134.3 kB / 0.4928 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.4959, allocations: 1.004 MB / 0.4938 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.496, allocations: 8 kB / 0.4938 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.496, allocations: 3.984 kB / 0.4938 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.496, allocations: 3.938 kB / 0.4938 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004763/0.5008, allocations: 3.032 MB / 0.4968 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5008, allocations: 0 / 0.4968 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008488/0.5016, allocations: 179.7 kB / 0.497 GB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.5017, allocations: 0 / 0.497 GB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.719e-05/0.5017, allocations: 31.98 kB / 0.497 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.105e-06/0.5018, allocations: 4 kB / 0.497 GB, free: 7.508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.5018, allocations: 7.891 kB / 0.497 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.5041, allocations: 1.581 MB / 0.4985 GB, free: 5.895 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005624/0.5047, allocations: 295.2 kB / 0.4988 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002432/0.5049, allocations: 24 kB / 0.4989 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006213/0.5056, allocations: 51.94 kB / 0.4989 GB, free: 5.512 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.5057, allocations: 52.45 kB / 0.499 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.363e-05/0.5058, allocations: 23.98 kB / 0.499 GB, free: 5.438 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002321/0.5081, allocations: 1.322 MB / 0.5003 GB, free: 4.113 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5081, allocations: 0 / 0.5003 GB, free: 4.113 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001139/0.5093, allocations: 295.2 kB / 0.5005 GB, free: 3.824 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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.0004833/0.5097, allocations: 213.9 kB / 0.5008 GB, free: 3.602 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.5114, allocations: 0.9517 MB / 0.5017 GB, free: 2.637 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5114, allocations: 0.625 kB / 0.5017 GB, free: 2.637 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006732/0.5121, allocations: 439 kB / 0.5021 GB, free: 2.211 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.5133, allocations: 284.8 kB / 0.5024 GB, free: 1.934 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007109/0.5205, allocations: 3.707 MB / 0.506 GB, free: 14.19 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001939/0.5224, allocations: 1.685 MB / 0.5076 GB, free: 12.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001083/0.5235, allocations: 316.9 kB / 0.5079 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003582/0.5239, allocations: 75.44 kB / 0.508 GB, free: 12.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5239, allocations: 0 / 0.508 GB, free: 12.09 MB / 394.7 MB Notification: Performance of Templates: time 0.03462/0.5585, allocations: 17.49 MB / 0.5251 GB, free: 10.56 MB / 410.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)