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.0009191/0.0009191, allocations: 80.94 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.0009414/0.0009414, allocations: 173 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.7498/0.7498, allocations: 158.6 MB / 185.2 MB, free: 2.754 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.02841/0.02841, allocations: 5.569 MB / 243.1 MB, free: 9.43 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.523e-06/1.523e-06, allocations: 0 / 261.2 MB, free: 7.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.545e-05, allocations: 2.312 kB / 261.2 MB, free: 7.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.00373/0.003745, allocations: 4.508 MB / 265.7 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.00552, allocations: 1.998 MB / 267.7 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.005716, allocations: 23.88 kB / 267.7 MB, free: 0.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000565/0.006281, allocations: 369.8 kB / 268.1 MB, free: 440 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004638/0.006745, allocations: 310 kB / 268.4 MB, free: 128 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.00714, allocations: 355.6 kB / 268.7 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.008687, allocations: 2.692 MB / 271.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006936/0.009381, allocations: 0.8538 MB / 272.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007941/0.01018, allocations: 1.388 MB / 273.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006306/0.01081, allocations: 0.9591 MB / 274.6 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.01101, allocations: 332 kB / 274.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.01122, allocations: 328 kB / 275.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002781/0.0115, allocations: 0.5532 MB / 275.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004512/0.01195, allocations: 0.729 MB / 276.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.01305, allocations: 1.804 MB / 278.3 MB, free: 6.082 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.543e-06/0.01305, allocations: 4 kB / 278.4 MB, free: 6.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01305, allocations: 0 / 278.4 MB, free: 6.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.01306, allocations: 0 / 278.4 MB, free: 6.078 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.001769/0.01483, allocations: 1.967 MB / 280.3 MB, free: 4.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.01486, allocations: 15.98 kB / 280.3 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.01508, allocations: 212.8 kB / 280.5 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008581/0.01594, allocations: 0.8031 MB / 281.3 MB, free: 3.004 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.085e-05/0.016, allocations: 102.8 kB / 281.4 MB, free: 2.902 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.01613, allocations: 136.3 kB / 281.6 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.01716, allocations: 1.14 MB / 282.7 MB, free: 1.508 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.452e-05/0.01718, allocations: 4.188 kB / 282.7 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.822e-05/0.01726, allocations: 56.36 kB / 282.8 MB, free: 1.449 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.01728, allocations: 39.88 kB / 282.8 MB, free: 1.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000528/0.01781, allocations: 363.3 kB / 283.2 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003507/0.02131, allocations: 4.168 MB / 287.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007532/0.02207, allocations: 0.5582 MB / 287.9 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.02229, allocations: 166.8 kB / 288.1 MB, free: 12.03 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.02232, allocations: 12.5 kB / 288.1 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.02264, allocations: 446.1 kB / 288.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of pre-optimization done (n=59): time 1.664e-06/0.02264, allocations: 0 / 288.5 MB, free: 11.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=59): time 0.0004622/0.0231, allocations: 332.8 kB / 288.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.811e-05/0.02316, allocations: 162.7 kB / 289 MB, free: 10.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006322/0.02379, allocations: 0.8294 MB / 289.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.02383, allocations: 49.7 kB / 289.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.02409, allocations: 0.561 MB / 290.4 MB, free: 9.52 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.0242, allocations: 218.1 kB / 290.6 MB, free: 9.305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001506/0.02435, allocations: 154.5 kB / 290.8 MB, free: 9.145 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.844e-05/0.02443, allocations: 333.9 kB / 291.1 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.02459, allocations: 114.5 kB / 291.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00024/0.02483, allocations: 411.7 kB / 291.6 MB, free: 8.176 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004757/0.0253, allocations: 0.5296 MB / 292.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.02531, allocations: 0 / 292.2 MB, free: 7.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0004917/0.0258, allocations: 492.7 kB / 292.6 MB, free: 7.055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.02582, allocations: 33.7 kB / 292.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.02583, allocations: 4 kB / 292.7 MB, free: 7.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.02585, allocations: 8 kB / 292.7 MB, free: 7.004 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.02624, allocations: 191.7 kB / 292.9 MB, free: 6.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.02625, allocations: 15.92 kB / 292.9 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.02649, allocations: 87.53 kB / 293 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.02653, allocations: 24 kB / 293 MB, free: 6.691 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.0002504/0.02678, allocations: 189.4 kB / 293.2 MB, free: 6.496 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.02687, allocations: 87.84 kB / 293.3 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000405/0.02728, allocations: 349.9 kB / 293.6 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.02728, allocations: 8 kB / 293.6 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.02728, allocations: 4 kB / 293.6 MB, free: 6.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.02729, allocations: 3.984 kB / 293.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001341/0.02863, allocations: 1.348 MB / 295 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.02863, allocations: 0 / 295 MB, free: 4.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004079/0.02904, allocations: 131.9 kB / 295.1 MB, free: 4.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.02905, allocations: 4 kB / 295.1 MB, free: 4.516 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.805e-05/0.02908, allocations: 32.02 kB / 295.1 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.02909, allocations: 0 / 295.1 MB, free: 4.484 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.02909, allocations: 7.938 kB / 295.1 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.02964, allocations: 0.5394 MB / 295.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.02977, allocations: 107.1 kB / 295.8 MB, free: 3.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.599e-05/0.02986, allocations: 23.98 kB / 295.8 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.03005, allocations: 27.98 kB / 295.8 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.03013, allocations: 48.36 kB / 295.9 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.03015, allocations: 19.98 kB / 295.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003892/0.03054, allocations: 434.8 kB / 296.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03054, allocations: 0 / 296.3 MB, free: 3.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004288/0.03097, allocations: 335 kB / 296.7 MB, free: 2.941 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.0001184/0.03109, allocations: 120.3 kB / 296.8 MB, free: 2.816 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.03148, allocations: 387.1 kB / 297.2 MB, free: 2.418 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.03149, allocations: 12 kB / 297.2 MB, free: 2.406 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.03165, allocations: 144.5 kB / 297.3 MB, free: 2.262 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.03217, allocations: 263.1 kB / 297.6 MB, free: 2.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08828/0.1205, allocations: 2.452 MB / 300 MB, free: 45.78 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.1208, allocations: 371.9 kB / 300.4 MB, free: 45.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004973/0.1213, allocations: 120.8 kB / 300.5 MB, free: 45.68 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.1218, allocations: 265 kB / 300.8 MB, free: 45.64 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1218, allocations: 2.062 kB / 300.8 MB, free: 45.64 MB / 282.7 MB Notification: Performance of Templates: time 0.01774/0.1395, allocations: 17.81 MB / 318.6 MB, free: 37.34 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 -lv LOG_STATS > ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.753192047122866]