Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009536/0.0009537, allocations: 202.1 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.2 MB / 245 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000834/0.0008339, allocations: 96.06 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002164, allocations: 8 kB / 357.9 MB, free: 9.293 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1855, allocations: 51.49 MB / 409.4 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08844/0.274, allocations: 82.52 MB / 491.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.2742, allocations: 71.97 kB / 492 MB, free: 7.977 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0207/0.2949, allocations: 7.35 MB / 499.4 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.295, allocations: 4 kB / 499.4 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.295, allocations: 4 kB / 499.4 MB, free: 0.5938 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001292/0.2963, allocations: 0.6702 MB / 0.4883 GB, free: 15.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.2963, allocations: 12.03 kB / 0.4883 GB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.572e-05/0.2964, allocations: 39.53 kB / 0.4884 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006449/0.2971, allocations: 374.2 kB / 0.4887 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.696e-05/0.2972, allocations: 79.95 kB / 0.4888 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.2973, allocations: 28 kB / 0.4888 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.2977, allocations: 292.7 kB / 0.4891 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.2977, allocations: 3.938 kB / 0.4891 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.2978, allocations: 15.94 kB / 0.4891 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.2978, allocations: 8 kB / 0.4891 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003218/0.2981, allocations: 169.2 kB / 0.4893 GB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002789/0.3009, allocations: 1.496 MB / 0.4908 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.3011, allocations: 109.2 kB / 0.4909 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.3011, allocations: 128 / 0.4909 GB, free: 13.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.3012, allocations: 46.55 kB / 0.4909 GB, free: 13.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.3012, allocations: 0 / 0.4909 GB, free: 13.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002802/0.304, allocations: 1.11 MB / 0.492 GB, free: 11.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.304, allocations: 110.8 kB / 0.4921 GB, free: 11.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.3043, allocations: 283.6 kB / 0.4924 GB, free: 11.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.3044, allocations: 33.7 kB / 0.4924 GB, free: 11.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.3045, allocations: 208.1 kB / 0.4926 GB, free: 11.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.3046, allocations: 43.36 kB / 0.4926 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.3046, allocations: 8 kB / 0.4926 GB, free: 11.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3047, allocations: 342.8 kB / 0.493 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000325/0.3051, allocations: 163.8 kB / 0.4931 GB, free: 10.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003737/0.3054, allocations: 248 kB / 0.4934 GB, free: 10.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.3058, allocations: 183.9 kB / 0.4935 GB, free: 10.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3058, allocations: 0 / 0.4935 GB, free: 10.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01142/0.3172, allocations: 1.376 MB / 0.4949 GB, free: 8.758 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3173, allocations: 6.5 kB / 0.4949 GB, free: 8.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3173, allocations: 4 kB / 0.4949 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01408/0.3314, allocations: 1.25 MB / 0.4961 GB, free: 7.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/0.3319, allocations: 67.88 kB / 0.4962 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/0.3442, allocations: 5.323 MB / 0.5014 GB, free: 1.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/0.3448, allocations: 43.92 kB / 0.5014 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.3449, allocations: 15.97 kB / 0.5014 GB, free: 1.766 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (integrator2.local_reset,integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 1,4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001967/0.3451, allocations: 157.5 kB / 0.5016 GB, free: 1.602 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/0.3452, allocations: 27.62 kB / 0.5016 GB, free: 1.574 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.045e-05/0.3452, allocations: 30.61 kB / 0.5016 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3452, allocations: 0 / 0.5016 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3452, allocations: 4 kB / 0.5016 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3452, allocations: 3.984 kB / 0.5016 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3463, allocations: 0.7552 MB / 0.5024 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3463, allocations: 0 / 0.5024 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.3467, allocations: 55.94 kB / 0.5024 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.3467, allocations: 4 kB / 0.5024 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.3467, allocations: 12.02 kB / 0.5025 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3467, allocations: 3.938 kB / 0.5025 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3468, allocations: 0 / 0.5025 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.3476, allocations: 0.5547 MB / 0.503 GB, free: 72 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1561/0.5037, allocations: 97.95 kB / 0.5031 GB, free: 95.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.5038, allocations: 3.094 kB / 0.5031 GB, free: 95.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/0.5043, allocations: 30.95 kB / 0.5031 GB, free: 95.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.542e-05/0.5044, allocations: 14.41 kB / 0.5031 GB, free: 95.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.935e-05/0.5044, allocations: 15.78 kB / 0.5032 GB, free: 95.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002968/0.5047, allocations: 221.5 kB / 0.5034 GB, free: 95.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5047, allocations: 0.875 kB / 0.5034 GB, free: 95.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006793/0.5054, allocations: 108.5 kB / 0.5035 GB, free: 95.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator1.y,integrator2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001415/0.5056, allocations: 112.6 kB / 0.5036 GB, free: 95.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.5077, allocations: 0.7507 MB / 0.5043 GB, free: 94.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5078, allocations: 0.875 kB / 0.5043 GB, free: 94.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002517/0.508, allocations: 108 kB / 0.5044 GB, free: 94.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.5085, allocations: 61.77 kB / 0.5045 GB, free: 94.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.5096, allocations: 0.6896 MB / 0.5051 GB, free: 94.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.5098, allocations: 0.7823 MB / 0.5059 GB, free: 93.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001974/0.5101, allocations: 35.7 kB / 0.5059 GB, free: 93.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.893e-05/0.5102, allocations: 28.7 kB / 0.506 GB, free: 93.76 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5102, allocations: 0 / 0.506 GB, free: 93.76 MB / 378.7 MB Notification: Performance of Templates: time 0.01062/0.5208, allocations: 8.681 MB / 0.5145 GB, free: 92.37 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)