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.001494/0.001494, 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.00171/0.00171, allocations: 195.5 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.336/1.336, allocations: 205.1 MB / 222.4 MB, free: 4.629 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.3472/0.3472, allocations: 7.034 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.001461/0.001461, allocations: 72.12 kB / 336 MB, free: 26.98 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0659/0.06737, allocations: 48.1 MB / 384.1 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005661/0.07307, allocations: 4.666 MB / 388.8 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.07566, allocations: 1.921 MB / 390.7 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004091/0.07608, allocations: 19.94 kB / 390.7 MB, free: 4.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008707/0.07698, allocations: 337.9 kB / 391 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005884/0.07758, allocations: 254.1 kB / 391.3 MB, free: 3.559 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.07818, allocations: 347.7 kB / 391.6 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.08043, allocations: 2.62 MB / 394.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001602/0.08205, allocations: 1.54 MB / 395.8 MB, free: 15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008121/0.08287, allocations: 0.8722 MB / 396.7 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.08388, allocations: 0.926 MB / 397.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004516/0.08434, allocations: 331.9 kB / 397.9 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004926/0.08484, allocations: 332 kB / 398.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004523/0.0853, allocations: 0.5338 MB / 398.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.08653, allocations: 1.113 MB / 399.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002766/0.08931, allocations: 3.791 MB / 403.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.08932, allocations: 0 / 403.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08933, allocations: 0 / 403.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.954e-05/0.0894, allocations: 0 / 403.7 MB, free: 7.098 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.003743/0.09315, allocations: 2.253 MB / 405.9 MB, free: 4.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.0932, allocations: 11.97 kB / 405.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000304/0.09351, allocations: 220.4 kB / 406.2 MB, free: 4.543 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002696/0.09379, allocations: 186.7 kB / 406.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/0.09578, allocations: 1.699 MB / 408 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.842e-05/0.09587, allocations: 106.8 kB / 408.1 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.09605, allocations: 124.3 kB / 408.3 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.09869, allocations: 1.843 MB / 410.1 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.09873, allocations: 0 / 410.1 MB, free: 472 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/0.09885, allocations: 52 kB / 410.2 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.09888, allocations: 32 kB / 410.2 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002368/0.1013, allocations: 1.52 MB / 411.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008019/0.1093, allocations: 7.133 MB / 418.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/0.112, allocations: 2.981 MB / 421.8 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008344/0.1128, allocations: 0.5387 MB / 422.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.1129, allocations: 4.562 kB / 422.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008156/0.1137, allocations: 0.5511 MB / 422.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 3.697e-06/0.1137, allocations: 4 kB / 422.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.001998/0.1157, allocations: 1.255 MB / 424.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.183e-05/0.1158, allocations: 158.8 kB / 424.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1223/0.2382, allocations: 1.972 MB / 426.3 MB, free: 44.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.2383, allocations: 39.55 kB / 426.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006053/0.239, allocations: 0.7142 MB / 427.1 MB, free: 44.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.2391, allocations: 208.7 kB / 427.3 MB, free: 44.69 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.2394, allocations: 155.8 kB / 427.4 MB, free: 44.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.378e-05/0.2395, allocations: 335.6 kB / 427.7 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007078/0.2402, allocations: 436.6 kB / 428.2 MB, free: 44.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.241, allocations: 0.6525 MB / 428.8 MB, free: 43.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003629/0.2446, allocations: 1.958 MB / 430.8 MB, free: 42.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.2447, allocations: 9.703 kB / 430.8 MB, free: 42.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002028/0.2467, allocations: 1.297 MB / 432.1 MB, free: 42.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.2467, allocations: 36.53 kB / 432.1 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.2468, allocations: 6.125 kB / 432.1 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.2468, allocations: 9.906 kB / 432.1 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008634/0.2477, allocations: 220.3 kB / 432.3 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.639e-05/0.2477, allocations: 15.09 kB / 432.4 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006137/0.2483, allocations: 146.2 kB / 432.5 MB, free: 42.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.146e-05/0.2484, allocations: 28.5 kB / 432.5 MB, free: 42.16 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.0008528/0.2492, allocations: 0.7303 MB / 433.3 MB, free: 41.76 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.2494, allocations: 135.6 kB / 433.4 MB, free: 41.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.2509, allocations: 1 MB / 434.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.2509, allocations: 10.36 kB / 434.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2509, allocations: 3.375 kB / 434.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.251, allocations: 7.312 kB / 434.4 MB, free: 41.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003921/0.2549, allocations: 3.029 MB / 437.4 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2549, allocations: 0 / 437.4 MB, free: 39.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007693/0.2557, allocations: 171.7 kB / 437.6 MB, free: 39.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.2557, allocations: 2.344 kB / 437.6 MB, free: 39.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.317e-05/0.2557, allocations: 27.86 kB / 437.6 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.2558, allocations: 6.125 kB / 437.6 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.2558, allocations: 5.188 kB / 437.7 MB, free: 39.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.2577, allocations: 1.561 MB / 439.2 MB, free: 38.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.258, allocations: 301.9 kB / 439.5 MB, free: 38.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/0.2582, allocations: 23.33 kB / 439.5 MB, free: 38.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.2587, allocations: 46.34 kB / 439.6 MB, free: 38.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.2588, allocations: 51.05 kB / 439.6 MB, free: 38.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.373e-05/0.2588, allocations: 16.84 kB / 439.6 MB, free: 38.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001692/0.2605, allocations: 1.412 MB / 441.1 MB, free: 38.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2605, allocations: 4 kB / 441.1 MB, free: 38.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008129/0.2614, allocations: 297.1 kB / 441.3 MB, free: 37.98 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.002049/0.2634, allocations: 2.148 MB / 443.5 MB, free: 36.68 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001948/0.2654, allocations: 1.168 MB / 444.7 MB, free: 36.14 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.2654, allocations: 4 kB / 444.7 MB, free: 36.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005579/0.2659, allocations: 429.2 kB / 445.1 MB, free: 35.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.2672, allocations: 336.3 kB / 445.4 MB, free: 35.77 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01696/0.2841, allocations: 18.17 MB / 463.6 MB, free: 17.79 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007877/0.285, allocations: 1.697 MB / 465.3 MB, free: 16.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007626/0.2857, allocations: 355.3 kB / 465.6 MB, free: 15.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000622/0.2864, allocations: 0.5501 MB / 466.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2864, allocations: 0 / 466.2 MB, free: 15.16 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.752/2.038, allocations: 34.88 MB / 0.4893 GB, free: 12.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/14.72, allocations: 0 / 0.4893 GB, free: 12.15 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 & /home/hudson/saved_omc/OMSimulator/install/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)