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.001451/0.001451, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001666/0.001666, allocations: 169 kB / 23.49 MB, free: 1.062 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.9449/0.9449, allocations: 158.6 MB / 185.3 MB, free: 2.934 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.03845/0.03845, allocations: 5.573 MB / 243.1 MB, free: 9.594 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.154e-06/2.154e-06, allocations: 1.188 kB / 309.8 MB, free: 53.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.007e-05/2.222e-05, allocations: 4.984 kB / 309.8 MB, free: 53.53 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.004582/0.004604, allocations: 4.57 MB / 314.4 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002668/0.007272, allocations: 1.915 MB / 316.3 MB, free: 49.2 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.007637, allocations: 19.41 kB / 316.3 MB, free: 49.2 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007248/0.008362, allocations: 359.9 kB / 316.7 MB, free: 48.89 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004034/0.008765, allocations: 306 kB / 317 MB, free: 48.59 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004677/0.009233, allocations: 363.2 kB / 317.3 MB, free: 48.24 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001517/0.01075, allocations: 2.689 MB / 320 MB, free: 45.56 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007338/0.01148, allocations: 0.8275 MB / 320.9 MB, free: 44.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008348/0.01232, allocations: 1.388 MB / 322.2 MB, free: 43.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006429/0.01296, allocations: 0.9552 MB / 323.2 MB, free: 42.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002209/0.01318, allocations: 332 kB / 323.5 MB, free: 42.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001758/0.01336, allocations: 328 kB / 323.8 MB, free: 41.7 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.01358, allocations: 0.5532 MB / 324.4 MB, free: 41.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004781/0.01405, allocations: 0.7323 MB / 325.1 MB, free: 40.41 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.01519, allocations: 1.8 MB / 326.9 MB, free: 38.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.01519, allocations: 4 kB / 326.9 MB, free: 38.61 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.01519, allocations: 0 / 326.9 MB, free: 38.61 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.01521, allocations: 3.938 kB / 326.9 MB, free: 38.6 MB / 282.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.002373/0.01758, allocations: 2.418 MB / 329.4 MB, free: 36.13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.01762, allocations: 15.98 kB / 329.4 MB, free: 36.12 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002706/0.0179, allocations: 291.7 kB / 329.7 MB, free: 35.83 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.01908, allocations: 1.468 MB / 331.1 MB, free: 34.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/0.01915, allocations: 98.83 kB / 331.2 MB, free: 34.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.01928, allocations: 132.3 kB / 331.3 MB, free: 34.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.02059, allocations: 1.23 MB / 332.6 MB, free: 32.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.02061, allocations: 4.125 kB / 332.6 MB, free: 32.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.529e-05/0.02069, allocations: 52.38 kB / 332.6 MB, free: 32.67 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.02071, allocations: 35.94 kB / 332.7 MB, free: 32.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008476/0.02155, allocations: 441.6 kB / 333.1 MB, free: 32.2 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004382/0.02594, allocations: 6.259 MB / 339.4 MB, free: 25.8 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.02694, allocations: 0.6346 MB / 340 MB, free: 25.17 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003337/0.02727, allocations: 197.6 kB / 340.2 MB, free: 24.97 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.0273, allocations: 16.5 kB / 340.2 MB, free: 24.96 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003933/0.02769, allocations: 483.1 kB / 340.7 MB, free: 24.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 1.833e-06/0.0277, allocations: 0 / 340.7 MB, free: 24.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0007752/0.02847, allocations: 488.2 kB / 341.1 MB, free: 23.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.02852, allocations: 166.7 kB / 341.3 MB, free: 23.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.02957, allocations: 1.285 MB / 342.6 MB, free: 22.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.02961, allocations: 37.7 kB / 342.6 MB, free: 22.38 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003989/0.03001, allocations: 0.8899 MB / 343.5 MB, free: 21.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.03012, allocations: 226.2 kB / 343.7 MB, free: 21.26 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001586/0.03028, allocations: 168.3 kB / 343.9 MB, free: 21.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.008e-05/0.03037, allocations: 0.516 MB / 344.4 MB, free: 20.56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.03058, allocations: 123.6 kB / 344.5 MB, free: 20.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.03088, allocations: 0.533 MB / 345.1 MB, free: 19.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.03155, allocations: 0.6548 MB / 345.7 MB, free: 18.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.03155, allocations: 3.938 kB / 345.7 MB, free: 18.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007428/0.0323, allocations: 0.6599 MB / 346.4 MB, free: 18.3 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.729e-05/0.03233, allocations: 37.69 kB / 346.4 MB, free: 18.25 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.03234, allocations: 4 kB / 346.4 MB, free: 18.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.03236, allocations: 8 kB / 346.4 MB, free: 18.24 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.03278, allocations: 215.7 kB / 346.7 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.03279, allocations: 12.28 kB / 346.7 MB, free: 18.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.03306, allocations: 99.47 kB / 346.8 MB, free: 17.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.555e-05/0.0331, allocations: 28 kB / 346.8 MB, free: 17.89 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 ($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.0002902/0.03339, allocations: 243.5 kB / 347 MB, free: 17.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.03349, allocations: 135.2 kB / 347.2 MB, free: 17.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005784/0.03406, allocations: 452.9 kB / 347.6 MB, free: 17.06 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.03407, allocations: 8 kB / 347.6 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.03407, allocations: 0 / 347.6 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.03408, allocations: 3.984 kB / 347.6 MB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001883/0.03596, allocations: 2.194 MB / 349.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.03597, allocations: 0 / 349.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.03632, allocations: 159.8 kB / 350 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.03633, allocations: 3.938 kB / 350 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.03636, allocations: 27.98 kB / 350 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.03636, allocations: 4 kB / 350 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.03637, allocations: 0 / 350 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007041/0.03707, allocations: 0.7107 MB / 350.7 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.03721, allocations: 187.1 kB / 350.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.214e-05/0.0373, allocations: 31.92 kB / 350.9 MB, free: 13.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.03752, allocations: 47.95 kB / 351 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/0.03761, allocations: 36.42 kB / 351 MB, free: 13.58 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.03763, allocations: 16 kB / 351 MB, free: 13.57 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006307/0.03826, allocations: 0.7111 MB / 351.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03826, allocations: 3.938 kB / 351.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004721/0.03874, allocations: 331 kB / 352.1 MB, free: 12.52 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.0001162/0.03885, allocations: 136.7 kB / 352.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005808/0.03943, allocations: 449.7 kB / 352.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.03943, allocations: 1.5 kB / 352.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.03965, allocations: 179.4 kB / 352.8 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006432/0.04029, allocations: 278.9 kB / 353.1 MB, free: 11.48 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/0.04296, allocations: 2.648 MB / 355.7 MB, free: 8.781 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.04323, allocations: 0.5034 MB / 356.2 MB, free: 8.254 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003642/0.04359, allocations: 235.8 kB / 356.5 MB, free: 8.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.04375, allocations: 80.48 kB / 356.5 MB, free: 7.938 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.04375, allocations: 0 / 356.5 MB, free: 7.938 MB / 282.7 MB Notification: Performance of Templates: time 0.01809/0.06184, allocations: 16.66 MB / 373.2 MB, free: 7.289 MB / 298.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 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.205141814192757]