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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0008961/0.0008962, allocations: 181.2 kB / 16.12 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05787/0.05787, allocations: 7.04 MB / 23.91 MB, free: 4.316 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.554/1.554, allocations: 194.5 MB / 220.6 MB, free: 15.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001718/0.001718, allocations: 124.1 kB / 267.4 MB, free: 0.5703 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003948, allocations: 16 kB / 324 MB, free: 17.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09006/0.09048, allocations: 45.98 MB / 370 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2978/0.3884, allocations: 79.25 MB / 449.3 MB, free: 2.484 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/0.3887, allocations: 82.45 kB / 449.4 MB, free: 2.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07011/0.4588, allocations: 32.3 MB / 481.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4588, allocations: 0 / 481.7 MB, free: 4.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002175/0.459, allocations: 32 kB / 481.7 MB, free: 4.559 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.004504/0.4636, allocations: 1.829 MB / 483.5 MB, free: 2.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.4636, allocations: 8.031 kB / 483.5 MB, free: 2.656 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006118/0.4642, allocations: 182.7 kB / 483.7 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002957/0.4672, allocations: 1.525 MB / 485.2 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.4673, allocations: 94.72 kB / 485.3 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003128/0.4677, allocations: 128.4 kB / 485.4 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/0.4707, allocations: 1.461 MB / 486.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.261e-05/0.4708, allocations: 192 / 486.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/0.471, allocations: 51.94 kB / 487 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/0.471, allocations: 28 kB / 487 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002694/0.4737, allocations: 1.376 MB / 488.4 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0121/0.4858, allocations: 5.906 MB / 494.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003156/0.489, allocations: 2.974 MB / 497.2 MB, free: 4.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009199/0.49, allocations: 0.542 MB / 497.8 MB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/0.49, allocations: 8.562 kB / 497.8 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009653/0.491, allocations: 0.5627 MB / 498.4 MB, free: 3.199 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 4.559e-06/0.491, allocations: 4 kB / 498.4 MB, free: 3.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.002541/0.4936, allocations: 1.255 MB / 499.6 MB, free: 1.934 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.4937, allocations: 166.7 kB / 499.8 MB, free: 1.734 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.4973, allocations: 1.847 MB / 0.4899 GB, free: 15.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.981e-05/0.4974, allocations: 37.7 kB / 0.4899 GB, free: 15.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008026/0.4983, allocations: 0.6536 MB / 0.4905 GB, free: 15.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.4985, allocations: 216.9 kB / 0.4907 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.4986, allocations: 16 kB / 0.4908 GB, free: 14.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4987, allocations: 338 kB / 0.4911 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007589/0.4995, allocations: 405.1 kB / 0.4915 GB, free: 14.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008557/0.5004, allocations: 0.5427 MB / 0.492 GB, free: 13.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003879/0.5043, allocations: 1.85 MB / 0.4938 GB, free: 11.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.5043, allocations: 0 / 0.4938 GB, free: 11.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002177/0.5065, allocations: 1.166 MB / 0.4949 GB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.445e-05/0.5065, allocations: 37.7 kB / 0.495 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.5065, allocations: 0 / 0.495 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.5066, allocations: 8 kB / 0.495 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008859/0.5075, allocations: 216 kB / 0.4952 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.5075, allocations: 7.984 kB / 0.4952 GB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000827/0.5083, allocations: 130.9 kB / 0.4953 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.515e-05/0.5084, allocations: 23.98 kB / 0.4954 GB, free: 10.11 MB / 378.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: 11 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,$whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001272/0.5097, allocations: 0.678 MB / 0.496 GB, free: 9.426 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003493/0.51, allocations: 134.3 kB / 0.4961 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.5119, allocations: 0.9923 MB / 0.4971 GB, free: 8.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.5119, allocations: 7.938 kB / 0.4971 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5119, allocations: 0 / 0.4971 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.5119, allocations: 3.984 kB / 0.4971 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005066/0.517, allocations: 3.068 MB / 0.5001 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.517, allocations: 0 / 0.5001 GB, free: 5.121 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008055/0.5178, allocations: 179.7 kB / 0.5003 GB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.566e-05/0.5179, allocations: 7.969 kB / 0.5003 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-05/0.5179, allocations: 20 kB / 0.5003 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.518, allocations: 7.984 kB / 0.5003 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.518, allocations: 0 / 0.5003 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.5208, allocations: 1.583 MB / 0.5019 GB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006018/0.5214, allocations: 287.3 kB / 0.5021 GB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003063/0.5217, allocations: 28 kB / 0.5022 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006717/0.5224, allocations: 55.94 kB / 0.5022 GB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.5226, allocations: 44.44 kB / 0.5023 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.5226, allocations: 16 kB / 0.5023 GB, free: 2.867 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002496/0.5251, allocations: 1.33 MB / 0.5036 GB, free: 1.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5251, allocations: 0 / 0.5036 GB, free: 1.535 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001114/0.5263, allocations: 295.1 kB / 0.5039 GB, free: 1.246 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003768/0.5266, allocations: 221.9 kB / 0.5041 GB, free: 1.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.5283, allocations: 0.9443 MB / 0.505 GB, free: 68 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.5284, allocations: 0 / 0.505 GB, free: 68 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000721/0.5291, allocations: 427 kB / 0.5054 GB, free: 15.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001688/0.5308, allocations: 313.5 kB / 0.5057 GB, free: 15.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006285/0.5371, allocations: 3.715 MB / 0.5093 GB, free: 11.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.5388, allocations: 1.65 MB / 0.5109 GB, free: 9.91 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001189/0.54, allocations: 312.9 kB / 0.5112 GB, free: 9.602 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/0.5404, allocations: 83.42 kB / 0.5113 GB, free: 9.52 MB / 394.7 MB Notification: Performance of SimCode: time 2.745e-06/0.5404, allocations: 0 / 0.5113 GB, free: 9.52 MB / 394.7 MB Notification: Performance of Templates: time 0.03227/0.5727, allocations: 17.62 MB / 0.5285 GB, free: 7.867 MB / 410.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)