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.00164/0.00164, allocations: 108.7 kB / 15.99 MB, free: 6.355 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.001605/0.001605, allocations: 191.7 kB / 16.91 MB, free: 6.191 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.355/1.355, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05113/0.05113, allocations: 7.038 MB / 277.1 MB, free: 14.4 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.001308/0.001308, allocations: 63.91 kB / 336 MB, free: 27.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1079, allocations: 48.11 MB / 384.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006825/0.1148, allocations: 4.685 MB / 388.8 MB, free: 6.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003261/0.1181, allocations: 1.866 MB / 390.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004474/0.1186, allocations: 19.94 kB / 390.7 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009808/0.1196, allocations: 294.5 kB / 391 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005677/0.1202, allocations: 210.7 kB / 391.2 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006808/0.1209, allocations: 323.8 kB / 391.5 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002817/0.1237, allocations: 2.639 MB / 394.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001982/0.1257, allocations: 1.54 MB / 395.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.1269, allocations: 0.8683 MB / 396.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.128, allocations: 0.9299 MB / 397.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004348/0.1284, allocations: 331.9 kB / 397.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004371/0.1289, allocations: 332 kB / 398.2 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005525/0.1295, allocations: 0.5338 MB / 398.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.1307, allocations: 1.117 MB / 399.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002838/0.1336, allocations: 3.317 MB / 403.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1336, allocations: 0 / 403.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.1336, allocations: 0 / 403.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.625e-05/0.1337, allocations: 4 kB / 403.1 MB, free: 8.148 MB / 302.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.004937/0.1386, allocations: 2.249 MB / 405.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.1387, allocations: 8.031 kB / 405.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003434/0.139, allocations: 194.7 kB / 405.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.1414, allocations: 1.703 MB / 407.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1415, allocations: 98.83 kB / 407.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002196/0.1417, allocations: 128.4 kB / 407.5 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00337/0.1451, allocations: 1.831 MB / 409.3 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.599e-05/0.1452, allocations: 0 / 409.3 MB, free: 1.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001412/0.1453, allocations: 52 kB / 409.4 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.539e-05/0.1454, allocations: 32 kB / 409.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.1482, allocations: 1.512 MB / 410.9 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01076/0.1589, allocations: 7.129 MB / 418 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.1621, allocations: 2.973 MB / 421 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008811/0.163, allocations: 0.5348 MB / 421.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.59e-05/0.1631, allocations: 12.48 kB / 421.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009007/0.164, allocations: 0.555 MB / 422.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 4.348e-06/0.164, allocations: 0 / 422.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.00262/0.1666, allocations: 1.258 MB / 423.4 MB, free: 3.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1667, allocations: 166.8 kB / 423.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00304/0.1698, allocations: 1.969 MB / 425.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.332e-05/0.1699, allocations: 37.7 kB / 425.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007804/0.1707, allocations: 0.716 MB / 426.3 MB, free: 132 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2324/0.4031, allocations: 206.2 kB / 426.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004229/0.4035, allocations: 153.5 kB / 426.6 MB, free: 45.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.4037, allocations: 341 kB / 426.9 MB, free: 45.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009343/0.4046, allocations: 435.9 kB / 427.4 MB, free: 45.03 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.4057, allocations: 0.6505 MB / 428 MB, free: 44.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004565/0.4103, allocations: 1.968 MB / 430 MB, free: 44.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.4103, allocations: 1.281 kB / 430 MB, free: 44.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002637/0.413, allocations: 1.291 MB / 431.3 MB, free: 43.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.413, allocations: 34.97 kB / 431.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.4131, allocations: 5.469 kB / 431.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.048e-05/0.4131, allocations: 10.88 kB / 431.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009596/0.4141, allocations: 223.5 kB / 431.6 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.4141, allocations: 14.59 kB / 431.6 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009744/0.4151, allocations: 139.8 kB / 431.7 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.396e-05/0.4152, allocations: 32.73 kB / 431.7 MB, free: 43.57 MB / 318.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.001343/0.4165, allocations: 0.7355 MB / 432.5 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.4168, allocations: 138.2 kB / 432.6 MB, free: 43.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.4185, allocations: 0.991 MB / 433.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.4185, allocations: 6.156 kB / 433.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.4186, allocations: 4.547 kB / 433.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.4186, allocations: 5.109 kB / 433.6 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004796/0.4234, allocations: 3.024 MB / 436.6 MB, free: 41.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4234, allocations: 0.625 kB / 436.6 MB, free: 41.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008664/0.4243, allocations: 166.4 kB / 436.8 MB, free: 41.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.017e-05/0.4243, allocations: 2.719 kB / 436.8 MB, free: 41.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.946e-05/0.4244, allocations: 27.83 kB / 436.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.4244, allocations: 6.031 kB / 436.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4244, allocations: 1.156 kB / 436.8 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.4268, allocations: 1.573 MB / 438.4 MB, free: 40.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004236/0.4272, allocations: 299.3 kB / 438.7 MB, free: 40.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/0.4274, allocations: 23.92 kB / 438.7 MB, free: 40.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.428, allocations: 49.31 kB / 438.8 MB, free: 40.14 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.4281, allocations: 54.48 kB / 438.8 MB, free: 40.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.162e-05/0.4282, allocations: 16.06 kB / 438.8 MB, free: 40.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002146/0.4303, allocations: 1.415 MB / 440.3 MB, free: 39.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4304, allocations: 0 / 440.3 MB, free: 39.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001063/0.4314, allocations: 298.7 kB / 440.6 MB, free: 39.47 MB / 318.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.0001997/0.4316, allocations: 134.4 kB / 440.7 MB, free: 39.37 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.4337, allocations: 1.172 MB / 441.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4337, allocations: 1.5 kB / 441.9 MB, free: 38.93 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005149/0.4342, allocations: 419.9 kB / 442.3 MB, free: 38.78 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/0.4355, allocations: 329.5 kB / 442.6 MB, free: 38.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005194/0.4407, allocations: 3.865 MB / 446.5 MB, free: 36.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008917/0.4416, allocations: 1.664 MB / 448.1 MB, free: 34.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000393/0.442, allocations: 87.42 kB / 448.2 MB, free: 34.67 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.442, allocations: 0 / 448.2 MB, free: 34.67 MB / 318.1 MB Notification: Performance of Templates: time 0.02934/0.4714, allocations: 23.47 MB / 471.7 MB, free: 11.16 MB / 318.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)