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.0009636/0.0009632, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 225.6 MB / 234.8 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000883/0.0008832, allocations: 99.2 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.944e-05/1.936e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.124, allocations: 51.48 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3434/0.4675, allocations: 81.79 MB / 477 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/0.4677, allocations: 74.12 kB / 477 MB, free: 10.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0188/0.4866, allocations: 7.283 MB / 484.3 MB, free: 5.262 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4866, allocations: 3.938 kB / 484.3 MB, free: 5.258 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.938e-05/0.4866, allocations: 8 kB / 484.3 MB, free: 5.25 MB / 346.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.0009567/0.4876, allocations: 0.6122 MB / 484.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.4876, allocations: 8.031 kB / 484.9 MB, free: 4.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.66e-05/0.4877, allocations: 42.91 kB / 485 MB, free: 4.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.4883, allocations: 372.8 kB / 485.4 MB, free: 4.215 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.086e-05/0.4884, allocations: 71.56 kB / 485.4 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.938e-05/0.4884, allocations: 23.91 kB / 485.4 MB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002069/0.4886, allocations: 122.7 kB / 485.6 MB, free: 4.043 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.489, allocations: 241.1 kB / 485.8 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.489, allocations: 0 / 485.8 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.489, allocations: 4 kB / 485.8 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-06/0.489, allocations: 4 kB / 485.8 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002293/0.4913, allocations: 1.44 MB / 487.2 MB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.4914, allocations: 86.45 kB / 487.3 MB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.916e-05/0.4915, allocations: 39.72 kB / 487.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.4915, allocations: 0 / 487.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.4916, allocations: 46.12 kB / 487.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.4916, allocations: 0 / 487.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001906/0.4935, allocations: 0.8993 MB / 488.3 MB, free: 1.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.4935, allocations: 102.8 kB / 488.4 MB, free: 1.324 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.4937, allocations: 280.9 kB / 488.7 MB, free: 1.102 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.237e-05/0.4938, allocations: 25.7 kB / 488.7 MB, free: 1.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.537e-05/0.4939, allocations: 203.3 kB / 488.9 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.4939, allocations: 46.05 kB / 489 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.4939, allocations: 4 kB / 489 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.979e-05/0.494, allocations: 349 kB / 489.3 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.4942, allocations: 128.6 kB / 489.4 MB, free: 468 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.4944, allocations: 210.5 kB / 489.6 MB, free: 280 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.4946, allocations: 150 kB / 489.8 MB, free: 192 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4947, allocations: 4 kB / 489.8 MB, free: 188 kB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009693/0.5043, allocations: 1.278 MB / 491.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.5044, allocations: 4.75 kB / 491.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5044, allocations: 4 kB / 491.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01255/0.517, allocations: 1.233 MB / 492.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.5174, allocations: 75.86 kB / 492.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009995/0.5274, allocations: 4.876 MB / 497.3 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.528, allocations: 47.27 kB / 497.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.815e-05/0.528, allocations: 15.97 kB / 497.3 MB, free: 9.602 MB / 362.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 () * 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.0001234/0.5281, allocations: 119 kB / 497.4 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.906e-05/0.5282, allocations: 35.58 kB / 497.5 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.357e-05/0.5283, allocations: 21.08 kB / 497.5 MB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.5283, allocations: 4 kB / 497.5 MB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-06/0.5283, allocations: 4 kB / 497.5 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.5283, allocations: 0 / 497.5 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007914/0.5291, allocations: 0.6521 MB / 498.1 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5291, allocations: 3.953 kB / 498.2 MB, free: 8.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003396/0.5295, allocations: 56.94 kB / 498.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.5295, allocations: 0 / 498.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.5295, allocations: 11.98 kB / 498.2 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.5295, allocations: 3.938 kB / 498.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.5295, allocations: 0 / 498.2 MB, free: 8.785 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004903/0.53, allocations: 475.8 kB / 498.7 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.78e-05/0.5301, allocations: 100.5 kB / 498.8 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.5302, allocations: 0 / 498.8 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/0.5305, allocations: 36.03 kB / 498.8 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.5306, allocations: 15.22 kB / 498.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.5306, allocations: 11.92 kB / 498.8 MB, free: 8.227 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001872/0.5308, allocations: 201.5 kB / 499 MB, free: 8.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5308, allocations: 0 / 499 MB, free: 8.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000493/0.5313, allocations: 92 kB / 499.1 MB, free: 7.98 MB / 362.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 () * 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.0001481/0.5315, allocations: 107.2 kB / 499.2 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.5331, allocations: 0.6604 MB / 499.9 MB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.5331, allocations: 0 / 499.9 MB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001237/0.5332, allocations: 81.64 kB / 500 MB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.5337, allocations: 60.69 kB / 0.4883 GB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007938/0.5345, allocations: 390.4 kB / 0.4887 GB, free: 6.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.5348, allocations: 0.7834 MB / 0.4895 GB, free: 6.039 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001951/0.535, allocations: 37.84 kB / 0.4895 GB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.348e-05/0.5351, allocations: 31.34 kB / 0.4895 GB, free: 5.973 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5351, allocations: 0 / 0.4895 GB, free: 5.973 MB / 362.7 MB Notification: Performance of Templates: time 0.01199/0.5471, allocations: 7.776 MB / 0.4971 GB, free: 14.31 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)