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.001197/0.001197, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001446/0.001446, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05091/0.05091, allocations: 7.038 MB / 277.4 MB, free: 14.26 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.0005207/0.0005208, allocations: 12 kB / 336.9 MB, free: 27.61 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.07932, allocations: 49.07 MB / 386 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004951/0.08431, allocations: 3.82 MB / 389.8 MB, free: 6.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.0881, allocations: 1.544 MB / 391.4 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.08918, allocations: 16 kB / 391.4 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008812/0.09008, allocations: 210.7 kB / 391.6 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008671/0.09097, allocations: 223.4 kB / 391.8 MB, free: 4.617 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006495/0.09164, allocations: 151.8 kB / 392 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.09416, allocations: 1.399 MB / 393.4 MB, free: 3.074 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.09586, allocations: 1.076 MB / 394.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007592/0.09664, allocations: 453.9 kB / 394.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009262/0.09758, allocations: 0.536 MB / 395.4 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002899/0.09788, allocations: 60 kB / 395.5 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003631/0.09825, allocations: 68 kB / 395.5 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.09855, allocations: 215 kB / 395.8 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005527/0.09911, allocations: 408.8 kB / 396.2 MB, free: 244 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002816/0.1019, allocations: 2.969 MB / 399.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.102, allocations: 0 / 399.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.102, allocations: 0 / 399.1 MB, free: 13.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000113/0.1021, allocations: 0 / 399.1 MB, free: 13.26 MB / 302.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.004327/0.1064, allocations: 1.82 MB / 400.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.1065, allocations: 11.97 kB / 401 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.1071, allocations: 185.8 kB / 401.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/0.1111, allocations: 2.34 MB / 403.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.1112, allocations: 98.45 kB / 403.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003536/0.1116, allocations: 128 kB / 403.7 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003502/0.1151, allocations: 1.72 MB / 405.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.905e-05/0.1152, allocations: 0 / 405.4 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001757/0.1153, allocations: 52 kB / 405.5 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.972e-05/0.1154, allocations: 39.98 kB / 405.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002493/0.1179, allocations: 1.292 MB / 406.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009047/0.1269, allocations: 6.153 MB / 413 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.1291, allocations: 2.469 MB / 415.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.1291, allocations: 8 kB / 415.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006996/0.1299, allocations: 389.6 kB / 415.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=46): time 5.27e-06/0.1299, allocations: 4 kB / 415.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=46): time 0.001725/0.1316, allocations: 0.8777 MB / 416.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.1318, allocations: 243.3 kB / 416.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/0.1342, allocations: 1.564 MB / 418.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.5e-05/0.1343, allocations: 37.7 kB / 418.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007301/0.1351, allocations: 0.7507 MB / 419.3 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.1353, allocations: 169.6 kB / 419.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.036e-05/0.1353, allocations: 20.09 kB / 419.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1355, allocations: 345.9 kB / 419.8 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005744/0.1361, allocations: 301.8 kB / 420.1 MB, free: 7.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007001/0.1368, allocations: 0.5703 MB / 420.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007341/0.1375, allocations: 457.9 kB / 421.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-06/0.1375, allocations: 0 / 421.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001846/0.1394, allocations: 1.083 MB / 422.2 MB, free: 5.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.689e-05/0.1395, allocations: 41.73 kB / 422.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.1395, allocations: 12 kB / 422.3 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.1395, allocations: 12 kB / 422.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007705/0.1403, allocations: 215.7 kB / 422.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.561e-05/0.1403, allocations: 19.94 kB / 422.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006846/0.141, allocations: 114.8 kB / 422.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-05/0.1411, allocations: 36 kB / 422.6 MB, free: 4.664 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: 40 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count,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 (91): * Single equations (assignments): 90 * 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.001128/0.1422, allocations: 0.7364 MB / 423.4 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.1425, allocations: 150.2 kB / 423.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.1436, allocations: 0.5741 MB / 424.1 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.1436, allocations: 8 kB / 424.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/0.1437, allocations: 12 kB / 424.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1437, allocations: 3.984 kB / 424.1 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003695/0.1474, allocations: 2.028 MB / 426.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1474, allocations: 0 / 426.1 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005935/0.148, allocations: 143.8 kB / 426.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.217e-05/0.148, allocations: 4 kB / 426.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.526e-05/0.1481, allocations: 27.95 kB / 426.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.1481, allocations: 4 kB / 426.3 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.1481, allocations: 11.86 kB / 426.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1625/0.3107, allocations: 1.169 MB / 427.5 MB, free: 43.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003571/0.311, allocations: 207.6 kB / 427.7 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.3113, allocations: 26.12 kB / 427.7 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004627/0.3118, allocations: 27.77 kB / 427.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3119, allocations: 32.94 kB / 427.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.312, allocations: 21.69 kB / 427.8 MB, free: 43.22 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002573/0.3145, allocations: 1.148 MB / 429 MB, free: 43.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3145, allocations: 0 / 429 MB, free: 43.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001187/0.3157, allocations: 258.5 kB / 429.2 MB, free: 43.11 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.y,rCseriesLinear.rs.impedanceValue.qabs.absInt.y,rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q) * 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 (46): * Single equations (assignments): 44 * 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.0001895/0.3159, allocations: 127.8 kB / 429.3 MB, free: 43.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.3173, allocations: 0.7291 MB / 430.1 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3174, allocations: 1.594 kB / 430.1 MB, free: 42.96 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004824/0.3178, allocations: 283.2 kB / 430.3 MB, free: 42.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.3191, allocations: 294.2 kB / 430.6 MB, free: 42.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.3249, allocations: 3.675 MB / 434.3 MB, free: 40.85 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.3268, allocations: 1.717 MB / 436 MB, free: 39.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001403/0.3282, allocations: 319.2 kB / 436.3 MB, free: 39.8 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.3286, allocations: 84.89 kB / 436.4 MB, free: 39.79 MB / 318.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3286, allocations: 0 / 436.4 MB, free: 39.79 MB / 318.1 MB Notification: Performance of Templates: time 0.02265/0.3512, allocations: 11.98 MB / 448.4 MB, free: 34.29 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: