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.001746/0.001746, allocations: 185.2 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07324/0.07324, allocations: 7.032 MB / 23.77 MB, free: 4.297 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.382/1.382, allocations: 194.2 MB / 220.2 MB, free: 2.484 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001969/0.001969, allocations: 135.9 kB / 266 MB, free: 4.562 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 64.14 kB / 321.9 MB, free: 35.79 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09114, allocations: 45.06 MB / 366.9 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006497/0.09769, allocations: 4.683 MB / 371.6 MB, free: 2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003037/0.1008, allocations: 1.78 MB / 373.4 MB, free: 212 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006642/0.1015, allocations: 15.94 kB / 373.4 MB, free: 196 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.1026, allocations: 298.5 kB / 373.7 MB, free: 15.9 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008541/0.1035, allocations: 210.7 kB / 373.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.1043, allocations: 271.9 kB / 374.2 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002855/0.1072, allocations: 2.331 MB / 376.5 MB, free: 13.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.1089, allocations: 1.402 MB / 377.9 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007979/0.1097, allocations: 0.6067 MB / 378.5 MB, free: 11.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007883/0.1105, allocations: 0.7542 MB / 379.3 MB, free: 10.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.1107, allocations: 124 kB / 379.4 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.1109, allocations: 128 kB / 379.5 MB, free: 10.02 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.1112, allocations: 330.6 kB / 379.8 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000954/0.1122, allocations: 0.863 MB / 380.7 MB, free: 8.828 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002871/0.1151, allocations: 3.522 MB / 384.2 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1151, allocations: 0 / 384.2 MB, free: 5.297 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1151, allocations: 4 kB / 384.2 MB, free: 5.293 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.235e-05/0.1151, allocations: 0 / 384.2 MB, free: 5.293 MB / 282.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.00392/0.1191, allocations: 2.162 MB / 386.4 MB, free: 3.066 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.1191, allocations: 12.03 kB / 386.4 MB, free: 3.055 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003322/0.1195, allocations: 178.8 kB / 386.6 MB, free: 2.879 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002353/0.1218, allocations: 1.48 MB / 388 MB, free: 1.344 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/0.1219, allocations: 98.72 kB / 388.1 MB, free: 1.246 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002392/0.1222, allocations: 116.4 kB / 388.2 MB, free: 1.133 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003054/0.1252, allocations: 1.573 MB / 389.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.1253, allocations: 7.906 kB / 389.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001134/0.1254, allocations: 44 kB / 389.9 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.413e-05/0.1254, allocations: 28 kB / 389.9 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/0.1279, allocations: 1.469 MB / 391.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008491/0.1364, allocations: 5.84 MB / 397.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002963/0.1394, allocations: 2.966 MB / 400.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008455/0.1402, allocations: 0.5459 MB / 400.7 MB, free: 4.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.537e-05/0.1403, allocations: 4.562 kB / 400.7 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008825/0.1412, allocations: 0.5511 MB / 401.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of pre-optimization done (n=59): time 2.895e-06/0.1412, allocations: 0 / 401.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.002082/0.1433, allocations: 1.255 MB / 402.5 MB, free: 2.273 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.564e-05/0.1434, allocations: 158.8 kB / 402.7 MB, free: 2.082 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002825/0.1462, allocations: 1.862 MB / 404.5 MB, free: 208 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.882e-05/0.1463, allocations: 37.7 kB / 404.6 MB, free: 164 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008036/0.1471, allocations: 0.6577 MB / 405.2 MB, free: 15.49 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.1474, allocations: 212.9 kB / 405.5 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002845/0.1477, allocations: 126.2 kB / 405.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.1479, allocations: 338 kB / 405.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007688/0.1487, allocations: 405.1 kB / 406.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007866/0.1495, allocations: 0.5466 MB / 406.8 MB, free: 13.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003675/0.1532, allocations: 1.796 MB / 408.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.1532, allocations: 0 / 408.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001922/0.1551, allocations: 1.17 MB / 409.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/0.1552, allocations: 37.61 kB / 409.8 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/0.1552, allocations: 11.91 kB / 409.9 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-05/0.1553, allocations: 8 kB / 409.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008501/0.1561, allocations: 196 kB / 410.1 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.1561, allocations: 8 kB / 410.1 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006944/0.1568, allocations: 118.9 kB / 410.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.156e-05/0.1569, allocations: 24 kB / 410.2 MB, free: 10.39 MB / 314.7 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: 11 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001012/0.158, allocations: 0.6832 MB / 410.9 MB, free: 9.699 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/0.1582, allocations: 130.4 kB / 411 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.1599, allocations: 0.9845 MB / 412 MB, free: 8.574 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.16, allocations: 11.98 kB / 412 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.16, allocations: 0 / 412 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.16, allocations: 0 / 412 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004908/0.1649, allocations: 3.014 MB / 415 MB, free: 5.469 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.411e-06/0.1649, allocations: 0 / 415 MB, free: 5.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.1657, allocations: 179.7 kB / 415.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.1657, allocations: 0 / 415.2 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.06e-05/0.1658, allocations: 23.98 kB / 415.2 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-05/0.1658, allocations: 7.938 kB / 415.2 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1659, allocations: 0 / 415.2 MB, free: 5.262 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.21/0.3758, allocations: 7.687 MB / 422.9 MB, free: 53.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004379/0.3763, allocations: 289.5 kB / 423.2 MB, free: 53.04 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001796/0.3765, allocations: 27.05 kB / 423.2 MB, free: 53.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.3771, allocations: 49.83 kB / 423.3 MB, free: 53.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3772, allocations: 44.31 kB / 423.3 MB, free: 53.01 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.903e-05/0.3773, allocations: 18.05 kB / 423.3 MB, free: 53.01 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00237/0.3797, allocations: 1.335 MB / 424.7 MB, free: 52.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.3797, allocations: 0 / 424.7 MB, free: 52.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001453/0.3811, allocations: 411.2 kB / 425.1 MB, free: 52.41 MB / 314.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.0002101/0.3814, allocations: 138.7 kB / 425.2 MB, free: 52.31 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001786/0.3831, allocations: 0.9364 MB / 426.1 MB, free: 51.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3832, allocations: 1.172 kB / 426.1 MB, free: 51.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007008/0.3839, allocations: 429.2 kB / 426.6 MB, free: 51.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.3851, allocations: 296.9 kB / 426.9 MB, free: 51.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006453/0.3916, allocations: 4.263 MB / 431.1 MB, free: 49.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.3929, allocations: 1.673 MB / 432.8 MB, free: 48.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001021/0.3939, allocations: 329.5 kB / 433.1 MB, free: 48.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003042/0.3942, allocations: 78.84 kB / 433.2 MB, free: 48.23 MB / 314.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3942, allocations: 0 / 433.2 MB, free: 48.23 MB / 314.7 MB Notification: Performance of Templates: time 0.02982/0.4241, allocations: 19.5 MB / 452.7 MB, free: 33.71 MB / 314.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)