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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package ElectricalEnergyStorage with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") translateModel(ElectricalEnergyStorage.Examples.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009883/0.0009882, allocations: 193.9 kB / 7.466 MB, free: 1.547 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricalEnergyStorage 3.2.2-master/package.mo): time 0.04645/0.04645, allocations: 7.032 MB / 14.91 MB, free: 1.855 MB / 12.04 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9501/0.9501, allocations: 194.2 MB / 211 MB, free: 5.117 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001553/0.001553, allocations: 121.3 kB / 257.5 MB, free: 8.371 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 3.857e-06/3.888e-06, allocations: 0 / 309.5 MB, free: 4.297 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.172, allocations: 45.97 MB / 355.5 MB, free: 43.99 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07651/0.2485, allocations: 78.36 MB / 433.8 MB, free: 4.277 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001503/0.2487, allocations: 75.95 kB / 433.9 MB, free: 4.203 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.06326/0.3119, allocations: 31.58 MB / 465.5 MB, free: 4.734 MB / 354.8 MB Notification: Performance of Transformations before backend: time 0.0001258/0.3121, allocations: 28 kB / 465.5 MB, free: 4.707 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003067/0.3152, allocations: 1.575 MB / 467.1 MB, free: 3.074 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.3152, allocations: 11.97 kB / 467.1 MB, free: 3.062 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004252/0.3157, allocations: 181.8 kB / 467.3 MB, free: 2.883 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/0.3181, allocations: 1.49 MB / 468.8 MB, free: 1.336 MB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.3182, allocations: 44 kB / 468.8 MB, free: 1.293 MB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/0.3184, allocations: 75.91 kB / 468.9 MB, free: 1.219 MB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00218/0.3205, allocations: 1.278 MB / 470.2 MB, free: 15.94 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/0.3227, allocations: 1.268 MB / 471.4 MB, free: 14.64 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.3227, allocations: 3.938 kB / 471.4 MB, free: 14.64 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.943e-05/0.3229, allocations: 0 / 471.4 MB, free: 14.64 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.41e-05/0.3229, allocations: 28 kB / 471.5 MB, free: 14.61 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007885/0.3308, allocations: 5.614 MB / 477.1 MB, free: 8.93 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.3324, allocations: 0.9818 MB / 478.1 MB, free: 7.934 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007105/0.3331, allocations: 0.5578 MB / 478.6 MB, free: 7.371 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.3332, allocations: 4.5 kB / 478.6 MB, free: 7.367 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006914/0.3339, allocations: 0.5336 MB / 479.2 MB, free: 6.801 MB / 370.8 MB Notification: Performance of pre-optimization done (n=59): time 1.883e-06/0.3339, allocations: 4 kB / 479.2 MB, free: 6.797 MB / 370.8 MB Notification: Performance of matching and sorting (n=59): time 0.001225/0.3351, allocations: 0.8623 MB / 480 MB, free: 5.926 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.3352, allocations: 166.6 kB / 480.2 MB, free: 5.727 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.337, allocations: 1.345 MB / 481.5 MB, free: 4.359 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 5.16e-05/0.337, allocations: 25.7 kB / 481.6 MB, free: 4.328 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003091/0.3373, allocations: 0.4988 MB / 482.1 MB, free: 3.82 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.3375, allocations: 193 kB / 482.2 MB, free: 3.629 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.753e-05/0.3376, allocations: 4 kB / 482.2 MB, free: 3.625 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3377, allocations: 337.9 kB / 482.6 MB, free: 3.289 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005354/0.3382, allocations: 409.2 kB / 483 MB, free: 2.887 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/0.3389, allocations: 0.5318 MB / 483.5 MB, free: 2.316 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006332/0.3395, allocations: 492.2 kB / 484 MB, free: 1.836 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3395, allocations: 0 / 484 MB, free: 1.836 MB / 370.8 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001476/0.341, allocations: 1.084 MB / 485.1 MB, free: 0.7461 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.341, allocations: 4 kB / 485.1 MB, free: 0.7422 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.341, allocations: 4 kB / 485.1 MB, free: 0.7383 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.3411, allocations: 7.906 kB / 485.1 MB, free: 0.7305 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009072/0.342, allocations: 216 kB / 485.3 MB, free: 0.5195 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.342, allocations: 4 kB / 485.3 MB, free: 0.5156 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.3425, allocations: 75.42 kB / 485.4 MB, free: 452 kB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.879e-05/0.3426, allocations: 28 kB / 485.4 MB, free: 424 kB / 370.8 MB Warning: Assuming fixed start value for the following 3 variables: rCseriesLinear.rcseriesLinear.rclinear[3].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[2].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] rCseriesLinear.rcseriesLinear.rclinear[1].capacitor.variableCapacitor.Q:VARIABLE(unit = "C" ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001982/0.3428, allocations: 142.1 kB / 485.5 MB, free: 276 kB / 370.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.3429, allocations: 106.7 kB / 485.6 MB, free: 168 kB / 370.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09178/0.4347, allocations: 0.9338 MB / 486.6 MB, free: 130.5 MB / 370.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4348, allocations: 3.969 kB / 486.6 MB, free: 130.5 MB / 370.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4348, allocations: 0 / 486.6 MB, free: 130.5 MB / 370.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.4348, allocations: 7.188 kB / 486.6 MB, free: 130.5 MB / 370.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00294/0.4377, allocations: 2.69 MB / 489.3 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.4377, allocations: 3.375 kB / 489.3 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008355/0.4386, allocations: 184.1 kB / 489.5 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.142e-06/0.4386, allocations: 3.906 kB / 489.5 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.272e-05/0.4387, allocations: 13.11 kB / 489.5 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.4387, allocations: 3.938 kB / 489.5 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4387, allocations: 3.688 kB / 489.5 MB, free: 130.2 MB / 370.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001457/0.4401, allocations: 1.569 MB / 491.1 MB, free: 130.1 MB / 370.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/0.4404, allocations: 262.9 kB / 491.3 MB, free: 130 MB / 370.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.4406, allocations: 16.34 kB / 491.3 MB, free: 130 MB / 370.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.4411, allocations: 47.56 kB / 491.4 MB, free: 130 MB / 370.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.777e-05/0.4412, allocations: 35.39 kB / 491.4 MB, free: 130 MB / 370.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.4412, allocations: 18.5 kB / 491.4 MB, free: 130 MB / 370.8 MB Notification: Performance of sort global known variables: time 0.001029/0.4422, allocations: 1.029 MB / 492.5 MB, free: 129.9 MB / 370.8 MB Notification: Performance of remove unused functions: time 0.0006065/0.4429, allocations: 301.2 kB / 492.8 MB, free: 129.9 MB / 370.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00023/0.4431, allocations: 197.6 kB / 492.9 MB, free: 129.8 MB / 370.8 MB Notification: Performance of simCode: created initialization part: time 0.000939/0.444, allocations: 0.915 MB / 493.9 MB, free: 129.8 MB / 370.8 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.4441, allocations: 3.719 kB / 493.9 MB, free: 129.8 MB / 370.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.4445, allocations: 434 kB / 494.3 MB, free: 129.8 MB / 370.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.4452, allocations: 217.4 kB / 494.5 MB, free: 129.8 MB / 370.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003535/0.4488, allocations: 2.644 MB / 497.1 MB, free: 129.3 MB / 370.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001114/0.4499, allocations: 1.754 MB / 498.9 MB, free: 128.6 MB / 370.8 MB Notification: Performance of SimCode: time 2.7e-07/0.4499, allocations: 3.656 kB / 498.9 MB, free: 128.6 MB / 370.8 MB Notification: Performance of Templates: time 0.01816/0.4681, allocations: 13.33 MB / 0.5002 GB, free: 127.8 MB / 370.8 MB make -j1 -f ElectricalEnergyStorage_ElectricalEnergyStorage.Examples.Impedance.makefile (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)