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.001069/0.001069, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001241/0.001241, allocations: 172.7 kB / 15.95 MB, free: 208 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.653/1.653, allocations: 205.4 MB / 222.1 MB, free: 5.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06241/0.06241, allocations: 7.042 MB / 277.4 MB, free: 14.14 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.0005699/0.00057, allocations: 20 kB / 337 MB, free: 27.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1204, allocations: 49.07 MB / 386 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005259/0.1257, allocations: 4.018 MB / 390.1 MB, free: 6.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00329/0.129, allocations: 1.536 MB / 391.6 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006391/0.1297, allocations: 19.94 kB / 391.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008868/0.1306, allocations: 254.6 kB / 391.9 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005784/0.1312, allocations: 190.7 kB / 392.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006143/0.1318, allocations: 143.8 kB / 392.2 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.1346, allocations: 2.078 MB / 394.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001873/0.1365, allocations: 1.083 MB / 395.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001037/0.1376, allocations: 0.5015 MB / 395.9 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007927/0.1384, allocations: 0.6141 MB / 396.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.1386, allocations: 88 kB / 396.6 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.1388, allocations: 91.94 kB / 396.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003263/0.1391, allocations: 262.8 kB / 396.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005631/0.1397, allocations: 404.8 kB / 397.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003687/0.1434, allocations: 3.172 MB / 400.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.556e-05/0.1434, allocations: 4 kB / 400.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.86e-06/0.1434, allocations: 0 / 400.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001001/0.1436, allocations: 0 / 400.5 MB, free: 11.88 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.004944/0.1485, allocations: 1.883 MB / 402.4 MB, free: 9.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1486, allocations: 12.03 kB / 402.4 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.149, allocations: 185.7 kB / 402.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002432/0.1514, allocations: 1.667 MB / 404.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.1516, allocations: 102.5 kB / 404.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.1519, allocations: 124 kB / 404.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004155/0.156, allocations: 1.827 MB / 406.3 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.341e-05/0.1561, allocations: 3.938 kB / 406.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.1562, allocations: 52 kB / 406.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.1563, allocations: 32 kB / 406.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002909/0.1592, allocations: 1.516 MB / 407.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.1703, allocations: 7.164 MB / 415 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003251/0.1736, allocations: 2.977 MB / 418 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009441/0.1746, allocations: 0.5393 MB / 418.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.654e-05/0.1747, allocations: 12.56 kB / 418.6 MB, free: 9.027 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009849/0.1757, allocations: 0.5549 MB / 419.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.705e-06/0.1757, allocations: 0 / 419.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002585/0.1783, allocations: 1.27 MB / 420.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.1784, allocations: 166.8 kB / 420.6 MB, free: 6.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003654/0.1821, allocations: 1.957 MB / 422.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.474e-05/0.1822, allocations: 45.69 kB / 422.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009623/0.1832, allocations: 0.7082 MB / 423.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.1835, allocations: 209 kB / 423.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.1836, allocations: 16 kB / 423.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.1837, allocations: 337.9 kB / 423.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008254/0.1846, allocations: 437.8 kB / 424.2 MB, free: 3.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.1856, allocations: 0.6554 MB / 424.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.1867, allocations: 0.5715 MB / 425.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.1867, allocations: 0 / 425.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002396/0.1891, allocations: 1.303 MB / 426.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.424e-05/0.1892, allocations: 37.7 kB / 426.8 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.1892, allocations: 7.938 kB / 426.8 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.003e-05/0.1892, allocations: 12 kB / 426.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009299/0.1902, allocations: 232.1 kB / 427.1 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.834e-05/0.1902, allocations: 15.94 kB / 427.1 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008394/0.1911, allocations: 146.6 kB / 427.2 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.429e-05/0.1912, allocations: 36 kB / 427.2 MB, free: 116 kB / 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 ($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 (95): * Single equations (assignments): 94 * 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.2685/0.4597, allocations: 0.7219 MB / 428 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004998/0.4602, allocations: 134.8 kB / 428.1 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002271/0.4625, allocations: 1.007 MB / 429.1 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.4625, allocations: 6.375 kB / 429.1 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.4626, allocations: 2.75 kB / 429.1 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.4626, allocations: 8.047 kB / 429.1 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/0.4683, allocations: 3.037 MB / 432.2 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.4683, allocations: 8.703 kB / 432.2 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008406/0.4692, allocations: 175.7 kB / 432.3 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.076e-05/0.4692, allocations: 2.641 kB / 432.3 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.855e-05/0.4693, allocations: 23.05 kB / 432.4 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.4693, allocations: 3.281 kB / 432.4 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4693, allocations: 3.969 kB / 432.4 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.4717, allocations: 1.583 MB / 434 MB, free: 41.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004248/0.4721, allocations: 303.5 kB / 434.3 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.4723, allocations: 23.61 kB / 434.3 MB, free: 41.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005061/0.4728, allocations: 50.94 kB / 434.3 MB, free: 41.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.4729, allocations: 49.5 kB / 434.4 MB, free: 41.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.356e-05/0.473, allocations: 16.12 kB / 434.4 MB, free: 41.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002357/0.4753, allocations: 1.402 MB / 435.8 MB, free: 40.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4753, allocations: 1.219 kB / 435.8 MB, free: 40.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001248/0.4766, allocations: 295.5 kB / 436.1 MB, free: 40.76 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 (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.000203/0.4768, allocations: 132.8 kB / 436.2 MB, free: 40.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002061/0.4789, allocations: 0.9927 MB / 437.2 MB, free: 40.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.4789, allocations: 4.906 kB / 437.2 MB, free: 40.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.48, allocations: 436.5 kB / 437.6 MB, free: 40.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001539/0.4816, allocations: 311 kB / 437.9 MB, free: 39.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006553/0.4881, allocations: 3.839 MB / 441.8 MB, free: 37.87 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001463/0.4896, allocations: 1.688 MB / 443.5 MB, free: 36.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001166/0.4908, allocations: 351.1 kB / 443.8 MB, free: 36.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.4911, allocations: 86.03 kB / 443.9 MB, free: 36.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.703e-06/0.4911, allocations: 0 / 443.9 MB, free: 36.82 MB / 318.1 MB Notification: Performance of Templates: time 0.02656/0.5177, allocations: 17.16 MB / 461.1 MB, free: 21.74 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: