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.007597/0.007597, allocations: 102.2 kB / 15.73 MB, free: 6.008 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.00172/0.00172, allocations: 198.4 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06184/0.06184, allocations: 7.029 MB / 276.9 MB, free: 4.957 MB / 222.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.00145/0.00145, allocations: 67.56 kB / 385.3 MB, free: 48.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1082, allocations: 48.12 MB / 433.4 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005016/0.1133, allocations: 4.668 MB / 438.1 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002776/0.1161, allocations: 1.917 MB / 440 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004122/0.1166, allocations: 19.94 kB / 440 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008393/0.1174, allocations: 341.9 kB / 440.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004307/0.1179, allocations: 270.1 kB / 440.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.1184, allocations: 355.6 kB / 440.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001963/0.1204, allocations: 2.646 MB / 443.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001796/0.1222, allocations: 1.536 MB / 445.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001216/0.1234, allocations: 0.8761 MB / 446 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009364/0.1243, allocations: 0.9259 MB / 446.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003534/0.1247, allocations: 328 kB / 447.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.1251, allocations: 332 kB / 447.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004547/0.1255, allocations: 0.5377 MB / 448.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001146/0.1267, allocations: 1.121 MB / 449.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003204/0.1299, allocations: 3.826 MB / 453.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.1299, allocations: 4 kB / 453.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1299, allocations: 0 / 453.1 MB, free: 5.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.236e-05/0.13, allocations: 0 / 453.1 MB, free: 5.629 MB / 334.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.004347/0.1343, allocations: 2.249 MB / 455.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1344, allocations: 8.031 kB / 455.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.1347, allocations: 190.7 kB / 455.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002582/0.1373, allocations: 1.73 MB / 457.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.1374, allocations: 106.8 kB / 457.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000225/0.1377, allocations: 124.3 kB / 457.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003224/0.1409, allocations: 1.835 MB / 459.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.1409, allocations: 0 / 459.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.1411, allocations: 52 kB / 459.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.1411, allocations: 35.94 kB / 459.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002611/0.1437, allocations: 1.516 MB / 460.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/0.1538, allocations: 7.078 MB / 468 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003342/0.1572, allocations: 2.973 MB / 470.9 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008454/0.1581, allocations: 0.5348 MB / 471.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.1581, allocations: 12.56 kB / 471.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000888/0.159, allocations: 0.5588 MB / 472 MB, free: 1.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.635e-06/0.159, allocations: 0 / 472 MB, free: 1.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002194/0.1612, allocations: 1.251 MB / 473.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.191e-05/0.1613, allocations: 162.8 kB / 473.5 MB, free: 404 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002944/0.1643, allocations: 1.976 MB / 475.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/0.1644, allocations: 41.64 kB / 475.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007424/0.1651, allocations: 0.716 MB / 476.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002307/0.1654, allocations: 209 kB / 476.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.1657, allocations: 150.6 kB / 476.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1658, allocations: 341.9 kB / 476.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007145/0.1666, allocations: 437.7 kB / 477.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009093/0.1675, allocations: 0.6594 MB / 478 MB, free: 11.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00386/0.1713, allocations: 1.951 MB / 479.9 MB, free: 9.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.1714, allocations: 4 kB / 479.9 MB, free: 9.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002203/0.1736, allocations: 1.295 MB / 481.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.122e-05/0.1736, allocations: 37.7 kB / 481.3 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.1737, allocations: 4 kB / 481.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.29e-05/0.1737, allocations: 12 kB / 481.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/0.1746, allocations: 212 kB / 481.5 MB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.006e-05/0.1746, allocations: 19.94 kB / 481.5 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007474/0.1754, allocations: 138.7 kB / 481.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.909e-05/0.1755, allocations: 35.94 kB / 481.7 MB, free: 7.93 MB / 366.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 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001167/0.1767, allocations: 0.7404 MB / 482.4 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.1768, allocations: 142.2 kB / 482.5 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.1786, allocations: 0.9969 MB / 483.5 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.1786, allocations: 4 kB / 483.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1786, allocations: 0 / 483.5 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.1786, allocations: 8.016 kB / 483.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.1829, allocations: 3.026 MB / 486.6 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.183, allocations: 0 / 486.6 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008031/0.1838, allocations: 167.8 kB / 486.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.1838, allocations: 7.984 kB / 486.7 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.1839, allocations: 24.03 kB / 486.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.1839, allocations: 0 / 486.8 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1839, allocations: 3.938 kB / 486.8 MB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.1862, allocations: 1.572 MB / 488.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.1867, allocations: 299.1 kB / 488.6 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.1869, allocations: 24 kB / 488.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005445/0.1874, allocations: 55.94 kB / 488.7 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.1876, allocations: 36.52 kB / 488.8 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.1876, allocations: 19.98 kB / 488.8 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002116/0.1897, allocations: 1.411 MB / 490.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1897, allocations: 0 / 490.2 MB, free: 15.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009001/0.1907, allocations: 303.2 kB / 490.5 MB, free: 14.96 MB / 382.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001831/0.1908, allocations: 127.2 kB / 490.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.1925, allocations: 0.9959 MB / 491.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1925, allocations: 0 / 491.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000674/0.1932, allocations: 430.9 kB / 492 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.1945, allocations: 329.4 kB / 492.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/0.1998, allocations: 3.381 MB / 495.7 MB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/0.2011, allocations: 1.697 MB / 497.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009861/0.202, allocations: 357.7 kB / 497.8 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000292/0.2023, allocations: 91.42 kB / 497.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.2024, allocations: 0 / 497.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03216/0.2345, allocations: 18.99 MB / 0.5047 GB, free: 4.469 MB / 398.1 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)