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.004778/0.004778, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.00116/0.00116, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.425/1.425, allocations: 205.1 MB / 222.6 MB, free: 4.484 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05026/0.05026, allocations: 7.031 MB / 276.9 MB, free: 14.13 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.00233/0.00233, allocations: 64.23 kB / 384.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3468, allocations: 48.11 MB / 432.9 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005229/0.3521, allocations: 4.664 MB / 437.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002902/0.355, allocations: 1.923 MB / 439.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.3555, allocations: 19.84 kB / 439.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000864/0.3564, allocations: 339.2 kB / 439.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005633/0.357, allocations: 269.3 kB / 440.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.3576, allocations: 352.5 kB / 440.4 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002455/0.36, allocations: 2.648 MB / 443.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002232/0.3623, allocations: 1.532 MB / 444.6 MB, free: 276 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001863/0.3642, allocations: 0.8702 MB / 445.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001891/0.3661, allocations: 0.9282 MB / 446.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005624/0.3666, allocations: 328.9 kB / 446.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004948/0.3671, allocations: 331.7 kB / 447.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005199/0.3677, allocations: 0.5458 MB / 447.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001866/0.3695, allocations: 1.114 MB / 448.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004705/0.3743, allocations: 3.843 MB / 452.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.3743, allocations: 1.312 kB / 452.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3743, allocations: 3.938 kB / 452.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.032e-05/0.3744, allocations: 0 / 452.6 MB, free: 11.54 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.00549/0.3799, allocations: 2.3 MB / 454.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.38, allocations: 10.34 kB / 454.9 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004359/0.3804, allocations: 212.6 kB / 455.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004449/0.3809, allocations: 198.9 kB / 455.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002911/0.3838, allocations: 1.739 MB / 457 MB, free: 8.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.3839, allocations: 101.2 kB / 457.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.3842, allocations: 127 kB / 457.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003496/0.3877, allocations: 1.848 MB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.872e-05/0.3877, allocations: 2.719 kB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.3879, allocations: 51.19 kB / 459.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/0.3879, allocations: 35.55 kB / 459.2 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002828/0.3908, allocations: 1.512 MB / 460.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.4011, allocations: 7.107 MB / 467.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003206/0.4043, allocations: 2.977 MB / 470.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009227/0.4053, allocations: 0.5426 MB / 471.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.584e-05/0.4053, allocations: 8.562 kB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000868/0.4062, allocations: 0.5472 MB / 471.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.154e-06/0.4062, allocations: 0 / 471.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002274/0.4085, allocations: 1.263 MB / 473.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.4086, allocations: 162.8 kB / 473.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003294/0.4119, allocations: 1.98 MB / 475.3 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.4121, allocations: 37.7 kB / 475.3 MB, free: 7.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008334/0.4129, allocations: 0.7327 MB / 476 MB, free: 6.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002814/0.4132, allocations: 214.2 kB / 476.3 MB, free: 6.242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002933/0.4135, allocations: 154.6 kB / 476.4 MB, free: 6.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.4137, allocations: 341.9 kB / 476.7 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007223/0.4144, allocations: 433.8 kB / 477.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008976/0.4153, allocations: 0.6481 MB / 477.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004187/0.4195, allocations: 1.967 MB / 479.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.4195, allocations: 0 / 479.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002341/0.4219, allocations: 1.308 MB / 481.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.4219, allocations: 33.7 kB / 481.1 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.422, allocations: 7.984 kB / 481.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.422, allocations: 12 kB / 481.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009458/0.4229, allocations: 220.1 kB / 481.4 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.807e-05/0.423, allocations: 23.86 kB / 481.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000926/0.4239, allocations: 139 kB / 481.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-05/0.424, allocations: 31.98 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.001198/0.4252, allocations: 0.7366 MB / 482.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002492/0.4255, allocations: 143.1 kB / 482.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001747/0.4272, allocations: 0.9968 MB / 483.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4272, allocations: 11.98 kB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4272, allocations: 3.938 kB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4273, allocations: 0 / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004794/0.4321, allocations: 3.014 MB / 486.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.4321, allocations: 0 / 486.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008475/0.4329, allocations: 167.7 kB / 486.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.433, allocations: 8.031 kB / 486.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.179e-05/0.433, allocations: 27.98 kB / 486.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.433, allocations: 0 / 486.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/0.433, allocations: 4 kB / 486.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/0.4355, allocations: 1.569 MB / 488.2 MB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005425/0.4361, allocations: 315.9 kB / 488.5 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.4363, allocations: 24.03 kB / 488.6 MB, free: 9.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005684/0.4369, allocations: 51.94 kB / 488.6 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.437, allocations: 48.53 kB / 488.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.437, allocations: 19.94 kB / 488.7 MB, free: 9.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00209/0.4391, allocations: 1.41 MB / 490.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4391, allocations: 4 kB / 490.1 MB, free: 8.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009501/0.4401, allocations: 299.4 kB / 490.4 MB, free: 7.754 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.002677/0.4428, allocations: 2.162 MB / 492.5 MB, free: 5.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.4445, allocations: 0.9917 MB / 493.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.4445, allocations: 4.484 kB / 493.5 MB, free: 4.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006622/0.4452, allocations: 430.8 kB / 494 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.001466/0.4467, allocations: 317 kB / 494.3 MB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02677/0.4735, allocations: 16.46 MB / 0.4988 GB, free: 3.039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.475, allocations: 1.701 MB / 0.5004 GB, free: 1.309 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001166/0.4762, allocations: 349.7 kB / 0.5008 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000977/0.4772, allocations: 0.5423 MB / 0.5013 GB, free: 432 kB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4772, allocations: 0 / 0.5013 GB, free: 432 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07289/0.5501, allocations: 35.71 MB / 0.5362 GB, free: 12.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.85, allocations: 0 / 0.5362 GB, free: 12.59 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)