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.001598/0.001598, allocations: 109.8 kB / 16.41 MB, free: 6.496 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.001908/0.001909, allocations: 186.6 kB / 17.34 MB, free: 5.766 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.419/1.419, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.05989/0.05989, allocations: 7.034 MB / 277.6 MB, free: 4.973 MB / 222.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.001473/0.001473, allocations: 65.5 kB / 386 MB, free: 48.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1044, allocations: 48.12 MB / 434.1 MB, free: 9.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005972/0.1104, allocations: 4.667 MB / 438.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00314/0.1136, allocations: 1.928 MB / 440.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009207/0.1145, allocations: 16 kB / 440.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.1157, allocations: 345.8 kB / 441 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009613/0.1167, allocations: 246.2 kB / 441.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008126/0.1175, allocations: 347.7 kB / 441.6 MB, free: 1.863 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.1201, allocations: 2.652 MB / 444.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.122, allocations: 1.528 MB / 445.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.1231, allocations: 0.88 MB / 446.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009886/0.1241, allocations: 0.9298 MB / 447.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.1245, allocations: 328 kB / 447.9 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004089/0.1249, allocations: 332 kB / 448.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00044/0.1254, allocations: 0.5299 MB / 448.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001147/0.1265, allocations: 1.124 MB / 449.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003344/0.1299, allocations: 3.829 MB / 453.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1299, allocations: 0 / 453.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1299, allocations: 0 / 453.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.13, allocations: 0 / 453.7 MB, free: 5.668 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.004603/0.1346, allocations: 2.241 MB / 456 MB, free: 3.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.1347, allocations: 8.031 kB / 456 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003299/0.135, allocations: 186.7 kB / 456.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002364/0.1374, allocations: 1.73 MB / 457.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.58e-05/0.1375, allocations: 106.8 kB / 458 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.1377, allocations: 128.3 kB / 458.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003211/0.1409, allocations: 1.835 MB / 459.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/0.141, allocations: 0 / 459.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.1411, allocations: 56 kB / 460 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.1411, allocations: 32 kB / 460 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.1438, allocations: 1.516 MB / 461.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00982/0.1536, allocations: 7.078 MB / 468.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/0.1568, allocations: 2.981 MB / 471.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009661/0.1578, allocations: 0.5387 MB / 472.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/0.1579, allocations: 12.5 kB / 472.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009698/0.1588, allocations: 0.555 MB / 472.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.986e-06/0.1588, allocations: 0 / 472.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002549/0.1614, allocations: 1.255 MB / 474 MB, free: 0.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.1616, allocations: 158.8 kB / 474.1 MB, free: 444 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003079/0.1647, allocations: 1.98 MB / 476.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.104e-05/0.1648, allocations: 37.7 kB / 476.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007403/0.1655, allocations: 0.7043 MB / 476.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002381/0.1658, allocations: 212.9 kB / 477 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.1661, allocations: 158.5 kB / 477.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.1663, allocations: 337.9 kB / 477.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007332/0.167, allocations: 445.7 kB / 478 MB, free: 12.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008861/0.1679, allocations: 0.6554 MB / 478.6 MB, free: 11.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/0.1719, allocations: 1.951 MB / 480.6 MB, free: 9.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1719, allocations: 4 kB / 480.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002487/0.1744, allocations: 1.299 MB / 481.9 MB, free: 8.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.134e-05/0.1745, allocations: 37.7 kB / 481.9 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.1745, allocations: 4 kB / 481.9 MB, free: 8.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.954e-05/0.1746, allocations: 8 kB / 481.9 MB, free: 8.367 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009347/0.1755, allocations: 215.7 kB / 482.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.371e-05/0.1755, allocations: 12.16 kB / 482.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008442/0.1764, allocations: 146.7 kB / 482.3 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.805e-05/0.1765, allocations: 28 kB / 482.3 MB, free: 7.973 MB / 366.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.001373/0.1778, allocations: 0.7442 MB / 483.1 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003069/0.1782, allocations: 142.2 kB / 483.2 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.1801, allocations: 1.001 MB / 484.2 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.1801, allocations: 7.922 kB / 484.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.277e-06/0.1801, allocations: 0 / 484.2 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005005/0.1806, allocations: 299.1 kB / 484.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.1809, allocations: 23.94 kB / 484.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005911/0.1815, allocations: 51.94 kB / 484.6 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.1817, allocations: 48.53 kB / 484.6 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002396/0.1841, allocations: 1.162 MB / 485.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002603/0.1867, allocations: 1.791 MB / 487.6 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007613/0.1875, allocations: 476.2 kB / 488 MB, free: 2.184 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002524/0.19, allocations: 1.414 MB / 489.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of Backend: time 6.01e-07/0.19, allocations: 0 / 489.5 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001899/0.1919, allocations: 0.7288 MB / 490.2 MB, free: 24 kB / 366.1 MB Notification: Performance of SimCode: time 0.007135/0.1991, allocations: 3.777 MB / 494 MB, free: 12.19 MB / 382.1 MB Notification: Performance of Templates: time 0.0387/0.2378, allocations: 21.6 MB / 0.5035 GB, free: 6.543 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)