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.008918/0.008918, allocations: 101.5 kB / 15.73 MB, free: 5.555 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.002154/0.002154, allocations: 194.7 kB / 16.67 MB, free: 5.484 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.502/1.502, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05469/0.05469, allocations: 7.038 MB / 276.9 MB, free: 14.15 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.002371/0.002371, allocations: 75.89 kB / 384.8 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2753, allocations: 48.1 MB / 432.9 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005904/0.2812, allocations: 4.676 MB / 437.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.2848, allocations: 1.922 MB / 439.5 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000722/0.2856, allocations: 19.25 kB / 439.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009577/0.2866, allocations: 344.4 kB / 439.8 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005491/0.2871, allocations: 244.9 kB / 440.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.2877, allocations: 353.1 kB / 440.4 MB, free: 2.473 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002551/0.2903, allocations: 2.636 MB / 443.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.2918, allocations: 1.545 MB / 444.6 MB, free: 268 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.293, allocations: 0.8703 MB / 445.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.2943, allocations: 0.9297 MB / 446.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004262/0.2947, allocations: 327.1 kB / 446.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004487/0.2952, allocations: 332 kB / 447.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005702/0.2958, allocations: 0.5371 MB / 447.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.2973, allocations: 1.115 MB / 448.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004223/0.3015, allocations: 3.842 MB / 452.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3016, allocations: 1.188 kB / 452.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3016, allocations: 4 kB / 452.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.282e-05/0.3017, allocations: 3.984 kB / 452.6 MB, free: 11.52 MB / 334.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.00502/0.3067, allocations: 2.296 MB / 454.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3067, allocations: 13.91 kB / 454.9 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004003/0.3071, allocations: 208.8 kB / 455.1 MB, free: 9.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004313/0.3076, allocations: 198.6 kB / 455.3 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002857/0.3104, allocations: 1.739 MB / 457 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.3106, allocations: 105.7 kB / 457.1 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002254/0.3108, allocations: 127.6 kB / 457.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003409/0.3142, allocations: 1.836 MB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.689e-05/0.3143, allocations: 3.125 kB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001398/0.3144, allocations: 55.25 kB / 459.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.464e-05/0.3145, allocations: 32 kB / 459.2 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002874/0.3174, allocations: 1.519 MB / 460.7 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01095/0.3283, allocations: 7.104 MB / 467.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003494/0.3318, allocations: 2.965 MB / 470.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3329, allocations: 0.5426 MB / 471.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.153e-05/0.3329, allocations: 8.547 kB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009819/0.3339, allocations: 0.5589 MB / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.635e-06/0.3339, allocations: 0 / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002568/0.3365, allocations: 1.255 MB / 473.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.3367, allocations: 166.8 kB / 473.3 MB, free: 9.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003241/0.3399, allocations: 1.976 MB / 475.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.34, allocations: 41.69 kB / 475.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008412/0.3409, allocations: 0.7248 MB / 476 MB, free: 6.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002788/0.3412, allocations: 222.2 kB / 476.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003051/0.3415, allocations: 154.6 kB / 476.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.3417, allocations: 334 kB / 476.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/0.3425, allocations: 437.8 kB / 477.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.3435, allocations: 0.6559 MB / 477.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004328/0.3478, allocations: 1.955 MB / 479.7 MB, free: 2.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.3479, allocations: 7.938 kB / 479.8 MB, free: 2.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002465/0.3503, allocations: 1.3 MB / 481.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.3504, allocations: 41.69 kB / 481.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3504, allocations: 8 kB / 481.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.3505, allocations: 8.047 kB / 481.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009537/0.3514, allocations: 223.6 kB / 481.3 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/0.3515, allocations: 11.94 kB / 481.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008787/0.3523, allocations: 147 kB / 481.5 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.176e-05/0.3524, allocations: 28 kB / 481.5 MB, free: 0.7266 MB / 350.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.001275/0.3537, allocations: 0.7366 MB / 482.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/0.354, allocations: 147 kB / 482.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.3559, allocations: 1.001 MB / 483.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.356, allocations: 8 kB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.356, allocations: 7.938 kB / 483.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.356, allocations: 3.984 kB / 483.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004994/0.361, allocations: 3.014 MB / 486.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.361, allocations: 0 / 486.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008577/0.3619, allocations: 167.7 kB / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3619, allocations: 0 / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-05/0.362, allocations: 20 kB / 486.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.362, allocations: 4 kB / 486.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.362, allocations: 7.969 kB / 486.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.3647, allocations: 1.581 MB / 488.2 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005631/0.3653, allocations: 315.9 kB / 488.5 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.3655, allocations: 20 kB / 488.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005608/0.3661, allocations: 51.94 kB / 488.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.3662, allocations: 40.52 kB / 488.6 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.195e-05/0.3663, allocations: 23.92 kB / 488.6 MB, free: 9.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.3687, allocations: 1.414 MB / 490.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3687, allocations: 0 / 490.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001037/0.3697, allocations: 299.4 kB / 490.4 MB, free: 7.746 MB / 366.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.003115/0.3728, allocations: 2.15 MB / 492.5 MB, free: 5.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001835/0.3747, allocations: 0.9945 MB / 493.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.3747, allocations: 1.609 kB / 493.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000704/0.3754, allocations: 434.8 kB / 493.9 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.377, allocations: 340.9 kB / 494.3 MB, free: 3.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02812/0.4051, allocations: 16.45 MB / 0.4987 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001866/0.4071, allocations: 1.697 MB / 0.5004 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.4083, allocations: 353.7 kB / 0.5007 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00112/0.4094, allocations: 0.5462 MB / 0.5013 GB, free: 420 kB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4094, allocations: 0 / 0.5013 GB, free: 420 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07944/0.4889, allocations: 35.71 MB / 0.5361 GB, free: 12.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.33, allocations: 7.875 kB / 0.5361 GB, free: 12.58 MB / 430.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)