Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001389/0.001389, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001402/0.001402, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.446/1.446, allocations: 230.4 MB / 251.1 MB, free: 8.504 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 71.83 kB / 369 MB, free: 6.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2764, allocations: 53.32 MB / 422.3 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004609/0.281, allocations: 2.902 MB / 425.2 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001818/0.2828, allocations: 0.8884 MB / 426.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001883/0.283, allocations: 15.88 kB / 426.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.2832, allocations: 51.44 kB / 426.1 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003265/0.2835, allocations: 119.2 kB / 426.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.2839, allocations: 227.6 kB / 426.5 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006671/0.2846, allocations: 0.5374 MB / 427 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.2848, allocations: 79.11 kB / 427.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.285, allocations: 195.3 kB / 427.3 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.2854, allocations: 223.1 kB / 427.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.065e-05/0.2854, allocations: 48 kB / 427.6 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.2855, allocations: 48 kB / 427.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001147/0.2856, allocations: 107.6 kB / 427.7 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.2858, allocations: 199 kB / 427.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006839/0.2865, allocations: 0.5014 MB / 428.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2865, allocations: 0 / 428.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2865, allocations: 0 / 428.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2865, allocations: 0 / 428.4 MB, free: 1.711 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.001848/0.2884, allocations: 0.7441 MB / 429.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.2884, allocations: 12.03 kB / 429.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.2885, allocations: 44.7 kB / 429.2 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.289, allocations: 339.6 kB / 429.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.2891, allocations: 80.52 kB / 429.6 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.2892, allocations: 28.38 kB / 429.6 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.2897, allocations: 287.9 kB / 429.9 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.2897, allocations: 3.953 kB / 429.9 MB, free: 60 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.2898, allocations: 12 kB / 429.9 MB, free: 48 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2898, allocations: 4 kB / 429.9 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004358/0.2902, allocations: 165.3 kB / 430.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003311/0.2935, allocations: 1.472 MB / 431.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.2937, allocations: 101.2 kB / 431.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.2938, allocations: 53.77 kB / 431.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.2938, allocations: 0 / 431.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/0.2939, allocations: 38.56 kB / 431.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.2939, allocations: 0 / 431.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.003299/0.2972, allocations: 1.072 MB / 432.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.75e-05/0.2973, allocations: 114.7 kB / 432.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003709/0.2977, allocations: 324.4 kB / 433.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.2977, allocations: 33.7 kB / 433.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.2979, allocations: 208.4 kB / 433.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.857e-05/0.2979, allocations: 43.59 kB / 433.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.2981, allocations: 77.64 kB / 433.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.2982, allocations: 338.8 kB / 433.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.2986, allocations: 151.9 kB / 434.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.299, allocations: 256.3 kB / 434.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006552/0.2997, allocations: 350 kB / 434.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2997, allocations: 0 / 434.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01021/0.3099, allocations: 1.313 MB / 436 MB, free: 9.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.3099, allocations: 8 kB / 436 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3099, allocations: 4 kB / 436 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.3219, allocations: 1.153 MB / 437.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004786/0.3224, allocations: 75.86 kB / 437.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.3347, allocations: 5.334 MB / 442.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006369/0.3353, allocations: 35.91 kB / 442.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.3354, allocations: 19.98 kB / 442.6 MB, free: 2.711 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.0002297/0.3356, allocations: 149.8 kB / 442.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.587e-05/0.3357, allocations: 31.75 kB / 442.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.3357, allocations: 26.7 kB / 442.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3357, allocations: 7.938 kB / 442.8 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3357, allocations: 3.938 kB / 442.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.3358, allocations: 7.922 kB / 442.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.337, allocations: 0.7474 MB / 443.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.337, allocations: 4 kB / 443.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003764/0.3374, allocations: 43.95 kB / 443.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.3374, allocations: 7.984 kB / 443.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.3374, allocations: 8.016 kB / 443.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3374, allocations: 0 / 443.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3374, allocations: 0 / 443.7 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008589/0.3383, allocations: 0.525 MB / 444.2 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.862e-05/0.3384, allocations: 108.9 kB / 444.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/0.3384, allocations: 8 kB / 444.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000419/0.3388, allocations: 31.97 kB / 444.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/0.3389, allocations: 7.984 kB / 444.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.257e-05/0.3389, allocations: 11.98 kB / 444.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002506/0.3392, allocations: 223.1 kB / 444.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3392, allocations: 0 / 444.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.3397, allocations: 104 kB / 444.7 MB, free: 0.5703 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.0001512/0.3399, allocations: 99.19 kB / 444.8 MB, free: 472 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.342, allocations: 0.7316 MB / 445.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.342, allocations: 3.938 kB / 445.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.3423, allocations: 96.12 kB / 445.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005735/0.3429, allocations: 68.95 kB / 445.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.3442, allocations: 0.6124 MB / 446.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004563/0.3447, allocations: 0.7717 MB / 447 MB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001663/0.3448, allocations: 34.28 kB / 447.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.3449, allocations: 27.41 kB / 447.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3449, allocations: 0 / 447.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of Templates: time 0.01537/0.3603, allocations: 8.847 MB / 456 MB, free: 5.234 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1) [Timeout 480]