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.009243/0.009243, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001959/0.001959, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.363/1.363, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04885/0.04885, allocations: 7.038 MB / 276.9 MB, free: 14.14 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.001648/0.001648, allocations: 59.91 kB / 384.8 MB, free: 10.2 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2776, allocations: 48.11 MB / 432.9 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005264/0.2829, allocations: 4.675 MB / 437.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.2857, allocations: 1.935 MB / 439.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004523/0.2862, allocations: 15 kB / 439.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008412/0.2871, allocations: 343.5 kB / 439.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005228/0.2876, allocations: 245.6 kB / 440.1 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006233/0.2882, allocations: 345 kB / 440.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002443/0.2907, allocations: 2.642 MB / 443.1 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.2921, allocations: 1.538 MB / 444.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.2932, allocations: 0.8744 MB / 445.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009694/0.2941, allocations: 0.9257 MB / 446.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.2945, allocations: 328.4 kB / 446.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003834/0.2949, allocations: 331.4 kB / 447 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004587/0.2954, allocations: 0.5451 MB / 447.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001131/0.2965, allocations: 1.115 MB / 448.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003448/0.3, allocations: 3.846 MB / 452.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3, allocations: 0 / 452.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3, allocations: 0 / 452.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.849e-05/0.3, allocations: 0 / 452.6 MB, free: 11.39 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.004214/0.3042, allocations: 2.235 MB / 454.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.3043, allocations: 9.156 kB / 454.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003526/0.3047, allocations: 221.8 kB / 455 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003575/0.305, allocations: 190.1 kB / 455.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00236/0.3074, allocations: 1.73 MB / 456.9 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.3075, allocations: 105.1 kB / 457 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001909/0.3077, allocations: 123.2 kB / 457.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.3107, allocations: 1.84 MB / 459 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.3107, allocations: 1.344 kB / 459 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001298/0.3108, allocations: 53.62 kB / 459 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.3109, allocations: 29.38 kB / 459.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002643/0.3135, allocations: 1.52 MB / 460.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009269/0.3228, allocations: 7.084 MB / 467.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.3258, allocations: 2.973 MB / 470.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008456/0.3267, allocations: 0.5465 MB / 471.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.3267, allocations: 8.562 kB / 471.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000832/0.3275, allocations: 0.5472 MB / 471.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.345e-06/0.3276, allocations: 0 / 471.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002022/0.3296, allocations: 1.251 MB / 473 MB, free: 9.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.895e-05/0.3297, allocations: 166.8 kB / 473.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002627/0.3323, allocations: 1.972 MB / 475.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.574e-05/0.3324, allocations: 41.7 kB / 475.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007144/0.3331, allocations: 0.7198 MB / 475.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002554/0.3334, allocations: 209 kB / 476.1 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.3337, allocations: 154.6 kB / 476.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3338, allocations: 337.9 kB / 476.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007328/0.3346, allocations: 433.8 kB / 477 MB, free: 5.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008989/0.3355, allocations: 0.652 MB / 477.7 MB, free: 4.594 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/0.3395, allocations: 1.959 MB / 479.6 MB, free: 2.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.3395, allocations: 7.938 kB / 479.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002261/0.3418, allocations: 1.299 MB / 480.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.244e-05/0.3418, allocations: 33.7 kB / 481 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/0.3419, allocations: 8 kB / 481 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/0.3419, allocations: 8 kB / 481 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008597/0.3428, allocations: 224.1 kB / 481.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/0.3428, allocations: 15.92 kB / 481.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007741/0.3436, allocations: 134.7 kB / 481.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.515e-05/0.3437, allocations: 32 kB / 481.4 MB, free: 0.7578 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.001175/0.3448, allocations: 0.7404 MB / 482.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001975/0.3451, allocations: 146.4 kB / 482.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.3467, allocations: 0.9968 MB / 483.3 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3467, allocations: 8 kB / 483.3 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.333e-06/0.3467, allocations: 3.938 kB / 483.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.3467, allocations: 3.984 kB / 483.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004087/0.3508, allocations: 3.014 MB / 486.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3508, allocations: 0 / 486.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007585/0.3516, allocations: 175.8 kB / 486.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3516, allocations: 0 / 486.5 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.607e-05/0.3517, allocations: 23.98 kB / 486.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3517, allocations: 4 kB / 486.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3517, allocations: 0 / 486.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.3538, allocations: 1.572 MB / 488.1 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003989/0.3542, allocations: 299.1 kB / 488.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001773/0.3544, allocations: 23.98 kB / 488.4 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005042/0.3549, allocations: 47.95 kB / 488.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.355, allocations: 40.5 kB / 488.5 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.3551, allocations: 20.12 kB / 488.5 MB, free: 9.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001866/0.3569, allocations: 1.418 MB / 489.9 MB, free: 8.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.357, allocations: 7.938 kB / 489.9 MB, free: 8.082 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008405/0.3578, allocations: 295.2 kB / 490.2 MB, free: 7.793 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.00246/0.3603, allocations: 2.149 MB / 492.3 MB, free: 5.613 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.3618, allocations: 0.9882 MB / 493.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.3619, allocations: 4.109 kB / 493.3 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006092/0.3625, allocations: 434.8 kB / 493.8 MB, free: 4.184 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.3638, allocations: 328.9 kB / 494.1 MB, free: 3.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02316/0.3869, allocations: 16.39 MB / 0.4985 GB, free: 3.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/0.3882, allocations: 1.697 MB / 0.5002 GB, free: 1.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000925/0.3892, allocations: 353.7 kB / 0.5005 GB, free: 1.086 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007944/0.39, allocations: 0.5501 MB / 0.501 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of SimCode: time 8.52e-07/0.39, allocations: 0 / 0.501 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07048/0.4605, allocations: 35.88 MB / 0.5361 GB, free: 12.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/10.66, allocations: 0 / 0.5361 GB, free: 12.53 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 & /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)