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.00736/0.00736, allocations: 101.8 kB / 15.73 MB, free: 6 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.00165/0.00165, allocations: 197.3 kB / 16.68 MB, free: 5.926 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.4/1.4, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05727/0.05727, allocations: 7.034 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.001585/0.001585, allocations: 75.89 kB / 384.8 MB, free: 10.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2763, allocations: 48.09 MB / 432.9 MB, free: 7.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006763/0.2831, allocations: 4.681 MB / 437.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002805/0.2859, allocations: 1.92 MB / 439.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/0.2864, allocations: 19.34 kB / 439.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.2875, allocations: 343.4 kB / 439.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005008/0.288, allocations: 244.8 kB / 440.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005714/0.2886, allocations: 357.8 kB / 440.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002356/0.2909, allocations: 2.635 MB / 443.1 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.2926, allocations: 1.544 MB / 444.6 MB, free: 276 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.2937, allocations: 0.8699 MB / 445.5 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.2947, allocations: 0.9295 MB / 446.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003677/0.2951, allocations: 328.1 kB / 446.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003612/0.2954, allocations: 331.6 kB / 447.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005033/0.2959, allocations: 0.541 MB / 447.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.2971, allocations: 1.111 MB / 448.7 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003377/0.3005, allocations: 3.835 MB / 452.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3005, allocations: 1.062 kB / 452.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3005, allocations: 0 / 452.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.3006, allocations: 4 kB / 452.5 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.004229/0.3048, allocations: 2.235 MB / 454.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.3048, allocations: 9.844 kB / 454.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003315/0.3052, allocations: 225 kB / 455 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003271/0.3055, allocations: 186.6 kB / 455.2 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00256/0.3081, allocations: 1.737 MB / 456.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.67e-05/0.3082, allocations: 102.2 kB / 457 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001953/0.3084, allocations: 122.8 kB / 457.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002882/0.3113, allocations: 1.837 MB / 459 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.3113, allocations: 1.375 kB / 459 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/0.3114, allocations: 52.03 kB / 459 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/0.3115, allocations: 30.88 kB / 459.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.314, allocations: 1.521 MB / 460.6 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009019/0.323, allocations: 7.092 MB / 467.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00297/0.326, allocations: 2.969 MB / 470.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008204/0.3269, allocations: 0.5426 MB / 471.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.371e-05/0.3269, allocations: 8.562 kB / 471.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008266/0.3277, allocations: 0.5549 MB / 471.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 3.477e-06/0.3278, allocations: 0 / 471.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002149/0.3299, allocations: 1.247 MB / 473 MB, free: 9.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.33, allocations: 162.8 kB / 473.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00264/0.3327, allocations: 1.98 MB / 475.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.545e-05/0.3327, allocations: 41.7 kB / 475.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007214/0.3335, allocations: 0.7159 MB / 475.9 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002321/0.3337, allocations: 213 kB / 476.1 MB, free: 6.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.334, allocations: 150.6 kB / 476.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3341, allocations: 337.9 kB / 476.6 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006822/0.3348, allocations: 433.8 kB / 477 MB, free: 5.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008602/0.3357, allocations: 0.6559 MB / 477.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/0.3396, allocations: 1.955 MB / 479.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.3396, allocations: 7.922 kB / 479.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002064/0.3417, allocations: 1.292 MB / 480.9 MB, free: 1.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/0.3417, allocations: 37.64 kB / 481 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3417, allocations: 8.109 kB / 481 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.3418, allocations: 15.98 kB / 481 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008627/0.3426, allocations: 215.7 kB / 481.2 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/0.3427, allocations: 19.86 kB / 481.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000777/0.3435, allocations: 138.7 kB / 481.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.869e-05/0.3435, allocations: 32 kB / 481.4 MB, free: 0.875 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.001149/0.3447, allocations: 0.7326 MB / 482.1 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.3449, allocations: 138.2 kB / 482.2 MB, free: 0 / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/0.3465, allocations: 1.001 MB / 483.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.3465, allocations: 4 kB / 483.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.3465, allocations: 15.81 kB / 483.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3466, allocations: 3.984 kB / 483.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004318/0.3509, allocations: 3.014 MB / 486.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.3509, allocations: 0 / 486.3 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000771/0.3517, allocations: 163.8 kB / 486.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3517, allocations: 4 kB / 486.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/0.3518, allocations: 27.98 kB / 486.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.772e-06/0.3518, allocations: 4 kB / 486.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3518, allocations: 3.938 kB / 486.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.3539, allocations: 1.568 MB / 488 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004892/0.3544, allocations: 299.1 kB / 488.3 MB, free: 9.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/0.3546, allocations: 23.98 kB / 488.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005273/0.3552, allocations: 47.95 kB / 488.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.3553, allocations: 44.5 kB / 488.5 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.454e-05/0.3553, allocations: 19.94 kB / 488.5 MB, free: 9.633 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001993/0.3573, allocations: 1.414 MB / 489.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3574, allocations: 0 / 489.9 MB, free: 8.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009178/0.3583, allocations: 295.3 kB / 490.2 MB, free: 7.93 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.002571/0.3609, allocations: 2.153 MB / 492.3 MB, free: 5.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.3626, allocations: 0.9909 MB / 493.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3626, allocations: 7.922 kB / 493.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006434/0.3633, allocations: 428.4 kB / 493.7 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001413/0.3647, allocations: 332.9 kB / 494.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02622/0.3909, allocations: 16.39 MB / 0.4985 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/0.3926, allocations: 1.701 MB / 0.5002 GB, free: 1.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001001/0.3936, allocations: 357.7 kB / 0.5005 GB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008988/0.3945, allocations: 0.5501 MB / 0.501 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3946, allocations: 0 / 0.501 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06704/0.4616, allocations: 34.88 MB / 0.5351 GB, free: 13.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.09, allocations: 11.88 kB / 0.5351 GB, free: 13.63 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)