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.001051/0.001051, allocations: 182 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05213/0.05213, allocations: 7.033 MB / 20.3 MB, free: 4.398 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.364/1.364, allocations: 194.3 MB / 216.6 MB, free: 10.87 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.001622/0.001622, allocations: 114.5 kB / 263.1 MB, free: 13.39 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.837e-05, allocations: 4 kB / 317.1 MB, free: 7.379 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2388, allocations: 45.96 MB / 363.1 MB, free: 46.89 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09113/0.33, allocations: 79.11 MB / 442.2 MB, free: 8.375 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.3303, allocations: 75.95 kB / 442.2 MB, free: 8.301 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06498/0.3953, allocations: 32.28 MB / 474.5 MB, free: 8.133 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3953, allocations: 0 / 474.5 MB, free: 8.133 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001012/0.3954, allocations: 32 kB / 474.6 MB, free: 8.102 MB / 362.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.002548/0.398, allocations: 1.595 MB / 476.1 MB, free: 6.449 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.398, allocations: 12.03 kB / 476.2 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003183/0.3983, allocations: 207.7 kB / 476.4 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.3986, allocations: 181.8 kB / 476.5 MB, free: 6.043 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.4007, allocations: 1.463 MB / 478 MB, free: 4.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.484e-05/0.4008, allocations: 102.3 kB / 478.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.401, allocations: 127.8 kB / 478.2 MB, free: 4.297 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002329/0.4033, allocations: 1.422 MB / 479.6 MB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.4034, allocations: 0 / 479.6 MB, free: 2.848 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/0.4035, allocations: 51.94 kB / 479.7 MB, free: 2.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.4035, allocations: 31.95 kB / 479.7 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.4055, allocations: 1.31 MB / 481 MB, free: 1.449 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008746/0.4143, allocations: 5.917 MB / 487 MB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003229/0.4176, allocations: 2.935 MB / 489.9 MB, free: 8.086 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000905/0.4185, allocations: 0.5153 MB / 490.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.4185, allocations: 12.56 kB / 490.4 MB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009343/0.4195, allocations: 0.5392 MB / 491 MB, free: 6.984 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.326e-06/0.4195, allocations: 0 / 491 MB, free: 6.984 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.001644/0.4212, allocations: 0.8645 MB / 491.8 MB, free: 6.113 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.4213, allocations: 162.8 kB / 492 MB, free: 5.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002774/0.424, allocations: 1.678 MB / 493.7 MB, free: 4.223 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.085e-05/0.4241, allocations: 41.7 kB / 493.7 MB, free: 4.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007583/0.4249, allocations: 0.6575 MB / 494.4 MB, free: 3.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.4251, allocations: 209 kB / 494.6 MB, free: 3.305 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.4252, allocations: 15.94 kB / 494.6 MB, free: 3.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.4253, allocations: 333.9 kB / 494.9 MB, free: 2.957 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005939/0.4259, allocations: 389.4 kB / 495.3 MB, free: 2.578 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006272/0.4266, allocations: 0.5167 MB / 495.8 MB, free: 2.016 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006428/0.4272, allocations: 498.4 kB / 496.3 MB, free: 1.523 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4272, allocations: 0 / 496.3 MB, free: 1.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001614/0.4289, allocations: 1.124 MB / 497.4 MB, free: 400 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.4289, allocations: 37.7 kB / 497.4 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.4289, allocations: 4 kB / 497.5 MB, free: 352 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.429, allocations: 4 kB / 497.5 MB, free: 348 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008197/0.4298, allocations: 212 kB / 497.7 MB, free: 136 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.375e-05/0.4298, allocations: 4 kB / 497.7 MB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006572/0.4305, allocations: 134.8 kB / 497.8 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.4305, allocations: 24 kB / 497.8 MB, free: 15.97 MB / 394.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) 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 () * 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.0002133/0.4308, allocations: 157.2 kB / 498 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.4309, allocations: 130.3 kB / 498.1 MB, free: 15.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001489/0.4324, allocations: 0.9493 MB / 499.1 MB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.4324, allocations: 8 kB / 499.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4324, allocations: 0 / 499.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.4325, allocations: 3.984 kB / 499.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/0.4365, allocations: 3.014 MB / 0.4903 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4366, allocations: 0 / 0.4903 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007793/0.4374, allocations: 183.8 kB / 0.4905 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.4374, allocations: 7.953 kB / 0.4905 GB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.915e-05/0.4374, allocations: 27.92 kB / 0.4905 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4375, allocations: 4 kB / 0.4905 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4375, allocations: 0 / 0.4905 GB, free: 11.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.4394, allocations: 1.521 MB / 0.492 GB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004005/0.4398, allocations: 299.3 kB / 0.4923 GB, free: 9.535 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.4399, allocations: 23.98 kB / 0.4923 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005007/0.4404, allocations: 56 kB / 0.4924 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4406, allocations: 48.48 kB / 0.4924 GB, free: 9.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/0.4406, allocations: 19.98 kB / 0.4924 GB, free: 9.391 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00183/0.4425, allocations: 1.312 MB / 0.4937 GB, free: 8.074 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4425, allocations: 0 / 0.4937 GB, free: 8.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008113/0.4433, allocations: 295.1 kB / 0.494 GB, free: 7.785 MB / 394.7 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) * 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.002348/0.4456, allocations: 2.246 MB / 0.4962 GB, free: 5.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.447, allocations: 0.901 MB / 0.4971 GB, free: 4.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.447, allocations: 0 / 0.4971 GB, free: 4.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005522/0.4476, allocations: 407 kB / 0.4975 GB, free: 4.191 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.4488, allocations: 307.5 kB / 0.4978 GB, free: 3.895 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005543/0.4543, allocations: 3.257 MB / 0.5009 GB, free: 0.582 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1859/0.6403, allocations: 1.678 MB / 0.5026 GB, free: 108.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001312/0.6416, allocations: 316.2 kB / 0.5029 GB, free: 108.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.6425, allocations: 0.5195 MB / 0.5034 GB, free: 108.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.393e-06/0.6425, allocations: 0 / 0.5034 GB, free: 108.7 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05016/0.6927, allocations: 32.01 MB / 0.5346 GB, free: 103.2 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.6929, allocations: 157.3 kB / 0.5348 GB, free: 102.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.194, allocations: 0 / 0.5348 GB, free: 102.9 MB / 394.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)