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.001284/0.001284, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001454/0.001454, allocations: 219.1 kB / 23.01 MB, free: 4.609 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.365/1.365, allocations: 207.6 MB / 233.8 MB, free: 9.996 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.05172/0.05172, allocations: 7.148 MB / 293.2 MB, free: 14.66 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.002027/0.002027, allocations: 68.91 kB / 410.3 MB, free: 47.44 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0589/0.06093, allocations: 50.75 MB / 461 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.006028/0.06695, allocations: 4.735 MB / 465.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002712/0.06967, allocations: 1.936 MB / 467.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.06993, allocations: 23.88 kB / 467.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000795/0.07072, allocations: 369.9 kB / 468.1 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004824/0.07121, allocations: 290.1 kB / 468.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.07176, allocations: 355.7 kB / 468.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002569/0.07433, allocations: 2.65 MB / 471.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001098/0.07543, allocations: 0.7953 MB / 472.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008948/0.07632, allocations: 0.8918 MB / 473.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009938/0.07732, allocations: 0.9337 MB / 474 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003386/0.07765, allocations: 328 kB / 474.3 MB, free: 468 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003542/0.07801, allocations: 332 kB / 474.6 MB, free: 136 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004511/0.07846, allocations: 0.5378 MB / 475.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.07948, allocations: 1.113 MB / 476.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00345/0.08293, allocations: 3.848 MB / 480.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.08294, allocations: 0 / 480.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08294, allocations: 0 / 480.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.468e-05/0.08297, allocations: 3.938 kB / 480.1 MB, free: 10.61 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.003795/0.08677, allocations: 2.23 MB / 482.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.0868, allocations: 11.98 kB / 482.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002896/0.08709, allocations: 195.7 kB / 482.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002494/0.08959, allocations: 1.7 MB / 484.3 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.211e-05/0.08968, allocations: 106.8 kB / 484.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/0.08988, allocations: 128.3 kB / 484.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002845/0.09272, allocations: 1.827 MB / 486.3 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.074e-05/0.09275, allocations: 3.938 kB / 486.3 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.09287, allocations: 52 kB / 486.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.0929, allocations: 32 kB / 486.4 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002478/0.09538, allocations: 1.516 MB / 487.9 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009116/0.1045, allocations: 7.042 MB / 495 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002288/0.1068, allocations: 1.189 MB / 496.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008529/0.1076, allocations: 0.5065 MB / 496.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.1077, allocations: 4.5 kB / 496.7 MB, free: 9.777 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008536/0.1085, allocations: 0.5617 MB / 497.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.064e-06/0.1085, allocations: 0 / 497.2 MB, free: 9.188 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.002039/0.1106, allocations: 1.261 MB / 498.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.1107, allocations: 166.7 kB / 498.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002673/0.1133, allocations: 1.965 MB / 0.4889 GB, free: 5.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.884e-05/0.1134, allocations: 37.7 kB / 0.4889 GB, free: 5.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000707/0.1141, allocations: 0.7287 MB / 0.4896 GB, free: 4.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.1143, allocations: 222.2 kB / 0.4899 GB, free: 4.742 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.1146, allocations: 154.6 kB / 0.49 GB, free: 4.582 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1147, allocations: 341.8 kB / 0.4903 GB, free: 4.242 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/0.1155, allocations: 437.8 kB / 0.4907 GB, free: 3.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000909/0.1164, allocations: 0.6553 MB / 0.4914 GB, free: 3.074 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003881/0.1202, allocations: 1.964 MB / 0.4933 GB, free: 1.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1203, allocations: 0 / 0.4933 GB, free: 1.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002121/0.1224, allocations: 1.302 MB / 0.4946 GB, free: 15.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.156e-05/0.1224, allocations: 33.7 kB / 0.4946 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.1224, allocations: 4 kB / 0.4946 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.257e-05/0.1224, allocations: 8.75 kB / 0.4946 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008686/0.1233, allocations: 219.6 kB / 0.4948 GB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/0.1233, allocations: 19.86 kB / 0.4949 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006532/0.124, allocations: 143 kB / 0.495 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.1241, allocations: 35.92 kB / 0.495 GB, free: 15.23 MB / 382.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.0009608/0.125, allocations: 0.7383 MB / 0.4957 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.1252, allocations: 143.1 kB / 0.4959 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/0.1269, allocations: 0.9954 MB / 0.4969 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.1269, allocations: 8 kB / 0.4969 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1269, allocations: 4 kB / 0.4969 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1269, allocations: 0 / 0.4969 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004403/0.1313, allocations: 2.996 MB / 0.4998 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1313, allocations: 0 / 0.4998 GB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.1321, allocations: 171.8 kB / 0.5 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.1321, allocations: 0 / 0.5 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.604e-05/0.1321, allocations: 20 kB / 0.5 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.1321, allocations: 4 kB / 0.5 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1321, allocations: 0 / 0.5 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.1344, allocations: 1.587 MB / 0.5015 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004191/0.1348, allocations: 230.9 kB / 0.5017 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.135, allocations: 28 kB / 0.5018 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000511/0.1355, allocations: 47.94 kB / 0.5018 GB, free: 8.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1356, allocations: 44.42 kB / 0.5019 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.955e-05/0.1356, allocations: 20 kB / 0.5019 GB, free: 8.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.1376, allocations: 1.41 MB / 0.5033 GB, free: 6.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1376, allocations: 0 / 0.5033 GB, free: 6.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007813/0.1384, allocations: 303.4 kB / 0.5035 GB, free: 6.395 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.0001668/0.1385, allocations: 143.3 kB / 0.5037 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.1402, allocations: 0.9668 MB / 0.5046 GB, free: 5.262 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1402, allocations: 0 / 0.5046 GB, free: 5.262 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.1408, allocations: 404.1 kB / 0.505 GB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.1419, allocations: 324.8 kB / 0.5053 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005037/0.147, allocations: 3.377 MB / 0.5086 GB, free: 1.121 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/0.1483, allocations: 1.665 MB / 0.5102 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003173/0.1486, allocations: 87.44 kB / 0.5103 GB, free: 15.34 MB / 398.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1486, allocations: 0 / 0.5103 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Templates: time 0.1766/0.3252, allocations: 23.77 MB / 0.5335 GB, free: 61 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: 7.917399187106639] Failed to read output from testmodel.py, exit status != 0: 0.3322524179238826 0.34187088800000004 0.25688777 Calling exit ...