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.001193/0.001193, allocations: 72.19 kB / 9.903 MB, free: 0.7812 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001781/0.002974, allocations: 435.8 kB / 10.33 MB, free: 364 kB / 10.45 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.001244/0.001244, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001634/0.002878, allocations: 463.6 kB / 11.68 MB, free: 2.48 MB / 13.93 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.7748/0.7748, allocations: 158.6 MB / 171 MB, free: 2.582 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1283/0.9031, allocations: 49.5 MB / 220.5 MB, free: 1.449 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.02835/0.02835, allocations: 5.565 MB / 226.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003412/0.03176, allocations: 1.983 MB / 228.8 MB, free: 9.148 MB / 234.7 MB " [Timeout remaining time 180] Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-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.733e-06/1.733e-06, allocations: 0 / 230.1 MB, free: 7.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.409e-05/1.582e-05, allocations: 8.281 kB / 230.1 MB, free: 7.836 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ElectricalEnergyStorage.Examples.Impedance): time 0.005313/0.005328, allocations: 4.582 MB / 234.7 MB, free: 3.227 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.00807, allocations: 1.998 MB / 236.7 MB, free: 1.215 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003253/0.008395, allocations: 19.88 kB / 236.7 MB, free: 1.195 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006183/0.009013, allocations: 373.8 kB / 237.1 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004342/0.009448, allocations: 305.9 kB / 237.4 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.009923, allocations: 359.6 kB / 237.7 MB, free: 180 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002239/0.01216, allocations: 2.679 MB / 240.4 MB, free: 13.5 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00096/0.01312, allocations: 0.846 MB / 241.3 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.01461, allocations: 1.642 MB / 242.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009777/0.01559, allocations: 0.963 MB / 243.9 MB, free: 9.965 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003267/0.01591, allocations: 328 kB / 244.2 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002522/0.01617, allocations: 332 kB / 244.5 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002621/0.01643, allocations: 442.9 kB / 244.9 MB, free: 8.887 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005052/0.01693, allocations: 0.6122 MB / 245.6 MB, free: 8.273 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.01816, allocations: 1.702 MB / 247.3 MB, free: 6.566 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.42e-05/0.01818, allocations: 3.938 kB / 247.3 MB, free: 6.562 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.01818, allocations: 0 / 247.3 MB, free: 6.562 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.976e-05/0.01821, allocations: 0 / 247.3 MB, free: 6.562 MB / 250.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.002528/0.02074, allocations: 2.28 MB / 249.5 MB, free: 4.242 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.02076, allocations: 12.03 kB / 249.6 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.021, allocations: 216.8 kB / 249.8 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008867/0.02189, allocations: 0.803 MB / 250.6 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.006e-05/0.02196, allocations: 106.8 kB / 250.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.02209, allocations: 128.4 kB / 250.8 MB, free: 2.945 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.02324, allocations: 1.144 MB / 251.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.02326, allocations: 8.141 kB / 251.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.861e-05/0.02334, allocations: 52.38 kB / 252 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.02336, allocations: 31.94 kB / 252 MB, free: 1.59 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005426/0.0239, allocations: 363.3 kB / 252.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/0.02757, allocations: 4.187 MB / 256.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.02841, allocations: 0.6049 MB / 257.2 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.02863, allocations: 158.8 kB / 257.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.02866, allocations: 12.48 kB / 257.3 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003377/0.029, allocations: 450 kB / 257.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=59): time 1.443e-06/0.029, allocations: 3.938 kB / 257.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=59): time 0.0004584/0.02946, allocations: 328.8 kB / 258.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.0295, allocations: 63.91 kB / 258.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006424/0.03014, allocations: 0.8255 MB / 259 MB, free: 10.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.03018, allocations: 41.7 kB / 259 MB, free: 10.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.03045, allocations: 0.5687 MB / 259.6 MB, free: 9.766 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.03056, allocations: 222.1 kB / 259.8 MB, free: 9.547 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.03072, allocations: 142.5 kB / 260 MB, free: 9.402 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.0308, allocations: 337.9 kB / 260.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001491/0.03095, allocations: 110.5 kB / 260.4 MB, free: 8.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.0312, allocations: 427.7 kB / 260.8 MB, free: 8.41 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004889/0.03169, allocations: 0.5295 MB / 261.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.03169, allocations: 0 / 261.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0005042/0.0322, allocations: 488.6 kB / 261.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.03224, allocations: 41.83 kB / 261.9 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.03224, allocations: 4 kB / 261.9 MB, free: 7.246 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.03226, allocations: 12 kB / 261.9 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.03278, allocations: 227.7 kB / 262.1 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.03279, allocations: 8 kB / 262.1 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.03303, allocations: 87.5 kB / 262.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.03307, allocations: 24 kB / 262.2 MB, free: 6.895 MB / 266.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.000263/0.03333, allocations: 181.2 kB / 262.4 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.987e-05/0.03342, allocations: 87.84 kB / 262.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004171/0.03384, allocations: 353.8 kB / 262.8 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.03384, allocations: 12 kB / 262.8 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.03385, allocations: 0 / 262.8 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.03385, allocations: 3.984 kB / 262.8 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.03521, allocations: 1.348 MB / 264.2 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.03521, allocations: 0 / 264.2 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003974/0.03561, allocations: 163.9 kB / 264.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.03573, allocations: 107.1 kB / 264.5 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.03573, allocations: 7.938 kB / 264.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/0.03577, allocations: 27.86 kB / 264.5 MB, free: 4.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.03578, allocations: 4 kB / 264.5 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.03578, allocations: 0 / 264.5 MB, free: 4.559 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005201/0.0363, allocations: 0.5395 MB / 265 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.557e-05/0.03638, allocations: 24 kB / 265.1 MB, free: 3.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.03658, allocations: 39.97 kB / 265.1 MB, free: 3.934 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.03665, allocations: 40.36 kB / 265.1 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.03667, allocations: 15.94 kB / 265.2 MB, free: 3.879 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003686/0.03704, allocations: 434.8 kB / 265.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03704, allocations: 0 / 265.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004375/0.03748, allocations: 331 kB / 265.9 MB, free: 3.121 MB / 266.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.0001166/0.03759, allocations: 112.4 kB / 266 MB, free: 3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003937/0.03799, allocations: 390.9 kB / 266.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.059e-05/0.03801, allocations: 21.44 kB / 266.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.03817, allocations: 144.6 kB / 266.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005891/0.03876, allocations: 344.7 kB / 266.9 MB, free: 2.102 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006614/0.04537, allocations: 2.537 MB / 269.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.04567, allocations: 367.5 kB / 269.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003276/0.046, allocations: 124 kB / 269.9 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004527/0.04645, allocations: 265.2 kB / 270.2 MB, free: 14.75 MB / 282.7 MB Notification: Performance of SimCode: time 1.333e-06/0.04645, allocations: 0 / 270.2 MB, free: 14.75 MB / 282.7 MB Notification: Performance of Templates: time 0.1141/0.1605, allocations: 18.65 MB / 288.8 MB, free: 38.32 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.5406539365649223]