Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 175.8 kB / 15.43 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05828/0.05828, allocations: 7.041 MB / 23.22 MB, free: 4.289 MB / 18.57 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 225.7 MB / 251.2 MB, free: 6.875 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 87.81 kB / 303.8 MB, free: 4.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002904, allocations: 8 kB / 366.5 MB, free: 5.785 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2436, allocations: 51.88 MB / 418.3 MB, free: 48.58 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004186/0.2478, allocations: 4.062 MB / 422.4 MB, free: 45.67 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002582/0.2504, allocations: 1.637 MB / 424 MB, free: 44.47 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006472/0.2511, allocations: 20.72 kB / 424.1 MB, free: 44.46 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009601/0.2521, allocations: 290.8 kB / 424.3 MB, free: 44.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008449/0.2529, allocations: 209 kB / 424.5 MB, free: 44.21 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007037/0.2536, allocations: 319.4 kB / 424.9 MB, free: 43.96 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002659/0.2563, allocations: 2.363 MB / 427.2 MB, free: 42.76 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.2579, allocations: 1.413 MB / 428.6 MB, free: 42.04 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007139/0.2586, allocations: 0.5217 MB / 429.2 MB, free: 41.77 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005736/0.2592, allocations: 0.6512 MB / 429.8 MB, free: 41.41 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.2593, allocations: 88.62 kB / 429.9 MB, free: 41.41 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000208/0.2596, allocations: 88.5 kB / 430 MB, free: 41.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.2598, allocations: 275.9 kB / 430.3 MB, free: 41.23 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006771/0.2604, allocations: 0.8428 MB / 431.1 MB, free: 40.62 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002988/0.2634, allocations: 3.507 MB / 434.6 MB, free: 39.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.2635, allocations: 0 / 434.6 MB, free: 39.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2635, allocations: 0 / 434.6 MB, free: 39.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.715e-05/0.2635, allocations: 1.125 kB / 434.6 MB, free: 39.23 MB / 330.7 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.002981/0.2665, allocations: 1.872 MB / 436.5 MB, free: 37.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.2666, allocations: 13.66 kB / 436.5 MB, free: 37.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002833/0.2669, allocations: 185.6 kB / 436.7 MB, free: 37.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/0.2688, allocations: 1.703 MB / 438.4 MB, free: 36.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.831e-05/0.2689, allocations: 104.5 kB / 438.5 MB, free: 36.38 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.2691, allocations: 126.5 kB / 438.6 MB, free: 36.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.272, allocations: 1.829 MB / 440.4 MB, free: 35.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/0.272, allocations: 1.344 kB / 440.4 MB, free: 35.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.2721, allocations: 53.09 kB / 440.5 MB, free: 35.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.76e-05/0.2722, allocations: 30.19 kB / 440.5 MB, free: 35.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.2745, allocations: 1.516 MB / 442 MB, free: 34.29 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006975/0.2815, allocations: 7.165 MB / 449.2 MB, free: 27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.2839, allocations: 2.981 MB / 452.2 MB, free: 23.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007069/0.2846, allocations: 0.534 MB / 452.7 MB, free: 23.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.2847, allocations: 16.56 kB / 452.7 MB, free: 23.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00071/0.2854, allocations: 0.5588 MB / 453.3 MB, free: 22.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 2.013e-06/0.2854, allocations: 0 / 453.3 MB, free: 22.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=59): time 0.001746/0.2871, allocations: 1.259 MB / 454.5 MB, free: 21.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.2872, allocations: 162.8 kB / 454.7 MB, free: 21.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002238/0.2895, allocations: 1.964 MB / 456.7 MB, free: 19.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.2895, allocations: 45.64 kB / 456.7 MB, free: 18.98 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/0.29, allocations: 0.7082 MB / 457.4 MB, free: 18.26 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.2902, allocations: 213 kB / 457.6 MB, free: 18.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.2902, allocations: 16 kB / 457.6 MB, free: 18.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.295e-05/0.2903, allocations: 341.9 kB / 458 MB, free: 17.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006138/0.2909, allocations: 437.8 kB / 458.4 MB, free: 17.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006647/0.2916, allocations: 0.6516 MB / 459.1 MB, free: 16.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003212/0.2948, allocations: 2.006 MB / 461.1 MB, free: 14.42 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.666e-06/0.2949, allocations: 0 / 461.1 MB, free: 14.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001655/0.2965, allocations: 1.299 MB / 462.4 MB, free: 13.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.2966, allocations: 42.3 kB / 462.4 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2966, allocations: 4 kB / 462.4 MB, free: 13.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.2966, allocations: 12 kB / 462.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008212/0.2974, allocations: 231.6 kB / 462.6 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.2975, allocations: 15.92 kB / 462.7 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006752/0.2981, allocations: 138.8 kB / 462.8 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.998e-05/0.2982, allocations: 31.94 kB / 462.8 MB, free: 12.64 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[1].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[3].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.T_start,$PRE.pulseCurrent.signalSource.count,$whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,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.0008201/0.299, allocations: 0.7398 MB / 463.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.2992, allocations: 142.2 kB / 463.7 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.3005, allocations: 1.001 MB / 464.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3005, allocations: 4 kB / 464.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3005, allocations: 3.938 kB / 464.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.3006, allocations: 7.984 kB / 464.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003286/0.3038, allocations: 3.046 MB / 467.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3039, allocations: 4 kB / 467.8 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007319/0.3046, allocations: 179.8 kB / 467.9 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.3046, allocations: 4 kB / 467.9 MB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.363e-05/0.3047, allocations: 20 kB / 468 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3047, allocations: 3.984 kB / 468 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3047, allocations: 0 / 468 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.3064, allocations: 1.583 MB / 469.6 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002979/0.3068, allocations: 299.1 kB / 469.8 MB, free: 5.469 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.3069, allocations: 28 kB / 469.9 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005008/0.3074, allocations: 51.94 kB / 469.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.3076, allocations: 40.69 kB / 470 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.053e-05/0.3076, allocations: 20 kB / 470 MB, free: 5.332 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001581/0.3092, allocations: 1.406 MB / 471.4 MB, free: 3.926 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3092, allocations: 4 kB / 471.4 MB, free: 3.922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007268/0.3099, allocations: 291.2 kB / 471.7 MB, free: 3.637 MB / 330.7 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.0001386/0.3101, allocations: 140.1 kB / 471.8 MB, free: 3.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001261/0.3113, allocations: 0.9989 MB / 472.8 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3114, allocations: 0 / 472.8 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000523/0.3119, allocations: 432 kB / 473.2 MB, free: 2.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.313, allocations: 314.8 kB / 473.5 MB, free: 1.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.3174, allocations: 4.016 MB / 477.6 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/0.3186, allocations: 1.685 MB / 479.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009295/0.3196, allocations: 349.7 kB / 479.6 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.3198, allocations: 87.42 kB / 479.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3198, allocations: 0 / 479.7 MB, free: 11.56 MB / 346.7 MB Notification: Performance of Templates: time 0.02704/0.3469, allocations: 17.56 MB / 497.2 MB, free: 10.13 MB / 362.7 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile (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 & ./ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1)