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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008657/0.0008657, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009213/0.0009213, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8483/0.8483, allocations: 158.6 MB / 185.2 MB, free: 2.758 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage master/package.mo): time 0.03188/0.03188, allocations: 5.572 MB / 243.1 MB, free: 9.426 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 261.2 MB, free: 7.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.783e-05/1.937e-05, allocations: 6.25 kB / 261.2 MB, free: 7.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004384/0.004403, allocations: 4.567 MB / 265.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.006365, allocations: 1.982 MB / 267.8 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.006581, allocations: 27.81 kB / 267.8 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.007186, allocations: 373.8 kB / 268.2 MB, free: 340 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003568/0.007542, allocations: 313.9 kB / 268.5 MB, free: 24 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.007953, allocations: 351.7 kB / 268.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.009834, allocations: 2.696 MB / 271.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000801/0.01063, allocations: 0.846 MB / 272.4 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.01178, allocations: 1.396 MB / 273.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008935/0.01267, allocations: 0.9552 MB / 274.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003012/0.01298, allocations: 332 kB / 275 MB, free: 9.398 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.01329, allocations: 332 kB / 275.4 MB, free: 9.074 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.01365, allocations: 0.5493 MB / 275.9 MB, free: 8.523 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008523/0.0145, allocations: 0.7368 MB / 276.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.01607, allocations: 1.796 MB / 278.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.01607, allocations: 0 / 278.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.01607, allocations: 0 / 278.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.01608, allocations: 0 / 278.4 MB, free: 5.984 MB / 266.7 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.002429/0.01851, allocations: 1.975 MB / 280.4 MB, free: 3.969 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.01854, allocations: 11.98 kB / 280.4 MB, free: 3.957 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.01886, allocations: 216.8 kB / 280.6 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.02006, allocations: 0.807 MB / 281.4 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.172e-05/0.02014, allocations: 98.83 kB / 281.5 MB, free: 2.801 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.02032, allocations: 132.3 kB / 281.7 MB, free: 2.672 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.02178, allocations: 1.152 MB / 282.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.809e-05/0.02181, allocations: 192 / 282.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/0.02192, allocations: 52.38 kB / 282.9 MB, free: 1.348 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.509e-05/0.02194, allocations: 35.94 kB / 282.9 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000767/0.02271, allocations: 359.4 kB / 283.3 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004881/0.02759, allocations: 4.168 MB / 287.4 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.02861, allocations: 0.5582 MB / 288 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002985/0.02891, allocations: 166.8 kB / 288.1 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.02894, allocations: 8.5 kB / 288.2 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004101/0.02935, allocations: 446.1 kB / 288.6 MB, free: 11.42 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 1.824e-06/0.02935, allocations: 0 / 288.6 MB, free: 11.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0007693/0.03012, allocations: 340.8 kB / 288.9 MB, free: 11.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.03023, allocations: 162.7 kB / 289.1 MB, free: 10.89 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009127/0.03115, allocations: 0.8255 MB / 289.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.0312, allocations: 41.7 kB / 289.9 MB, free: 10 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005851/0.03178, allocations: 0.5649 MB / 290.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.03194, allocations: 218.1 kB / 290.7 MB, free: 9.215 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002194/0.03216, allocations: 146.5 kB / 290.9 MB, free: 9.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.03226, allocations: 341.9 kB / 291.2 MB, free: 8.723 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.03247, allocations: 110.5 kB / 291.3 MB, free: 8.609 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003288/0.0328, allocations: 419.7 kB / 291.7 MB, free: 8.082 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.03347, allocations: 0.5373 MB / 292.3 MB, free: 7.453 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.03348, allocations: 7.938 kB / 292.3 MB, free: 7.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007019/0.03418, allocations: 480.4 kB / 292.7 MB, free: 6.957 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.03421, allocations: 33.7 kB / 292.8 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.03422, allocations: 8 kB / 292.8 MB, free: 6.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.03424, allocations: 11.98 kB / 292.8 MB, free: 6.898 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007059/0.03494, allocations: 212.1 kB / 293 MB, free: 6.691 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.03496, allocations: 15.94 kB / 293 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003517/0.03531, allocations: 79.5 kB / 293.1 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.005e-05/0.03536, allocations: 24 kB / 293.1 MB, free: 6.574 MB / 282.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: 25 * Number of states: 0 () * Number of discrete variables: 12 (rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[1].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[2].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rcseriesLinear.rclinear[3].resistor.impedanceValue.qabs.absInt.local_reset,rCseriesLinear.rs.impedanceValue.qabs.absInt.local_reset,$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 (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.000324/0.03568, allocations: 193.4 kB / 293.3 MB, free: 6.375 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.03581, allocations: 87.84 kB / 293.4 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005566/0.03636, allocations: 345.9 kB / 293.7 MB, free: 5.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.03637, allocations: 4 kB / 293.7 MB, free: 5.934 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-06/0.03637, allocations: 7.938 kB / 293.7 MB, free: 5.926 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.03638, allocations: 3.984 kB / 293.7 MB, free: 5.922 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.03822, allocations: 1.344 MB / 295.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.03822, allocations: 4 kB / 295.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000547/0.03877, allocations: 147.9 kB / 295.2 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.03877, allocations: 7.984 kB / 295.2 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.886e-05/0.03882, allocations: 24 kB / 295.3 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.03883, allocations: 4 kB / 295.3 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.03883, allocations: 11.88 kB / 295.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007027/0.03953, allocations: 0.5356 MB / 295.8 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.03971, allocations: 115.1 kB / 295.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.03983, allocations: 20 kB / 295.9 MB, free: 3.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002846/0.04011, allocations: 31.98 kB / 296 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.527e-05/0.04021, allocations: 44.34 kB / 296 MB, free: 3.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.04024, allocations: 12 kB / 296 MB, free: 3.574 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005345/0.04078, allocations: 434.8 kB / 296.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04078, allocations: 3.938 kB / 296.5 MB, free: 3.137 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006123/0.04139, allocations: 339 kB / 296.8 MB, free: 2.805 MB / 282.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.0001284/0.04152, allocations: 108.4 kB / 296.9 MB, free: 2.691 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005395/0.04206, allocations: 392.2 kB / 297.3 MB, free: 2.289 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/0.04207, allocations: 12.19 kB / 297.3 MB, free: 2.277 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.04253, allocations: 140.6 kB / 297.4 MB, free: 2.137 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000747/0.04327, allocations: 272 kB / 297.7 MB, free: 1.879 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09037/0.1336, allocations: 2.456 MB / 300.2 MB, free: 49.25 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.134, allocations: 367.7 kB / 300.5 MB, free: 49.17 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004788/0.1345, allocations: 123.9 kB / 300.6 MB, free: 49.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004886/0.1349, allocations: 266.6 kB / 300.9 MB, free: 49.12 MB / 282.7 MB Notification: Performance of SimCode: time 9.11e-07/0.1349, allocations: 0 / 300.9 MB, free: 49.12 MB / 282.7 MB Notification: Performance of Templates: time 0.01794/0.1529, allocations: 17.81 MB / 318.7 MB, free: 40.33 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7090828008949757]