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.004298/0.004298, allocations: 96.98 kB / 15.73 MB, free: 5.988 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.001216/0.001216, allocations: 188 kB / 16.67 MB, free: 5.918 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.299/1.299, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.3038/0.3038, 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.002008/0.002008, allocations: 67.89 kB / 384.8 MB, free: 10.18 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2095, allocations: 48.11 MB / 432.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004346/0.2139, allocations: 4.667 MB / 437.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.2157, allocations: 1.923 MB / 439.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002393/0.2159, allocations: 23.06 kB / 439.5 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006426/0.2166, allocations: 341 kB / 439.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003615/0.217, allocations: 247.6 kB / 440.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.2174, allocations: 350.6 kB / 440.4 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001904/0.2193, allocations: 2.634 MB / 443.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.2206, allocations: 1.542 MB / 444.6 MB, free: 264 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006911/0.2213, allocations: 0.87 MB / 445.5 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000936/0.2222, allocations: 0.9287 MB / 446.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000305/0.2225, allocations: 328.2 kB / 446.7 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003507/0.2229, allocations: 332.4 kB / 447.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004865/0.2234, allocations: 0.5396 MB / 447.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.2244, allocations: 1.116 MB / 448.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003297/0.2278, allocations: 3.84 MB / 452.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.2278, allocations: 1.219 kB / 452.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2278, allocations: 4 kB / 452.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.931e-05/0.2278, allocations: 0 / 452.6 MB, free: 11.53 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.003603/0.2314, allocations: 2.299 MB / 454.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.2314, allocations: 14.03 kB / 454.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003331/0.2318, allocations: 209.5 kB / 455.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002911/0.2321, allocations: 198.6 kB / 455.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002252/0.2343, allocations: 1.743 MB / 457 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.55e-05/0.2344, allocations: 100.8 kB / 457.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001878/0.2346, allocations: 127.4 kB / 457.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002793/0.2374, allocations: 1.841 MB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.046e-05/0.2375, allocations: 1.25 kB / 459.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.2376, allocations: 56.06 kB / 459.1 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.188e-05/0.2377, allocations: 31.12 kB / 459.2 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002471/0.2401, allocations: 1.513 MB / 460.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008881/0.249, allocations: 7.102 MB / 467.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003225/0.2523, allocations: 2.973 MB / 470.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008858/0.2532, allocations: 0.5426 MB / 471.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.2532, allocations: 8.547 kB / 471.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008699/0.2541, allocations: 0.555 MB / 471.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 1.783e-06/0.2541, allocations: 0 / 471.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002071/0.2562, allocations: 1.259 MB / 473.1 MB, free: 9.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.2563, allocations: 166.8 kB / 473.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002596/0.2589, allocations: 1.98 MB / 475.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.695e-05/0.259, allocations: 37.7 kB / 475.3 MB, free: 7.191 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006991/0.2597, allocations: 0.7249 MB / 476 MB, free: 6.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/0.2599, allocations: 222.2 kB / 476.2 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002688/0.2602, allocations: 146.6 kB / 476.4 MB, free: 6.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2603, allocations: 341.9 kB / 476.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/0.2611, allocations: 437.8 kB / 477.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009253/0.262, allocations: 0.6481 MB / 477.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003875/0.2659, allocations: 1.959 MB / 479.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.2659, allocations: 3.938 kB / 479.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002045/0.2679, allocations: 1.312 MB / 481.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.268, allocations: 37.73 kB / 481.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.268, allocations: 4 kB / 481.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.268, allocations: 12 kB / 481.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008616/0.2689, allocations: 215.6 kB / 481.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.2689, allocations: 19.92 kB / 481.3 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.2695, allocations: 143 kB / 481.5 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/0.2696, allocations: 32 kB / 481.5 MB, free: 0.7305 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.0009155/0.2705, allocations: 0.7444 MB / 482.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001861/0.2707, allocations: 143.1 kB / 482.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.2724, allocations: 1.005 MB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.2724, allocations: 4 kB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.2724, allocations: 3.938 kB / 483.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2725, allocations: 3.984 kB / 483.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004252/0.2767, allocations: 3.014 MB / 486.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2767, allocations: 0 / 486.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007922/0.2775, allocations: 167.7 kB / 486.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.2775, allocations: 4 kB / 486.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.2776, allocations: 23.98 kB / 486.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.2776, allocations: 0 / 486.6 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.2776, allocations: 8.031 kB / 486.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/0.2799, allocations: 1.569 MB / 488.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003822/0.2803, allocations: 315.9 kB / 488.5 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001686/0.2805, allocations: 27.98 kB / 488.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005068/0.281, allocations: 47.95 kB / 488.6 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.2811, allocations: 48.72 kB / 488.6 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/0.2812, allocations: 23.94 kB / 488.7 MB, free: 9.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.2831, allocations: 1.414 MB / 490.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2831, allocations: 0 / 490.1 MB, free: 8.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007216/0.2839, 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.002665/0.2865, allocations: 2.154 MB / 492.5 MB, free: 5.562 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.2881, allocations: 0.9906 MB / 493.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.2881, allocations: 1.609 kB / 493.5 MB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006557/0.2888, allocations: 426.9 kB / 493.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.2899, allocations: 336.8 kB / 494.2 MB, free: 3.809 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/0.3123, allocations: 16.45 MB / 0.4987 GB, free: 3.035 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00137/0.3137, allocations: 1.701 MB / 0.5004 GB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007989/0.3145, 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.0008296/0.3153, allocations: 0.5423 MB / 0.5013 GB, free: 424 kB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3153, allocations: 0 / 0.5013 GB, free: 424 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.444/2.759, allocations: 35.71 MB / 0.5361 GB, free: 12.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/16.37, allocations: 0 / 0.5361 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 & /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)