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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00841/0.00841, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001409/0.001409, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.957/1.957, allocations: 205.1 MB / 222.6 MB, free: 4.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.06779/0.06779, allocations: 7.038 MB / 276.9 MB, free: 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.001907/0.001907, allocations: 71.89 kB / 385.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4317, allocations: 48.09 MB / 433.4 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006539/0.4383, allocations: 4.679 MB / 438.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003003/0.4413, allocations: 1.917 MB / 440 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003644/0.4417, allocations: 19.75 kB / 440 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000998/0.4427, allocations: 343 kB / 440.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005188/0.4433, allocations: 269 kB / 440.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.4439, allocations: 349.8 kB / 440.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002848/0.4467, allocations: 2.644 MB / 443.6 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.4486, allocations: 1.541 MB / 445.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.4499, allocations: 0.8753 MB / 446 MB, free: 80 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001299/0.4512, allocations: 0.925 MB / 446.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004989/0.4517, allocations: 332.3 kB / 447.2 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005242/0.4523, allocations: 331.8 kB / 447.6 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005873/0.4528, allocations: 0.5372 MB / 448.1 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.4543, allocations: 1.115 MB / 449.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004489/0.4588, allocations: 3.836 MB / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.228e-06/0.4588, allocations: 0 / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4588, allocations: 0 / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.3e-05/0.4589, allocations: 0.9375 kB / 453.1 MB, free: 11.78 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.005002/0.4639, allocations: 2.245 MB / 455.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.4639, allocations: 9.438 kB / 455.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003738/0.4643, allocations: 186.2 kB / 455.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/0.4671, allocations: 1.734 MB / 457.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.4672, allocations: 101.1 kB / 457.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002719/0.4675, allocations: 130.5 kB / 457.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.4715, allocations: 1.838 MB / 459.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.81e-05/0.4716, allocations: 5.281 kB / 459.3 MB, free: 7.406 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.4717, allocations: 51.47 kB / 459.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.647e-05/0.4718, allocations: 30.84 kB / 459.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003319/0.4751, allocations: 1.511 MB / 460.9 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.4854, allocations: 7.086 MB / 468 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003974/0.4894, allocations: 2.966 MB / 470.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.4906, allocations: 0.5465 MB / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-05/0.4907, allocations: 4.562 kB / 471.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.4917, allocations: 0.551 MB / 472 MB, free: 10.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.745e-06/0.4917, allocations: 4 kB / 472 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.00249/0.4942, allocations: 1.251 MB / 473.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.4943, allocations: 166.8 kB / 473.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002962/0.4973, allocations: 1.968 MB / 475.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.289e-05/0.4974, allocations: 41.7 kB / 475.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008902/0.4983, allocations: 0.7082 MB / 476.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/0.4986, allocations: 212.9 kB / 476.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002973/0.4989, allocations: 162.5 kB / 476.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001785/0.4991, allocations: 341.9 kB / 476.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007261/0.4998, allocations: 437.7 kB / 477.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009052/0.5007, allocations: 0.652 MB / 478 MB, free: 4.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003845/0.5046, allocations: 1.967 MB / 479.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.5046, allocations: 0 / 479.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002142/0.5067, allocations: 1.291 MB / 481.2 MB, free: 1.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.833e-05/0.5068, allocations: 45.62 kB / 481.3 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.5069, allocations: 4 kB / 481.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.878e-05/0.5069, allocations: 8 kB / 481.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009049/0.5078, allocations: 220.2 kB / 481.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.078e-05/0.5078, allocations: 15.94 kB / 481.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/0.5087, allocations: 134.8 kB / 481.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.16e-05/0.5087, allocations: 31.94 kB / 481.7 MB, free: 1.035 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.00113/0.5099, allocations: 0.7326 MB / 482.4 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.5101, allocations: 138.2 kB / 482.5 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.5117, allocations: 0.9969 MB / 483.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5118, allocations: 8 kB / 483.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.5118, allocations: 0 / 483.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.507e-06/0.5118, allocations: 3.984 kB / 483.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004242/0.516, allocations: 3.026 MB / 486.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5161, allocations: 0 / 486.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000793/0.5169, allocations: 171.8 kB / 486.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.085e-05/0.5169, allocations: 0 / 486.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.869e-05/0.5169, allocations: 23.98 kB / 486.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.517, allocations: 4 kB / 486.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.517, allocations: 0 / 486.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.5194, allocations: 1.576 MB / 488.3 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003979/0.5198, allocations: 299.1 kB / 488.6 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.52, allocations: 23.98 kB / 488.7 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005392/0.5206, allocations: 47.95 kB / 488.7 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.5207, allocations: 40.5 kB / 488.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.477e-05/0.5208, allocations: 16 kB / 488.8 MB, free: 9.801 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002395/0.5232, allocations: 1.422 MB / 490.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.41e-07/0.5232, allocations: 0 / 490.2 MB, free: 8.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001116/0.5243, allocations: 291.2 kB / 490.5 MB, free: 8.094 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.0002438/0.5245, allocations: 139.1 kB / 490.6 MB, free: 7.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.5262, allocations: 0.9912 MB / 491.6 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.5263, allocations: 0 / 491.6 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.5269, allocations: 427 kB / 492 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.5282, allocations: 329.7 kB / 492.3 MB, free: 6.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006107/0.5344, allocations: 3.397 MB / 495.7 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.536, allocations: 1.693 MB / 497.4 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009705/0.5369, allocations: 361.7 kB / 497.8 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003139/0.5373, allocations: 83.42 kB / 497.9 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5373, allocations: 0 / 497.9 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of Templates: time 0.0345/0.5718, allocations: 18.99 MB / 0.5047 GB, free: 13.58 MB / 398.1 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)