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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 198.9 kB / 16.54 MB, free: 6.672 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.333/1.333, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04616/0.04616, allocations: 7.027 MB / 276.8 MB, free: 14.24 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.001792/0.001793, allocations: 83.69 kB / 336 MB, free: 26.97 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.0854, allocations: 48.08 MB / 384.1 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006407/0.09184, allocations: 4.682 MB / 388.8 MB, free: 6.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003118/0.09499, allocations: 1.917 MB / 390.7 MB, free: 4.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007223/0.09578, allocations: 19.94 kB / 390.7 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.09696, allocations: 337.9 kB / 391 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008988/0.09787, allocations: 246.1 kB / 391.3 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007864/0.09868, allocations: 343.7 kB / 391.6 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00282/0.1015, allocations: 2.629 MB / 394.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.1033, allocations: 1.548 MB / 395.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009294/0.1042, allocations: 0.8722 MB / 396.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000808/0.105, allocations: 0.926 MB / 397.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003269/0.1054, allocations: 328 kB / 397.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003499/0.1057, allocations: 332 kB / 398.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004309/0.1062, allocations: 0.5416 MB / 398.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.1072, allocations: 1.113 MB / 399.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002848/0.1101, allocations: 3.787 MB / 403.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1101, allocations: 0 / 403.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1101, allocations: 0 / 403.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.212e-05/0.1102, allocations: 0 / 403.7 MB, free: 7.09 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.004106/0.1143, allocations: 2.249 MB / 405.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1143, allocations: 12.03 kB / 405.9 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003097/0.1146, allocations: 212.4 kB / 406.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.1149, allocations: 186.7 kB / 406.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.1171, allocations: 1.71 MB / 408 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.034e-05/0.1172, allocations: 98.84 kB / 408.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.1174, allocations: 128.3 kB / 408.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002879/0.1203, allocations: 1.839 MB / 410.1 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.1203, allocations: 0 / 410.1 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.1204, allocations: 52 kB / 410.2 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.1205, allocations: 32 kB / 410.2 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002524/0.123, allocations: 1.524 MB / 411.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009425/0.1324, allocations: 7.129 MB / 418.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.1355, allocations: 2.977 MB / 421.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008662/0.1363, allocations: 0.5387 MB / 422.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.601e-05/0.1364, allocations: 8.562 kB / 422.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008431/0.1372, allocations: 0.555 MB / 422.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 2.145e-06/0.1373, allocations: 0 / 422.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.002257/0.1395, allocations: 1.251 MB / 424.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/0.1396, allocations: 162.8 kB / 424.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1356/0.2752, allocations: 1.974 MB / 426.3 MB, free: 44.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001804/0.2754, allocations: 40.03 kB / 426.3 MB, free: 44.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000882/0.2763, allocations: 0.7123 MB / 427.1 MB, free: 44.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/0.2766, allocations: 211.8 kB / 427.3 MB, free: 44.74 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003376/0.277, allocations: 150.3 kB / 427.4 MB, free: 44.72 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.436e-05/0.2771, allocations: 336.6 kB / 427.7 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007913/0.2779, allocations: 435.1 kB / 428.2 MB, free: 44.31 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008783/0.2788, allocations: 0.6529 MB / 428.8 MB, free: 43.88 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004042/0.2828, allocations: 1.96 MB / 430.8 MB, free: 42.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.2828, allocations: 12.14 kB / 430.8 MB, free: 42.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002283/0.2851, allocations: 1.296 MB / 432.1 MB, free: 42.35 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.2852, allocations: 37.38 kB / 432.1 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.2852, allocations: 5.906 kB / 432.1 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.089e-05/0.2852, allocations: 9.75 kB / 432.1 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008959/0.2861, allocations: 217.9 kB / 432.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.347e-05/0.2862, allocations: 18.84 kB / 432.4 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008753/0.2871, allocations: 141.4 kB / 432.5 MB, free: 42.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.459e-05/0.2871, allocations: 34.09 kB / 432.5 MB, free: 42.21 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.001201/0.2884, allocations: 0.7355 MB / 433.3 MB, free: 41.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003536/0.2887, allocations: 134.3 kB / 433.4 MB, free: 41.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.2906, allocations: 0.9967 MB / 434.4 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.657e-06/0.2906, allocations: 6 kB / 434.4 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.2906, allocations: 4.5 kB / 434.4 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.2906, allocations: 2.953 kB / 434.4 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/0.2963, allocations: 3.027 MB / 437.4 MB, free: 39.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.2963, allocations: 0 / 437.4 MB, free: 39.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000804/0.2971, allocations: 174.2 kB / 437.6 MB, free: 39.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.397e-05/0.2972, allocations: 5.844 kB / 437.6 MB, free: 39.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/0.2972, allocations: 28.05 kB / 437.6 MB, free: 39.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.2972, allocations: 2.75 kB / 437.6 MB, free: 39.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2973, allocations: 3.938 kB / 437.6 MB, free: 39.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/0.2994, allocations: 1.563 MB / 439.2 MB, free: 38.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/0.2999, allocations: 298 kB / 439.5 MB, free: 38.71 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003088/0.3003, allocations: 24.73 kB / 439.5 MB, free: 38.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006351/0.3009, allocations: 45.34 kB / 439.6 MB, free: 38.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001267/0.301, allocations: 56.64 kB / 439.6 MB, free: 38.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.341e-05/0.3011, allocations: 16.94 kB / 439.6 MB, free: 38.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002199/0.3033, allocations: 1.415 MB / 441.1 MB, free: 38.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3033, allocations: 1.188 kB / 441.1 MB, free: 38.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001014/0.3043, allocations: 295.9 kB / 441.3 MB, free: 38.03 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.00213/0.3065, allocations: 2.149 MB / 443.5 MB, free: 36.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00204/0.3085, allocations: 1.176 MB / 444.7 MB, free: 36.17 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3085, allocations: 384 / 444.7 MB, free: 36.17 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.3091, allocations: 423.7 kB / 445.1 MB, free: 35.96 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001387/0.3105, allocations: 335.4 kB / 445.4 MB, free: 35.8 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02031/0.3308, allocations: 18.17 MB / 463.6 MB, free: 17.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001108/0.3319, allocations: 1.693 MB / 465.3 MB, free: 16.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000872/0.3328, allocations: 357.3 kB / 465.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007437/0.3336, allocations: 0.5462 MB / 466.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3336, allocations: 0 / 466.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.057/0.3906, allocations: 34.88 MB / 0.4893 GB, free: 12.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.701/8.091, allocations: 4 kB / 0.4893 GB, free: 12.17 MB / 350.1 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 & python3 -m fmpy simulate --output-file ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 ElectricalEnergyStorage_ElectricalEnergyStorage_Examples_Impedance.fmu > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)