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.001461/0.001461, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001278/0.001278, allocations: 196.3 kB / 16.14 MB, free: 6.703 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.583/1.583, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06813/0.06813, allocations: 7.038 MB / 276.4 MB, free: 14.44 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.00137/0.00137, allocations: 63.91 kB / 335.2 MB, free: 27.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1091, allocations: 48.11 MB / 383.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006684/0.1159, allocations: 4.685 MB / 388 MB, free: 6.637 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003367/0.1193, allocations: 1.862 MB / 389.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004528/0.1198, allocations: 23.94 kB / 389.9 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.1209, allocations: 302.5 kB / 390.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006484/0.1216, allocations: 202.7 kB / 390.4 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008068/0.1224, allocations: 319.9 kB / 390.7 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.1247, allocations: 2.362 MB / 393.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001584/0.1263, allocations: 1.426 MB / 394.5 MB, free: 96 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009091/0.1273, allocations: 0.6183 MB / 395.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007296/0.128, allocations: 0.7658 MB / 395.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001767/0.1282, allocations: 128 kB / 396 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002201/0.1284, allocations: 128 kB / 396.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002712/0.1287, allocations: 338.6 kB / 396.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008414/0.1295, allocations: 0.8979 MB / 397.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002814/0.1324, allocations: 3.642 MB / 401 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1324, allocations: 0 / 401 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1324, allocations: 0 / 401 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.615e-05/0.1324, allocations: 0 / 401 MB, free: 9.566 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.004471/0.1369, allocations: 2.249 MB / 403.2 MB, free: 7.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.137, allocations: 12.03 kB / 403.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.1373, allocations: 186.7 kB / 403.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002275/0.1396, allocations: 1.699 MB / 405.1 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.727e-05/0.1397, allocations: 106.8 kB / 405.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.1399, allocations: 124.4 kB / 405.4 MB, free: 5.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003143/0.143, allocations: 1.835 MB / 407.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.135e-05/0.1431, allocations: 4 kB / 407.2 MB, free: 3.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001277/0.1432, allocations: 52 kB / 407.2 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.1433, allocations: 28 kB / 407.3 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.146, allocations: 1.516 MB / 408.8 MB, free: 1.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01158/0.1576, allocations: 7.125 MB / 415.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003682/0.1613, allocations: 2.989 MB / 418.9 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009562/0.1623, allocations: 0.5384 MB / 419.4 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.1624, allocations: 8.547 kB / 419.4 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009098/0.1633, allocations: 0.551 MB / 420 MB, free: 5.758 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.334e-06/0.1633, allocations: 4 kB / 420 MB, free: 5.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002279/0.1656, allocations: 1.251 MB / 421.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.1657, allocations: 162.8 kB / 421.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002658/0.1684, allocations: 1.972 MB / 423.4 MB, free: 2.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-05/0.1685, allocations: 41.7 kB / 423.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006654/0.1692, allocations: 0.7082 MB / 424.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.1694, allocations: 209 kB / 424.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002544/0.1696, allocations: 162.5 kB / 424.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1698, allocations: 341.9 kB / 424.8 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007226/0.1705, allocations: 437.8 kB / 425.3 MB, free: 416 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2119/0.3824, allocations: 0.6446 MB / 425.9 MB, free: 44.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004701/0.3872, allocations: 1.959 MB / 427.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3872, allocations: 1.094 kB / 427.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002413/0.3896, allocations: 1.297 MB / 429.2 MB, free: 43.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/0.3897, allocations: 39.5 kB / 429.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.737e-05/0.3897, allocations: 5.812 kB / 429.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.733e-05/0.3897, allocations: 9 kB / 429.2 MB, free: 43.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/0.3907, allocations: 214.5 kB / 429.4 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.783e-05/0.3908, allocations: 11.55 kB / 429.4 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000985/0.3918, allocations: 140.5 kB / 429.6 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-05/0.3918, allocations: 37.38 kB / 429.6 MB, free: 43.92 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: 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.001505/0.3934, allocations: 0.7328 MB / 430.3 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.3936, allocations: 135.2 kB / 430.5 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001887/0.3955, allocations: 0.9992 MB / 431.5 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.3955, allocations: 10.8 kB / 431.5 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.3955, allocations: 0 / 431.5 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.3955, allocations: 0.75 kB / 431.5 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005212/0.4008, allocations: 3.026 MB / 434.5 MB, free: 41.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4008, allocations: 1.156 kB / 434.5 MB, free: 41.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.4016, allocations: 179.1 kB / 434.7 MB, free: 41.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.4016, allocations: 2.312 kB / 434.7 MB, free: 41.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.633e-05/0.4017, allocations: 24.14 kB / 434.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.045e-06/0.4017, allocations: 2.438 kB / 434.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4018, allocations: 1.406 kB / 434.7 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.4048, allocations: 1.575 MB / 436.3 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.4053, allocations: 299.9 kB / 436.6 MB, free: 40.56 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/0.4054, allocations: 22.27 kB / 436.6 MB, free: 40.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005304/0.406, allocations: 50.91 kB / 436.7 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.4061, allocations: 40.56 kB / 436.7 MB, free: 40.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.68e-05/0.4062, allocations: 18.06 kB / 436.7 MB, free: 40.53 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00228/0.4085, allocations: 1.42 MB / 438.1 MB, free: 39.95 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4085, allocations: 0 / 438.1 MB, free: 39.95 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001062/0.4095, allocations: 292.2 kB / 438.4 MB, free: 39.89 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 (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.0001868/0.4097, allocations: 129.7 kB / 438.5 MB, free: 39.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001806/0.4116, allocations: 1.001 MB / 439.5 MB, free: 39.36 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4116, allocations: 0 / 439.5 MB, free: 39.36 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006541/0.4122, allocations: 426.2 kB / 440 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.4135, allocations: 304 kB / 440.3 MB, free: 39.1 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006032/0.4195, allocations: 3.929 MB / 444.2 MB, free: 36.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.4207, allocations: 1.694 MB / 445.9 MB, free: 35.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009489/0.4217, allocations: 343.1 kB / 446.2 MB, free: 35.38 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002703/0.4219, allocations: 86.22 kB / 446.3 MB, free: 35.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.204e-06/0.4219, allocations: 0 / 446.3 MB, free: 35.38 MB / 318.1 MB Notification: Performance of Templates: time 0.02923/0.4512, allocations: 17.88 MB / 464.2 MB, free: 17.78 MB / 318.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)