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.000928/0.0009279, allocations: 176 kB / 7.652 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05254/0.05255, allocations: 7.036 MB / 15.11 MB, free: 188 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.323/1.323, allocations: 194.3 MB / 211.4 MB, free: 15.3 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.001627/0.001627, allocations: 114.9 kB / 257.8 MB, free: 1.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.367e-05/1.371e-05, allocations: 0 / 310 MB, free: 13.25 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3132, allocations: 45.98 MB / 356 MB, free: 46.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1107/0.424, allocations: 78.43 MB / 434.4 MB, free: 13.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.4243, allocations: 75.97 kB / 434.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06625/0.4906, allocations: 31.85 MB / 466.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4906, allocations: 0.875 kB / 466.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.4907, allocations: 39.98 kB / 466.4 MB, free: 13.4 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.002828/0.4936, allocations: 1.591 MB / 468 MB, free: 11.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.4936, allocations: 8.031 kB / 468 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003179/0.4939, allocations: 181.8 kB / 468.2 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002205/0.4962, allocations: 1.474 MB / 469.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.233e-05/0.4962, allocations: 44 kB / 469.7 MB, free: 9.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001626/0.4964, allocations: 68 kB / 469.8 MB, free: 9.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002098/0.4985, allocations: 1.25 MB / 471 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/0.5006, allocations: 1.257 MB / 472.3 MB, free: 7.391 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.5007, allocations: 4 kB / 472.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.676e-05/0.5008, allocations: 0 / 472.3 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.5008, allocations: 31.95 kB / 472.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008548/0.5094, allocations: 5.607 MB / 477.9 MB, free: 1.684 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.5122, allocations: 2.904 MB / 480.8 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007685/0.513, allocations: 0.5013 MB / 481.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.954e-05/0.5131, allocations: 12.55 kB / 481.3 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008258/0.5139, allocations: 0.5071 MB / 481.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 2.925e-06/0.5139, allocations: 4 kB / 481.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001498/0.5154, allocations: 0.7985 MB / 482.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.5155, allocations: 170.7 kB / 482.8 MB, free: 12.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/0.5177, allocations: 1.314 MB / 484.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.5178, allocations: 29.7 kB / 484.1 MB, free: 10.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007908/0.5186, allocations: 0.6786 MB / 484.8 MB, free: 10.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.5188, allocations: 205 kB / 485 MB, free: 10.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.5188, allocations: 0 / 485 MB, free: 10.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.519, allocations: 334 kB / 485.3 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005648/0.5196, allocations: 373.4 kB / 485.7 MB, free: 9.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006759/0.5203, allocations: 0.4956 MB / 486.2 MB, free: 8.797 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006706/0.521, allocations: 459.6 kB / 486.7 MB, free: 8.344 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.521, allocations: 0 / 486.7 MB, free: 8.344 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001697/0.5227, allocations: 1.017 MB / 487.7 MB, free: 7.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.16e-05/0.5228, allocations: 41.19 kB / 487.7 MB, free: 7.277 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.5228, allocations: 4 kB / 487.7 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.5228, allocations: 4 kB / 487.7 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008946/0.5237, allocations: 207.7 kB / 487.9 MB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.863e-05/0.5238, allocations: 12 kB / 487.9 MB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005876/0.5244, allocations: 79.38 kB / 488 MB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/0.5244, allocations: 20 kB / 488 MB, free: 6.957 MB / 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.0002459/0.5247, allocations: 143.3 kB / 488.2 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.5248, allocations: 106.6 kB / 488.3 MB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.5262, allocations: 0.8806 MB / 489.2 MB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.5263, allocations: 9.312 kB / 489.2 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.5263, allocations: 0 / 489.2 MB, free: 5.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.5263, allocations: 8.031 kB / 489.2 MB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.5302, allocations: 2.813 MB / 492 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.5302, allocations: 4 kB / 492 MB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007802/0.531, allocations: 183.8 kB / 492.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.531, allocations: 0 / 492.2 MB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-05/0.5311, allocations: 15.98 kB / 492.2 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.5311, allocations: 4 kB / 492.2 MB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5311, allocations: 3.938 kB / 492.2 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.5329, allocations: 1.451 MB / 493.6 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.5333, allocations: 263.6 kB / 493.9 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5334, allocations: 12 kB / 493.9 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.5339, allocations: 47.94 kB / 494 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.534, allocations: 44.45 kB / 494 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.179e-05/0.5341, allocations: 16 kB / 494 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001475/0.5355, allocations: 1.006 MB / 495 MB, free: 15.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5355, allocations: 0 / 495 MB, free: 15.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009718/0.5365, allocations: 298.7 kB / 495.3 MB, free: 15.55 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.0003951/0.5369, allocations: 211.1 kB / 495.5 MB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.5383, allocations: 0.8637 MB / 496.4 MB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5383, allocations: 0 / 496.4 MB, free: 14.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005374/0.5388, allocations: 389.9 kB / 496.8 MB, free: 14.08 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001142/0.54, allocations: 232.3 kB / 497 MB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.5451, allocations: 2.608 MB / 499.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.5464, allocations: 1.684 MB / 0.4895 GB, free: 9.504 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008234/0.5472, allocations: 275.1 kB / 0.4898 GB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.5475, allocations: 63.44 kB / 0.4899 GB, free: 9.168 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5475, allocations: 3.938 kB / 0.4899 GB, free: 9.164 MB / 394.7 MB Notification: Performance of Templates: time 0.2414/0.7888, allocations: 12.7 MB / 0.5023 GB, free: 104.4 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)