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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ElectricalEnergyStorage.Examples.Impedance,fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.006906/0.006906, allocations: 177.1 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06958/0.06958, allocations: 7.034 MB / 22.89 MB, free: 4.465 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.533/1.533, allocations: 194.5 MB / 219.6 MB, free: 15.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001773/0.001773, allocations: 120.6 kB / 266.4 MB, free: 0.6836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003713/0.0003714, allocations: 11.98 kB / 322.9 MB, free: 17.33 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09672, allocations: 45.98 MB / 368.9 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3378/0.4346, allocations: 79.19 MB / 448.1 MB, free: 2.484 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.435, allocations: 79.16 kB / 448.2 MB, free: 2.445 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07264/0.5076, allocations: 32.22 MB / 480.4 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.5077, allocations: 0 / 480.4 MB, free: 5.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001962/0.5079, allocations: 35.98 kB / 480.4 MB, free: 4.977 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.005066/0.513, allocations: 1.856 MB / 482.3 MB, free: 3.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.362e-05/0.513, allocations: 8.031 kB / 482.3 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007383/0.5138, allocations: 203.8 kB / 482.5 MB, free: 2.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000639/0.5144, allocations: 181.8 kB / 482.7 MB, free: 2.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/0.518, allocations: 1.481 MB / 484.2 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.5182, allocations: 98.34 kB / 484.2 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004293/0.5186, allocations: 123.9 kB / 484.4 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/0.5224, allocations: 1.457 MB / 485.8 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.5224, allocations: 0 / 485.8 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.5225, allocations: 52 kB / 485.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.791e-05/0.5226, allocations: 31.95 kB / 485.9 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002579/0.5252, allocations: 1.372 MB / 487.3 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009432/0.5346, allocations: 5.917 MB / 493.2 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002961/0.5376, allocations: 2.978 MB / 496.2 MB, free: 4.551 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.5377, allocations: 4.562 kB / 496.2 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000893/0.5386, allocations: 0.5704 MB / 496.7 MB, free: 3.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 2.875e-06/0.5386, allocations: 4 kB / 496.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.00235/0.541, allocations: 1.263 MB / 498 MB, free: 2.676 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.5411, allocations: 174.8 kB / 498.2 MB, free: 2.469 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.5439, allocations: 1.687 MB / 499.9 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.5441, allocations: 37.7 kB / 499.9 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006957/0.5448, allocations: 0.6614 MB / 0.4888 GB, free: 60 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002374/0.545, allocations: 205.2 kB / 0.489 GB, free: 15.85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/0.5451, allocations: 16 kB / 0.489 GB, free: 15.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5452, allocations: 338.3 kB / 0.4894 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007107/0.5459, allocations: 417.1 kB / 0.4898 GB, free: 15.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007692/0.5467, allocations: 0.5466 MB / 0.4903 GB, free: 14.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008298/0.5475, allocations: 0.5247 MB / 0.4908 GB, free: 13.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.5476, allocations: 0 / 0.4908 GB, free: 13.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002241/0.5498, allocations: 1.174 MB / 0.492 GB, free: 12.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.278e-05/0.5499, allocations: 33.7 kB / 0.492 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.5499, allocations: 0 / 0.492 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.5499, allocations: 8 kB / 0.492 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009014/0.5508, allocations: 215.9 kB / 0.4922 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.5509, allocations: 4 kB / 0.4922 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007681/0.5516, allocations: 130.8 kB / 0.4923 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.906e-05/0.5517, allocations: 24 kB / 0.4924 GB, free: 12.37 MB / 378.7 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: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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.001339/0.553, allocations: 0.6781 MB / 0.493 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/0.5533, allocations: 134.3 kB / 0.4932 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.555, allocations: 1.012 MB / 0.4941 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.5551, allocations: 4 kB / 0.4941 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5551, allocations: 0 / 0.4941 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.5551, allocations: 8.016 kB / 0.4942 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004747/0.5598, allocations: 3.032 MB / 0.4971 GB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.5599, allocations: 0 / 0.4971 GB, free: 7.414 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008449/0.5607, allocations: 179.8 kB / 0.4973 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.219e-05/0.5608, allocations: 7.938 kB / 0.4973 GB, free: 7.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.348e-05/0.5608, allocations: 27.94 kB / 0.4973 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.5608, allocations: 0 / 0.4973 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.5608, allocations: 0 / 0.4973 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.5632, allocations: 1.589 MB / 0.4989 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004658/0.5636, allocations: 291.2 kB / 0.4991 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.5638, allocations: 23.98 kB / 0.4992 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000529/0.5644, allocations: 59.89 kB / 0.4992 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.5645, allocations: 44.5 kB / 0.4993 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.5645, allocations: 16 kB / 0.4993 GB, free: 5.145 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002102/0.5666, allocations: 1.33 MB / 0.5006 GB, free: 3.812 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5667, allocations: 4 kB / 0.5006 GB, free: 3.809 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00108/0.5677, allocations: 291.2 kB / 0.5009 GB, free: 3.523 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.002799/0.5706, allocations: 2.244 MB / 0.5031 GB, free: 1.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.5722, allocations: 0.9556 MB / 0.504 GB, free: 288 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5722, allocations: 0 / 0.504 GB, free: 288 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006516/0.5729, allocations: 439.5 kB / 0.5044 GB, free: 15.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.5743, allocations: 301.3 kB / 0.5047 GB, free: 15.56 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02153/0.5958, allocations: 12.73 MB / 0.5171 GB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.5975, allocations: 1.685 MB / 0.5188 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001131/0.5986, allocations: 316.9 kB / 0.5191 GB, free: 440 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000839/0.5995, allocations: 0.5189 MB / 0.5196 GB, free: 15.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5995, allocations: 0 / 0.5196 GB, free: 15.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2372/0.8367, allocations: 32.44 MB / 0.5513 GB, free: 120.3 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001539/0.8369, allocations: 188.3 kB / 0.5514 GB, free: 120 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.817/3.654, allocations: 0 / 0.5514 GB, free: 120 MB / 410.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)