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.0008489/0.0008489, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008285/0.0008285, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9747/0.9747, allocations: 158.6 MB / 185 MB, free: 3.039 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.04238/0.04238, allocations: 5.557 MB / 242.8 MB, free: 9.789 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 2.174e-06/2.174e-06, allocations: 3.938 kB / 360 MB, free: 5.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.605e-05/3.822e-05, allocations: 6.219 kB / 360 MB, free: 5.375 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004175/0.004214, allocations: 4.218 MB / 364.2 MB, free: 1.129 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002649/0.006863, allocations: 1.835 MB / 366 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005399/0.007403, allocations: 23.88 kB / 366 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008918/0.008295, allocations: 369.8 kB / 366.4 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006065/0.008901, allocations: 302 kB / 366.7 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006751/0.009576, allocations: 355.6 kB / 367 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002643/0.01222, allocations: 2.694 MB / 369.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.0135, allocations: 0.8226 MB / 370.6 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002471/0.01597, allocations: 1.388 MB / 371.9 MB, free: 9.289 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001115/0.01709, allocations: 0.9044 MB / 372.9 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005503/0.01764, allocations: 328 kB / 373.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002707/0.01791, allocations: 332 kB / 373.5 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003133/0.01822, allocations: 0.5454 MB / 374 MB, free: 7.191 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009402/0.01916, allocations: 0.729 MB / 374.8 MB, free: 6.461 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.02186, allocations: 3.912 MB / 378.7 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.02187, allocations: 0 / 378.7 MB, free: 2.535 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.02187, allocations: 4 kB / 378.7 MB, free: 2.531 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.551e-05/0.02196, allocations: 0 / 378.7 MB, free: 2.531 MB / 298.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.00372/0.02568, allocations: 2.215 MB / 380.9 MB, free: 276 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.02573, allocations: 15.98 kB / 380.9 MB, free: 260 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.02599, allocations: 199.7 kB / 381.1 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001768/0.02776, allocations: 1.696 MB / 382.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.299e-05/0.02783, allocations: 98.83 kB / 382.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.02797, allocations: 128.3 kB / 383 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00222/0.03019, allocations: 2.003 MB / 385 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.03022, allocations: 4.125 kB / 385 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-05/0.0303, allocations: 52.38 kB / 385.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.03032, allocations: 35.94 kB / 385.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001814/0.03214, allocations: 1.512 MB / 386.6 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007277/0.03941, allocations: 6.162 MB / 392.8 MB, free: 4.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.04096, allocations: 1.179 MB / 394 MB, free: 2.918 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006085/0.04156, allocations: 0.5181 MB / 394.5 MB, free: 2.398 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.0416, allocations: 4.5 kB / 394.5 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006882/0.04229, allocations: 0.7335 MB / 395.2 MB, free: 1.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=59): time 2.054e-06/0.04229, allocations: 0 / 395.2 MB, free: 1.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=59): time 0.001559/0.04385, allocations: 1.223 MB / 396.5 MB, free: 372 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.689e-05/0.04394, allocations: 174.7 kB / 396.6 MB, free: 160 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.04563, allocations: 1.609 MB / 398.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.04568, allocations: 45.69 kB / 398.3 MB, free: 14.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005435/0.04623, allocations: 0.7425 MB / 399 MB, free: 13.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.04641, allocations: 230 kB / 399.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.0466, allocations: 150.6 kB / 399.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.04671, allocations: 341.9 kB / 399.7 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004924/0.04721, allocations: 459.5 kB / 400.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/0.04788, allocations: 0.777 MB / 401 MB, free: 11.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002476/0.05036, allocations: 1.968 MB / 402.9 MB, free: 9.594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/0.05037, allocations: 7.938 kB / 402.9 MB, free: 9.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001479/0.05185, allocations: 1.301 MB / 404.2 MB, free: 8.266 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.203e-05/0.05191, allocations: 40.86 kB / 404.3 MB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.05193, allocations: 11.98 kB / 404.3 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.254e-05/0.05196, allocations: 8 kB / 404.3 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/0.05246, allocations: 219.6 kB / 404.5 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.05247, allocations: 11.94 kB / 404.5 MB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/0.05291, allocations: 103.5 kB / 404.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.05295, allocations: 31.98 kB / 404.6 MB, free: 7.844 MB / 330.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 ($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.0009296/0.05388, allocations: 0.7326 MB / 405.4 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.05399, allocations: 115.2 kB / 405.5 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.05506, allocations: 0.9733 MB / 406.5 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.05507, allocations: 4 kB / 406.5 MB, free: 5.996 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.05508, allocations: 4 kB / 406.5 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.05508, allocations: 3.984 kB / 406.5 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002719/0.0578, allocations: 2.589 MB / 409.1 MB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.05781, allocations: 4 kB / 409.1 MB, free: 3.344 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004075/0.05822, allocations: 167.8 kB / 409.2 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/0.05822, allocations: 7.938 kB / 409.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.323e-05/0.05827, allocations: 23.98 kB / 409.3 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.05827, allocations: 4 kB / 409.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.05828, allocations: 0 / 409.3 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.05981, allocations: 1.55 MB / 410.8 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002618/0.06007, allocations: 199.1 kB / 411 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.395e-05/0.06016, allocations: 31.92 kB / 411 MB, free: 1.348 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.06043, allocations: 43.95 kB / 411.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.06053, allocations: 48.41 kB / 411.1 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.06056, allocations: 16 kB / 411.1 MB, free: 1.238 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00126/0.06182, allocations: 1.145 MB / 412.3 MB, free: 88 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.06182, allocations: 0 / 412.3 MB, free: 88 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001104/0.06293, allocations: 339 kB / 412.6 MB, free: 15.75 MB / 346.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.0003335/0.06326, allocations: 139.1 kB / 412.8 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.06463, allocations: 0.9933 MB / 413.8 MB, free: 14.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.06463, allocations: 4 kB / 413.8 MB, free: 14.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003926/0.06502, allocations: 398.6 kB / 414.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007217/0.06575, allocations: 275.2 kB / 414.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003876/0.06962, allocations: 3.18 MB / 417.6 MB, free: 10.72 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007538/0.07038, allocations: 1.07 MB / 418.7 MB, free: 9.613 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002598/0.07064, allocations: 80.48 kB / 418.7 MB, free: 9.535 MB / 346.7 MB Notification: Performance of SimCode: time 2.195e-06/0.07064, allocations: 0 / 418.7 MB, free: 9.535 MB / 346.7 MB Notification: Performance of Templates: time 0.02825/0.09889, allocations: 22.77 MB / 441.5 MB, free: 2.723 MB / 362.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=480 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.604244169779122] Failed to read output from testmodel.py, exit status != 0: 0.10564503725618124 0.299519087 0.27535201400000003 Calling exit ...