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.001198/0.001198, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001013/0.001013, allocations: 97.58 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2338, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004394/0.2383, allocations: 2.933 MB / 410 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.2398, allocations: 0.8826 MB / 410.9 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004258/0.2403, allocations: 8 kB / 410.9 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.2405, allocations: 43.62 kB / 410.9 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.241, allocations: 98.05 kB / 411 MB, free: 23.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003803/0.2413, allocations: 207.8 kB / 411.2 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004916/0.2419, allocations: 0.5061 MB / 411.7 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.2421, allocations: 105.2 kB / 411.8 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002395/0.2423, allocations: 167.3 kB / 412 MB, free: 22.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.2426, allocations: 207.1 kB / 412.2 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.16e-05/0.2426, allocations: 24 kB / 412.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.438e-05/0.2427, allocations: 24 kB / 412.2 MB, free: 22.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.992e-05/0.2428, allocations: 83.59 kB / 412.3 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.2429, allocations: 183 kB / 412.5 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.2432, allocations: 468 kB / 413 MB, free: 21.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2433, allocations: 0 / 413 MB, free: 21.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2433, allocations: 3.938 kB / 413 MB, free: 21.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.2433, allocations: 4 kB / 413 MB, free: 21.87 MB / 298.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.001662/0.2449, allocations: 0.7443 MB / 413.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.245, allocations: 12.03 kB / 413.7 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.2451, allocations: 36.56 kB / 413.8 MB, free: 21.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/0.2456, allocations: 331.3 kB / 414.1 MB, free: 20.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001113/0.2458, allocations: 84.52 kB / 414.2 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.676e-05/0.2458, allocations: 32.38 kB / 414.2 MB, free: 20.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004236/0.2463, allocations: 279.9 kB / 414.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.2463, allocations: 4 kB / 414.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.2463, allocations: 8 kB / 414.5 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-06/0.2463, allocations: 12 kB / 414.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003268/0.2467, allocations: 157.3 kB / 414.6 MB, free: 20.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.2493, allocations: 1.48 MB / 416.1 MB, free: 18.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.2495, allocations: 97.25 kB / 416.2 MB, free: 18.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001304/0.2496, allocations: 53.81 kB / 416.3 MB, free: 18.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.2496, allocations: 4 kB / 416.3 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.2497, allocations: 34.5 kB / 416.3 MB, free: 18.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.973e-06/0.2497, allocations: 0 / 416.3 MB, free: 18.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.002709/0.2524, allocations: 1.067 MB / 417.4 MB, free: 17.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.2524, allocations: 110.8 kB / 417.5 MB, free: 16.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.2527, allocations: 324.4 kB / 417.8 MB, free: 16.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.2528, allocations: 29.7 kB / 417.8 MB, free: 16.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.697e-05/0.2529, allocations: 204.1 kB / 418 MB, free: 16.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/0.2529, allocations: 51.3 kB / 418.1 MB, free: 16.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001259/0.2531, allocations: 73.56 kB / 418.2 MB, free: 16.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.997e-05/0.2531, allocations: 342.8 kB / 418.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.2534, allocations: 155.9 kB / 418.6 MB, free: 15.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003462/0.2538, allocations: 243.9 kB / 418.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005323/0.2543, allocations: 354 kB / 419.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.2543, allocations: 0 / 419.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008913/0.2633, allocations: 1.311 MB / 420.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2633, allocations: 4 kB / 420.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.2633, allocations: 4 kB / 420.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01023/0.2736, allocations: 1.157 MB / 421.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.2741, allocations: 63.94 kB / 421.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009691/0.2838, allocations: 4.942 MB / 426.7 MB, free: 7.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006498/0.2844, allocations: 39.97 kB / 426.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.802e-05/0.2846, allocations: 11.98 kB / 426.8 MB, free: 7.32 MB / 298.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 (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.000249/0.2848, allocations: 153.7 kB / 426.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.2849, allocations: 39.58 kB / 426.9 MB, free: 7.121 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.075e-05/0.285, allocations: 22.62 kB / 427 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.285, allocations: 4 kB / 427 MB, free: 7.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.285, allocations: 3.984 kB / 427 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.285, allocations: 0 / 427 MB, free: 7.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.286, allocations: 0.7551 MB / 427.7 MB, free: 6.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2861, allocations: 0 / 427.7 MB, free: 6.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003505/0.2864, allocations: 51.88 kB / 427.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.2864, allocations: 0 / 427.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.23e-05/0.2865, allocations: 7.984 kB / 427.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2865, allocations: 0 / 427.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2865, allocations: 0 / 427.8 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.2885, allocations: 1.792 MB / 429.6 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.65e-05/0.2886, allocations: 108.7 kB / 429.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.2886, allocations: 4 kB / 429.7 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003819/0.289, allocations: 32.02 kB / 429.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.474e-05/0.2891, allocations: 11.97 kB / 429.7 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.2891, allocations: 7.984 kB / 429.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001873/0.2893, allocations: 223.1 kB / 430 MB, free: 3.891 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2893, allocations: 0 / 430 MB, free: 3.891 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007379/0.2901, allocations: 120 kB / 430.1 MB, free: 3.773 MB / 298.7 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.0001315/0.2902, allocations: 107.2 kB / 430.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.2922, allocations: 0.7278 MB / 430.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.2923, allocations: 0 / 430.9 MB, free: 2.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002272/0.2925, allocations: 99.81 kB / 431 MB, free: 2.805 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.2931, allocations: 77.31 kB / 431.1 MB, free: 2.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.2945, allocations: 0.8349 MB / 431.9 MB, free: 1.867 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.2947, allocations: 0.7871 MB / 432.7 MB, free: 1.055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002107/0.2949, allocations: 26.3 kB / 432.7 MB, free: 1.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.295, allocations: 31.41 kB / 432.8 MB, free: 1 MB / 298.7 MB Notification: Performance of SimCode: time 7.12e-07/0.2951, allocations: 0 / 432.8 MB, free: 1 MB / 298.7 MB Notification: Performance of Templates: time 0.01572/0.3108, allocations: 8.745 MB / 441.5 MB, free: 8.281 MB / 314.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)