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.001363/0.001363, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.001732/0.001732, allocations: 210.8 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.463/1.463, allocations: 207.7 MB / 233.1 MB, free: 9.789 MB / 190.1 MB " [Timeout remaining time 178] 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.07429/0.07429, allocations: 7.16 MB / 292.5 MB, free: 14.48 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.002325/0.002325, allocations: 69.34 kB / 409.5 MB, free: 47.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.08887, allocations: 50.75 MB / 460.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006722/0.09559, allocations: 4.225 MB / 464.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003702/0.09929, allocations: 1.823 MB / 466.3 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004798/0.09977, allocations: 19.88 kB / 466.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1009, allocations: 361.9 kB / 466.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007769/0.1017, allocations: 294.1 kB / 467 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.1024, allocations: 351.7 kB / 467.3 MB, free: 6.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003517/0.106, allocations: 2.638 MB / 470 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.1078, allocations: 0.8187 MB / 470.8 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001693/0.1095, allocations: 0.8995 MB / 471.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002017/0.1115, allocations: 1.027 MB / 472.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005698/0.1121, allocations: 328 kB / 473 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000529/0.1126, allocations: 332 kB / 473.4 MB, free: 488 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005893/0.1132, allocations: 0.5339 MB / 473.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.1146, allocations: 0.8442 MB / 474.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004708/0.1193, allocations: 3.863 MB / 478.6 MB, free: 11.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/0.1193, allocations: 4 kB / 478.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1193, allocations: 0 / 478.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.934e-05/0.1194, allocations: 0 / 478.6 MB, free: 11.21 MB / 350.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.005347/0.1247, allocations: 2.238 MB / 480.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1248, allocations: 11.98 kB / 480.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004487/0.1252, allocations: 195.7 kB / 481.1 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003349/0.1286, allocations: 1.689 MB / 482.7 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/0.1287, allocations: 110.8 kB / 482.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.1289, allocations: 128.3 kB / 483 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003841/0.1328, allocations: 2.003 MB / 485 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.1328, allocations: 11.88 kB / 485 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/0.133, allocations: 52 kB / 485 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-05/0.133, allocations: 28 kB / 485.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003036/0.136, allocations: 1.512 MB / 486.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01138/0.1474, allocations: 6.165 MB / 492.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00266/0.1501, allocations: 1.193 MB / 493.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/0.1511, allocations: 0.5026 MB / 494.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.1511, allocations: 8.5 kB / 494.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.1524, allocations: 0.7297 MB / 495.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.344e-06/0.1524, allocations: 0 / 495.2 MB, free: 10.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.002461/0.1549, allocations: 1.23 MB / 496.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.155, allocations: 162.7 kB / 496.6 MB, free: 8.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/0.1579, allocations: 1.617 MB / 498.2 MB, free: 7.176 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001437/0.158, allocations: 37.7 kB / 498.2 MB, free: 7.133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008984/0.1589, allocations: 0.7542 MB / 499 MB, free: 6.371 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002853/0.1592, allocations: 218.2 kB / 499.2 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002968/0.1595, allocations: 154.6 kB / 499.3 MB, free: 5.996 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1597, allocations: 341.9 kB / 499.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008415/0.1605, allocations: 467.4 kB / 0.4884 GB, free: 5.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001139/0.1617, allocations: 0.7847 MB / 0.4892 GB, free: 4.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/0.1661, allocations: 1.964 MB / 0.4911 GB, free: 2.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.1662, allocations: 0 / 0.4911 GB, free: 2.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002592/0.1687, allocations: 1.304 MB / 0.4924 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.016e-05/0.1688, allocations: 34.45 kB / 0.4924 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.1688, allocations: 4 kB / 0.4924 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/0.1688, allocations: 16 kB / 0.4924 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009552/0.1698, allocations: 223.6 kB / 0.4926 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.995e-05/0.1698, allocations: 8 kB / 0.4926 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008372/0.1706, allocations: 103.4 kB / 0.4927 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-05/0.1707, allocations: 35.98 kB / 0.4928 GB, free: 488 kB / 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.001391/0.1721, allocations: 0.7402 MB / 0.4935 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/0.1724, allocations: 119.3 kB / 0.4936 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.1743, allocations: 0.9732 MB / 0.4946 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.1743, allocations: 8 kB / 0.4946 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1743, allocations: 4 kB / 0.4946 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1743, allocations: 0 / 0.4946 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005029/0.1794, allocations: 2.589 MB / 0.4971 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1794, allocations: 0 / 0.4971 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008571/0.1802, allocations: 175.8 kB / 0.4973 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.1803, allocations: 4 kB / 0.4973 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.646e-05/0.1803, allocations: 23.98 kB / 0.4973 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1803, allocations: 0 / 0.4973 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1803, allocations: 0 / 0.4973 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.1831, allocations: 1.558 MB / 0.4988 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.1837, allocations: 199.1 kB / 0.499 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003043/0.184, allocations: 27.98 kB / 0.499 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000637/0.1846, allocations: 47.95 kB / 0.4991 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.1847, allocations: 44.41 kB / 0.4991 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.1848, allocations: 16 kB / 0.4991 GB, free: 9.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002384/0.1872, allocations: 1.148 MB / 0.5003 GB, free: 8.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1872, allocations: 0 / 0.5003 GB, free: 8.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001179/0.1883, allocations: 327 kB / 0.5006 GB, free: 8.402 MB / 382.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.0002318/0.1886, allocations: 131.4 kB / 0.5007 GB, free: 8.262 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.1906, allocations: 0.993 MB / 0.5017 GB, free: 7.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.1906, allocations: 4.25 kB / 0.5017 GB, free: 7.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.1914, allocations: 414.6 kB / 0.5021 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001423/0.1928, allocations: 272.7 kB / 0.5023 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006966/0.1998, allocations: 3.344 MB / 0.5056 GB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001848/0.2016, allocations: 1.105 MB / 0.5067 GB, free: 2.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001233/0.2029, allocations: 303.8 kB / 0.507 GB, free: 1.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.2033, allocations: 71.44 kB / 0.507 GB, free: 1.668 MB / 382.1 MB Notification: Performance of SimCode: time 2.054e-06/0.2033, allocations: 0 / 0.507 GB, free: 1.668 MB / 382.1 MB Notification: Performance of Templates: time 0.2164/0.4197, allocations: 18.35 MB / 0.5249 GB, free: 69.85 MB / 398.1 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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.053635464981198] Failed to read output from testmodel.py, exit status != 0: 0.42836159467697144 0.44099052099999997 0.318802891 Calling exit ...