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.00149/0.00149, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001713/0.001713, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.72/1.72, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4473/0.4485, allocations: 50.53 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004602/0.4532, allocations: 2.903 MB / 412.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.4549, allocations: 0.8807 MB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.4551, allocations: 7.938 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002183/0.4554, allocations: 51.45 kB / 413.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003183/0.4558, allocations: 119.1 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003903/0.4562, allocations: 219.7 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006515/0.4568, allocations: 0.5451 MB / 414 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.4571, allocations: 107.1 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.4574, allocations: 195.3 kB / 414.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.4579, allocations: 223.1 kB / 414.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.303e-05/0.458, allocations: 48 kB / 414.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.318e-05/0.458, allocations: 48 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.4582, allocations: 107.6 kB / 414.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001907/0.4584, allocations: 203 kB / 414.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000663/0.459, allocations: 0.4942 MB / 415.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.459, allocations: 0 / 415.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4591, allocations: 0 / 415.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.4591, allocations: 0 / 415.4 MB, free: 11.43 MB / 334.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.001669/0.4607, allocations: 0.7519 MB / 416.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.4608, allocations: 12.03 kB / 416.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.4609, allocations: 44.64 kB / 416.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005513/0.4615, allocations: 331.6 kB / 416.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.4616, allocations: 84.52 kB / 416.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.4617, allocations: 28.38 kB / 416.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/0.4623, allocations: 287.8 kB / 416.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.4623, allocations: 3.953 kB / 416.9 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.4624, allocations: 12 kB / 416.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.4624, allocations: 8 kB / 416.9 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003696/0.4627, allocations: 173.2 kB / 417.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.4656, allocations: 1.461 MB / 418.6 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002273/0.4658, allocations: 101.2 kB / 418.6 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.466, allocations: 53.81 kB / 418.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.466, allocations: 4 kB / 418.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4661, allocations: 34.56 kB / 418.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.4661, allocations: 0 / 418.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003091/0.4692, allocations: 1.079 MB / 419.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.4692, allocations: 106.8 kB / 419.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.4696, allocations: 324.5 kB / 420.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.4697, allocations: 37.64 kB / 420.3 MB, free: 6.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.4698, allocations: 204.5 kB / 420.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.505e-05/0.4699, allocations: 55.53 kB / 420.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.4701, allocations: 73.64 kB / 420.6 MB, free: 5.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.4703, allocations: 342.8 kB / 420.9 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/0.4706, allocations: 151.9 kB / 421.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.471, allocations: 247.8 kB / 421.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.4717, allocations: 353.7 kB / 421.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4717, allocations: 0 / 421.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008901/0.4806, allocations: 1.318 MB / 423 MB, free: 3.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.4807, allocations: 8 kB / 423 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.4807, allocations: 4 kB / 423 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01042/0.4911, allocations: 1.153 MB / 424.2 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.4916, allocations: 67.86 kB / 424.2 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01132/0.503, allocations: 5.341 MB / 429.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.5037, allocations: 43.91 kB / 429.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.5038, allocations: 11.98 kB / 429.6 MB, free: 12.42 MB / 350.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.0002513/0.504, allocations: 157.8 kB / 429.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-05/0.5041, allocations: 27.81 kB / 429.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.226e-05/0.5042, allocations: 30.61 kB / 429.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.5042, allocations: 4 kB / 429.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.5042, allocations: 0 / 429.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5042, allocations: 7.922 kB / 429.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.5053, allocations: 0.7435 MB / 430.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.5054, allocations: 4 kB / 430.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003403/0.5057, allocations: 47.95 kB / 430.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.5057, allocations: 96 / 430.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.5057, allocations: 15.86 kB / 430.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.5058, allocations: 7.922 kB / 430.7 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.5058, allocations: 3.938 kB / 430.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008169/0.5066, allocations: 0.5141 MB / 431.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.894e-05/0.5067, allocations: 108.9 kB / 431.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.589e-05/0.5067, allocations: 3.938 kB / 431.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003714/0.5071, allocations: 20.11 kB / 431.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.872e-05/0.5072, allocations: 27.97 kB / 431.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.5072, allocations: 7.984 kB / 431.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.5075, allocations: 223.1 kB / 431.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5075, allocations: 0 / 431.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005799/0.5081, allocations: 96 kB / 431.7 MB, free: 10.28 MB / 350.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.0001547/0.5082, allocations: 107.2 kB / 431.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002033/0.5103, allocations: 0.7395 MB / 432.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.5103, allocations: 4.062 kB / 432.5 MB, free: 9.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.5106, allocations: 103.9 kB / 432.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006231/0.5112, allocations: 78.47 kB / 432.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.5127, allocations: 0.6084 MB / 433.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004633/0.5132, allocations: 0.7793 MB / 434.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002166/0.5134, allocations: 34.28 kB / 434.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.5136, allocations: 27.41 kB / 434.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5136, allocations: 0 / 434.1 MB, free: 7.73 MB / 350.1 MB Notification: Performance of Templates: time 0.01742/0.531, allocations: 8.793 MB / 442.9 MB, free: 14.96 MB / 366.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 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)