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.001126/0.001126, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001153/0.001154, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.278/1.278, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04504/0.04504, allocations: 7.034 MB / 277.6 MB, free: 4.965 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.001475/0.001475, allocations: 74.05 kB / 386 MB, free: 48.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07242/0.07391, allocations: 48.12 MB / 434.1 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004383/0.07832, allocations: 4.664 MB / 438.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.08064, allocations: 1.925 MB / 440.7 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003318/0.08101, allocations: 19.94 kB / 440.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000687/0.08171, allocations: 337.9 kB / 441 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003647/0.08209, allocations: 270.1 kB / 441.3 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004272/0.08252, allocations: 347.7 kB / 441.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001807/0.08434, allocations: 2.646 MB / 444.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.08609, allocations: 1.536 MB / 445.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008855/0.08699, allocations: 0.88 MB / 446.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008654/0.08787, allocations: 0.9298 MB / 447.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.08822, allocations: 328 kB / 447.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003872/0.08861, allocations: 332 kB / 448.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.08905, allocations: 0.5338 MB / 448.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.09007, allocations: 1.117 MB / 449.9 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003182/0.09326, allocations: 3.852 MB / 453.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09328, allocations: 0 / 453.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09329, allocations: 0 / 453.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.09332, allocations: 0 / 453.8 MB, free: 5.613 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.003691/0.09702, allocations: 2.302 MB / 456.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.09707, allocations: 8.031 kB / 456.1 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002873/0.09736, allocations: 195.7 kB / 456.3 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002199/0.09956, allocations: 1.735 MB / 458 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.09968, allocations: 98.83 kB / 458.1 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/0.09989, allocations: 128.3 kB / 458.2 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/0.1027, allocations: 1.835 MB / 460 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.1028, allocations: 4 kB / 460.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.1029, allocations: 52 kB / 460.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.1029, allocations: 32 kB / 460.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.1054, allocations: 1.516 MB / 461.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008853/0.1143, allocations: 7.1 MB / 468.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00303/0.1173, allocations: 2.973 MB / 471.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008688/0.1182, allocations: 0.5387 MB / 472.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.1183, allocations: 8.547 kB / 472.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008411/0.1191, allocations: 0.5511 MB / 472.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=59): time 2.414e-06/0.1191, allocations: 0 / 472.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.002061/0.1212, allocations: 1.271 MB / 474.1 MB, free: 496 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.515e-05/0.1213, allocations: 162.8 kB / 474.2 MB, free: 296 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002558/0.1239, allocations: 1.973 MB / 476.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.52e-05/0.1239, allocations: 37.7 kB / 476.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006716/0.1246, allocations: 0.7209 MB / 477 MB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.1248, allocations: 226.1 kB / 477.2 MB, free: 13.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002651/0.1251, allocations: 150.6 kB / 477.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1252, allocations: 341.9 kB / 477.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006964/0.1259, allocations: 437.8 kB / 478.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008579/0.1268, allocations: 0.6632 MB / 478.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003786/0.1306, allocations: 1.947 MB / 480.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1306, allocations: 4 kB / 480.7 MB, free: 9.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002103/0.1327, allocations: 1.304 MB / 482 MB, free: 8.262 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.1328, allocations: 37.7 kB / 482.1 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.1328, allocations: 11.98 kB / 482.1 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.1328, allocations: 8 kB / 482.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008829/0.1337, allocations: 215.6 kB / 482.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.1337, allocations: 11.98 kB / 482.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006653/0.1344, allocations: 139.2 kB / 482.4 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.609e-05/0.1345, allocations: 35.98 kB / 482.5 MB, free: 7.805 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.0009648/0.1355, allocations: 0.7442 MB / 483.2 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.1357, allocations: 147.1 kB / 483.4 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001603/0.1373, allocations: 1.005 MB / 484.4 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.1373, allocations: 7.922 kB / 484.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1373, allocations: 0 / 484.4 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.1377, allocations: 304 kB / 484.7 MB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001692/0.1378, allocations: 27.92 kB / 484.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005082/0.1383, allocations: 51.94 kB / 484.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.1385, allocations: 40.52 kB / 484.8 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002253/0.1407, allocations: 1.174 MB / 486 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002381/0.1431, allocations: 1.796 MB / 487.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006724/0.1438, allocations: 472.1 kB / 488.2 MB, free: 1.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00193/0.1458, allocations: 1.422 MB / 489.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of Backend: time 3.1e-07/0.1458, allocations: 0 / 489.6 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.1473, allocations: 0.7283 MB / 490.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of SimCode: time 0.00502/0.1524, allocations: 3.829 MB / 494.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of Templates: time 0.03139/0.1838, allocations: 21.59 MB / 0.5037 GB, free: 6.301 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)