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.00113/0.00113, allocations: 112 kB / 16.37 MB, free: 5.539 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.001172/0.001173, allocations: 191.9 kB / 17.3 MB, free: 5.18 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.301/1.301, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04744/0.04744, allocations: 7.041 MB / 277.6 MB, free: 4.977 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.001483/0.001483, allocations: 63.91 kB / 337.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1997, allocations: 48.08 MB / 385.4 MB, free: 52.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.00503/0.2048, allocations: 4.677 MB / 390.1 MB, free: 49.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.2074, allocations: 1.931 MB / 392 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003352/0.2078, allocations: 15.59 kB / 392.1 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007778/0.2086, allocations: 343.2 kB / 392.4 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004419/0.209, allocations: 243.8 kB / 392.6 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005287/0.2096, allocations: 350.5 kB / 393 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002146/0.2117, allocations: 2.637 MB / 395.6 MB, free: 45.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.2133, allocations: 1.544 MB / 397.1 MB, free: 44.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009986/0.2143, allocations: 0.8767 MB / 398 MB, free: 44.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009776/0.2153, allocations: 0.9214 MB / 398.9 MB, free: 43.84 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003604/0.2157, allocations: 329 kB / 399.3 MB, free: 43.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003915/0.2161, allocations: 331.3 kB / 399.6 MB, free: 43.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.2165, allocations: 0.5365 MB / 400.1 MB, free: 43.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009574/0.2174, allocations: 1.119 MB / 401.2 MB, free: 42.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002592/0.22, allocations: 3.84 MB / 405.1 MB, free: 39.95 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.22, allocations: 1.438 kB / 405.1 MB, free: 39.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2201, allocations: 0 / 405.1 MB, free: 39.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.943e-05/0.2201, allocations: 4 kB / 405.1 MB, free: 39.94 MB / 318.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.003856/0.224, allocations: 2.239 MB / 407.3 MB, free: 38.29 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.224, allocations: 9.344 kB / 407.3 MB, free: 38.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003164/0.2243, allocations: 194.4 kB / 407.5 MB, free: 38.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002308/0.2267, allocations: 1.725 MB / 409.3 MB, free: 36.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.2267, allocations: 101.1 kB / 409.4 MB, free: 36.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.2269, allocations: 127.5 kB / 409.5 MB, free: 36.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.2295, allocations: 1.84 MB / 411.3 MB, free: 35.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.2296, allocations: 0 / 411.3 MB, free: 35.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.2297, allocations: 48 kB / 411.4 MB, free: 35.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.755e-05/0.2297, allocations: 32 kB / 411.4 MB, free: 35.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002138/0.2319, allocations: 1.52 MB / 412.9 MB, free: 33.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007701/0.2396, allocations: 7.075 MB / 420 MB, free: 26.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.2419, allocations: 2.973 MB / 423 MB, free: 22.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007415/0.2426, allocations: 0.5426 MB / 423.5 MB, free: 22.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.2e-05/0.2427, allocations: 12.55 kB / 423.5 MB, free: 22.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006902/0.2434, allocations: 0.5472 MB / 424.1 MB, free: 21.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.314e-06/0.2434, allocations: 0 / 424.1 MB, free: 21.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.001822/0.2452, allocations: 1.258 MB / 425.3 MB, free: 20.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.2453, allocations: 166.8 kB / 425.5 MB, free: 20.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/0.2474, allocations: 1.972 MB / 427.5 MB, free: 18.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.182e-05/0.2475, allocations: 37.7 kB / 427.5 MB, free: 18.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004916/0.248, allocations: 0.7043 MB / 428.2 MB, free: 17.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.2481, allocations: 212.9 kB / 428.4 MB, free: 17.43 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002313/0.2484, allocations: 154.6 kB / 428.6 MB, free: 17.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.2484, allocations: 341.9 kB / 428.9 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005975/0.249, allocations: 437.8 kB / 429.3 MB, free: 16.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/0.2497, allocations: 0.6537 MB / 430 MB, free: 15.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/0.253, allocations: 1.955 MB / 431.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.253, allocations: 4 kB / 431.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001812/0.2548, allocations: 1.295 MB / 433.2 MB, free: 12.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.2549, allocations: 40.98 kB / 433.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.2549, allocations: 15.92 kB / 433.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.2549, allocations: 8.047 kB / 433.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/0.2558, allocations: 219.6 kB / 433.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.2558, allocations: 8.281 kB / 433.5 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007937/0.2566, allocations: 138.7 kB / 433.6 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.765e-05/0.2567, allocations: 39.92 kB / 433.7 MB, free: 11.94 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.0008972/0.2576, allocations: 0.7368 MB / 434.4 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001904/0.2578, allocations: 134.3 kB / 434.6 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.2593, allocations: 0.998 MB / 435.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2593, allocations: 8 kB / 435.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2593, allocations: 0 / 435.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.2593, allocations: 3.984 kB / 435.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003837/0.2632, allocations: 3.018 MB / 438.6 MB, free: 6.945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/0.2632, allocations: 4 kB / 438.6 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007595/0.2639, allocations: 167.7 kB / 438.8 MB, free: 6.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.264, allocations: 4 kB / 438.8 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/0.264, allocations: 31.95 kB / 438.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.08e-06/0.264, allocations: 4 kB / 438.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.264, allocations: 0 / 438.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.2659, allocations: 1.565 MB / 440.4 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.2663, allocations: 299.1 kB / 440.6 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.2666, allocations: 27.98 kB / 440.7 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.2672, allocations: 47.95 kB / 440.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.2673, allocations: 44.53 kB / 440.8 MB, free: 4.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.103e-05/0.2674, allocations: 16 kB / 440.8 MB, free: 4.707 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001771/0.2692, allocations: 1.414 MB / 442.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2692, allocations: 192 / 442.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000875/0.27, allocations: 299.2 kB / 442.5 MB, free: 3 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.0001409/0.2702, allocations: 143 kB / 442.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.2716, allocations: 0.996 MB / 443.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2716, allocations: 0 / 443.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005339/0.2721, allocations: 423 kB / 444 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.2734, allocations: 319 kB / 444.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/0.2784, allocations: 3.395 MB / 447.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.2799, allocations: 1.7 MB / 449.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001018/0.2809, allocations: 353.7 kB / 449.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.2813, allocations: 79.44 kB / 449.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2813, allocations: 0 / 449.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Templates: time 0.03086/0.3121, allocations: 18.62 MB / 468.5 MB, free: 8.934 MB / 350.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 -s gbode -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)