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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001079/0.001079, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 61.23 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09028, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004116/0.09443, allocations: 2.883 MB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.09578, allocations: 0.8962 MB / 362.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.09593, allocations: 4 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001696/0.09611, allocations: 55.38 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.09638, allocations: 115.2 kB / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.09672, allocations: 227.6 kB / 363.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.09722, allocations: 0.5334 MB / 363.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.09744, allocations: 123 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.09764, allocations: 195.4 kB / 363.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.09792, allocations: 231.1 kB / 364.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.09799, allocations: 44 kB / 364.2 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.995e-05/0.09806, allocations: 48 kB / 364.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.14e-05/0.09816, allocations: 95.67 kB / 364.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001676/0.09833, allocations: 207 kB / 364.5 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004311/0.09877, allocations: 0.4905 MB / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.09878, allocations: 0 / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.09878, allocations: 0 / 365 MB, free: 7.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.0988, allocations: 4 kB / 365 MB, free: 7.211 MB / 302.1 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.001625/0.1004, allocations: 0.7443 MB / 365.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.1005, allocations: 8.031 kB / 365.8 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.553e-05/0.1006, allocations: 36.56 kB / 365.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004509/0.101, allocations: 339.3 kB / 366.1 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.1011, allocations: 80.52 kB / 366.2 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.1012, allocations: 28.38 kB / 366.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.1017, allocations: 291.8 kB / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1017, allocations: 0 / 366.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.1017, allocations: 12 kB / 366.5 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.1018, allocations: 4 kB / 366.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.1021, allocations: 166.9 kB / 366.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.1048, allocations: 1.468 MB / 368.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001891/0.105, allocations: 105.2 kB / 368.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1051, allocations: 45.83 kB / 368.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.1052, allocations: 0 / 368.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.1052, allocations: 46.48 kB / 368.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.122e-06/0.1052, allocations: 4 kB / 368.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003045/0.1083, allocations: 1.063 MB / 369.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/0.1083, allocations: 114.7 kB / 369.5 MB, free: 2.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000333/0.1087, allocations: 324.4 kB / 369.9 MB, free: 1.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.1087, allocations: 29.7 kB / 369.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1089, allocations: 208 kB / 370.1 MB, free: 1.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.982e-05/0.1089, allocations: 47.3 kB / 370.1 MB, free: 1.695 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.1091, allocations: 73.66 kB / 370.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1092, allocations: 334.8 kB / 370.5 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003498/0.1095, allocations: 155.9 kB / 370.7 MB, free: 1.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004048/0.11, allocations: 247.9 kB / 370.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.1106, allocations: 351 kB / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1106, allocations: 0 / 371.3 MB, free: 480 kB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.1541/0.2647, allocations: 1.318 MB / 372.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2647, allocations: 10.88 kB / 372.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2648, allocations: 8.469 kB / 372.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/0.2763, allocations: 1.156 MB / 373.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/0.2769, allocations: 67.12 kB / 373.8 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.2877, allocations: 5.319 MB / 379.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005461/0.2882, allocations: 37.23 kB / 379.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.2883, allocations: 15.7 kB / 379.2 MB, free: 16.32 MB / 302.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,1), (4,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001571/0.2885, allocations: 152.4 kB / 379.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.745e-05/0.2885, allocations: 30.06 kB / 379.4 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.566e-05/0.2886, allocations: 30.39 kB / 379.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2886, allocations: 5.594 kB / 379.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.2886, allocations: 0 / 379.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2886, allocations: 2.953 kB / 379.4 MB, free: 16.15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.2896, allocations: 0.7556 MB / 380.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2896, allocations: 0 / 380.2 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.29, allocations: 49.91 kB / 380.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.29, allocations: 1.062 kB / 380.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.2901, allocations: 11.39 kB / 380.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2901, allocations: 3.828 kB / 380.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2901, allocations: 5.469 kB / 380.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007433/0.2908, allocations: 0.5198 MB / 380.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.2909, allocations: 102 kB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.663e-05/0.2909, allocations: 7.047 kB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003935/0.2913, allocations: 23.39 kB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.827e-05/0.2914, allocations: 15.92 kB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.2915, allocations: 7.312 kB / 380.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.2917, allocations: 228.3 kB / 381.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2917, allocations: 96 / 381.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.2922, allocations: 102.2 kB / 381.2 MB, free: 15.06 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator2.y,integrator1.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 (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.0001112/0.2923, allocations: 109.4 kB / 381.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.2942, allocations: 0.7322 MB / 382.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.2943, allocations: 1.312 kB / 382.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.2945, allocations: 106.2 kB / 382.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005511/0.2951, allocations: 72.02 kB / 382.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.2962, allocations: 0.6042 MB / 382.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.2965, allocations: 0.7746 MB / 383.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.2966, allocations: 33.66 kB / 383.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2968, allocations: 27 kB / 383.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2968, allocations: 4.531 kB / 383.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01342/0.3102, allocations: 8.746 MB / 392.4 MB, free: 9.973 MB / 302.1 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 -s gbode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)