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.0008208/0.0008209, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0009829/0.0009829, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.785/1.785, allocations: 205.4 MB / 222.4 MB, free: 5.797 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.07051/0.07051, allocations: 7.039 MB / 277.8 MB, free: 14.41 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.0005227/0.0005227, allocations: 12 kB / 337.6 MB, free: 27.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1083, allocations: 49.07 MB / 386.6 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004883/0.1132, allocations: 4.256 MB / 390.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002759/0.116, allocations: 1.637 MB / 392.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003886/0.1164, allocations: 19.94 kB / 392.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007713/0.1172, allocations: 294.5 kB / 392.8 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.1177, allocations: 210.7 kB / 393 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007002/0.1184, allocations: 319.8 kB / 393.4 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00217/0.1206, allocations: 2.367 MB / 395.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001678/0.1223, allocations: 1.402 MB / 397.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007831/0.123, allocations: 0.5246 MB / 397.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009713/0.124, allocations: 0.6527 MB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000221/0.1243, allocations: 88 kB / 398.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002313/0.1245, allocations: 88 kB / 398.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.1249, allocations: 266.6 kB / 398.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001257/0.1261, allocations: 0.8449 MB / 399.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/0.1304, allocations: 3.504 MB / 403.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1304, allocations: 0 / 403.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1304, allocations: 0 / 403.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.767e-05/0.1305, allocations: 0 / 403.1 MB, free: 9.551 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.005724/0.1362, allocations: 1.879 MB / 405 MB, free: 7.609 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.252e-05/0.1363, allocations: 12.03 kB / 405 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007552/0.1371, allocations: 182.7 kB / 405.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003701/0.1408, allocations: 1.702 MB / 406.9 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.141, allocations: 102.8 kB / 407 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002843/0.1412, allocations: 132.3 kB / 407.1 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004857/0.1461, allocations: 1.839 MB / 408.9 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/0.1462, allocations: 4 kB / 408.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001829/0.1464, allocations: 48 kB / 409 MB, free: 3.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.713e-05/0.1464, allocations: 32 kB / 409 MB, free: 3.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004216/0.1507, allocations: 1.528 MB / 410.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01442/0.1651, allocations: 7.16 MB / 417.7 MB, free: 10.6 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004522/0.1697, allocations: 2.985 MB / 420.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.171, allocations: 0.5501 MB / 421.2 MB, free: 6.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.1711, allocations: 8.547 kB / 421.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/0.1725, allocations: 0.5627 MB / 421.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of pre-optimization done (n=59): time 3.527e-06/0.1725, allocations: 0 / 421.8 MB, free: 6.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=59): time 0.003452/0.1759, allocations: 1.263 MB / 423.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.1761, allocations: 170.8 kB / 423.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006256/0.1824, allocations: 1.968 MB / 425.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000261/0.1827, allocations: 41.7 kB / 425.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.1839, allocations: 0.7121 MB / 426 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004741/0.1844, allocations: 209 kB / 426.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.1847, allocations: 81.61 kB / 426.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002534/0.185, allocations: 341.8 kB / 426.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001409/0.1864, allocations: 445.8 kB / 427 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.1881, allocations: 0.6476 MB / 427.7 MB, free: 12 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2523/0.4404, allocations: 2.007 MB / 429.7 MB, free: 37.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.4405, allocations: 2.031 kB / 429.7 MB, free: 37.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00301/0.4435, allocations: 1.304 MB / 431 MB, free: 37.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.4436, allocations: 37.31 kB / 431 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.4436, allocations: 6 kB / 431 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.853e-05/0.4437, allocations: 9.062 kB / 431 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/0.4447, allocations: 231.8 kB / 431.2 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.178e-05/0.4447, allocations: 14.75 kB / 431.3 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.4458, allocations: 138.2 kB / 431.4 MB, free: 37.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.652e-05/0.4459, allocations: 35.03 kB / 431.4 MB, free: 37.64 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.001405/0.4473, allocations: 0.7373 MB / 432.2 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.4476, allocations: 139.8 kB / 432.3 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.4496, allocations: 1.013 MB / 433.3 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.4496, allocations: 6.188 kB / 433.3 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.4496, allocations: 0 / 433.3 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.4497, allocations: 4.922 kB / 433.3 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004976/0.4546, allocations: 3.035 MB / 436.4 MB, free: 36.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.4547, allocations: 5.469 kB / 436.4 MB, free: 36.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008281/0.4555, allocations: 175.3 kB / 436.5 MB, free: 36.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.727e-06/0.4555, allocations: 3.188 kB / 436.5 MB, free: 36.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.928e-05/0.4556, allocations: 27.16 kB / 436.6 MB, free: 36.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.4556, allocations: 6.312 kB / 436.6 MB, free: 36.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4556, allocations: 1.938 kB / 436.6 MB, free: 36.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002631/0.4583, allocations: 1.593 MB / 438.2 MB, free: 35.62 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004272/0.4587, allocations: 297.6 kB / 438.5 MB, free: 35.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.4589, allocations: 20.25 kB / 438.5 MB, free: 35.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005252/0.4594, allocations: 54.75 kB / 438.5 MB, free: 35.37 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.4596, allocations: 45.97 kB / 438.6 MB, free: 35.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.4596, allocations: 15 kB / 438.6 MB, free: 35.35 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002457/0.4621, allocations: 1.414 MB / 440 MB, free: 34.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.974e-06/0.4621, allocations: 0 / 440 MB, free: 34.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001198/0.4633, allocations: 308 kB / 440.3 MB, free: 34.71 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.0002073/0.4635, allocations: 129.8 kB / 440.4 MB, free: 34.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.4653, allocations: 1.002 MB / 441.4 MB, free: 34.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.4654, allocations: 6.875 kB / 441.4 MB, free: 34.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006828/0.4661, allocations: 433.7 kB / 441.9 MB, free: 34.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.4675, allocations: 312.5 kB / 442.2 MB, free: 33.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007157/0.4746, allocations: 4.007 MB / 446.2 MB, free: 31.7 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/0.4764, allocations: 1.701 MB / 447.9 MB, free: 30.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.4778, allocations: 343.8 kB / 448.2 MB, free: 30.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.4783, allocations: 82.44 kB / 448.3 MB, free: 30.49 MB / 318.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4783, allocations: 4 kB / 448.3 MB, free: 30.49 MB / 318.1 MB Notification: Performance of Templates: time 0.03244/0.5108, allocations: 17.57 MB / 465.9 MB, free: 13.42 MB / 318.1 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: