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.001497/0.001497, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001881/0.001881, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001125, allocations: 62.45 kB / 306.9 MB, free: 1.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.1007, allocations: 50.54 MB / 357.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004517/0.1053, allocations: 2.941 MB / 360.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.107, allocations: 0.8729 MB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002591/0.1073, allocations: 4 kB / 361.3 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002256/0.1076, allocations: 39.69 kB / 361.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004035/0.108, allocations: 103.3 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004134/0.1084, allocations: 203.8 kB / 361.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005889/0.109, allocations: 0.4983 MB / 362.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002288/0.1092, allocations: 107.6 kB / 362.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.1095, allocations: 167.3 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.1098, allocations: 211.1 kB / 362.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.704e-05/0.1099, allocations: 24 kB / 362.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.053e-05/0.11, allocations: 24 kB / 362.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.11, allocations: 79.59 kB / 362.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.1102, allocations: 183.1 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.1106, allocations: 367.4 kB / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1106, allocations: 0 / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1106, allocations: 0 / 363.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.1106, allocations: 0 / 363.2 MB, free: 8.672 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.001894/0.1125, allocations: 0.7481 MB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1126, allocations: 16.03 kB / 364 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.1127, allocations: 36.56 kB / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.1131, allocations: 331.4 kB / 364.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.1133, allocations: 76.47 kB / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.253e-05/0.1133, allocations: 32.38 kB / 364.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.1138, allocations: 283.9 kB / 364.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.1139, allocations: 7.938 kB / 364.7 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.21e-05/0.1139, allocations: 8 kB / 364.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1139, allocations: 11.94 kB / 364.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003554/0.1143, allocations: 158 kB / 364.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002816/0.1171, allocations: 1.472 MB / 366.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.1173, allocations: 105.2 kB / 366.5 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1174, allocations: 49.81 kB / 366.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.1175, allocations: 4 kB / 366.5 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.1175, allocations: 30.56 kB / 366.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.1175, allocations: 0 / 366.6 MB, free: 5.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003148/0.1206, allocations: 1.064 MB / 367.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.822e-05/0.1207, allocations: 118.7 kB / 367.8 MB, free: 3.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000331/0.1211, allocations: 324.4 kB / 368.1 MB, free: 3.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.1211, allocations: 29.7 kB / 368.1 MB, free: 3.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.1213, allocations: 204 kB / 368.3 MB, free: 3.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.1213, allocations: 55.3 kB / 368.4 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/0.1215, allocations: 69.66 kB / 368.4 MB, free: 3.082 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.1216, allocations: 334.8 kB / 368.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003532/0.1219, allocations: 159.9 kB / 368.9 MB, free: 2.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.1224, allocations: 240 kB / 369.1 MB, free: 2.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.123, allocations: 357.2 kB / 369.5 MB, free: 1.934 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.123, allocations: 4.125 kB / 369.5 MB, free: 1.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009924/0.133, allocations: 1.318 MB / 370.8 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.133, allocations: 7.984 kB / 370.8 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.133, allocations: 4 kB / 370.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1625/0.2955, allocations: 1.146 MB / 372 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000487/0.296, allocations: 64.8 kB / 372 MB, free: 19.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01076/0.3068, allocations: 4.935 MB / 377 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005863/0.3074, allocations: 40.62 kB / 377 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.3074, allocations: 16.27 kB / 377 MB, free: 16.66 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.0001736/0.3076, allocations: 149.8 kB / 377.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/0.3077, allocations: 31.27 kB / 377.2 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.851e-05/0.3077, allocations: 29.47 kB / 377.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3078, allocations: 6.438 kB / 377.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-06/0.3078, allocations: 3.938 kB / 377.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3078, allocations: 4.422 kB / 377.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.3088, allocations: 0.7455 MB / 378 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.3088, allocations: 5.344 kB / 378 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.3092, allocations: 52.8 kB / 378 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3092, allocations: 2.031 kB / 378 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.3092, allocations: 8.797 kB / 378.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3092, allocations: 2.031 kB / 378.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.3092, allocations: 1.375 kB / 378.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007422/0.31, allocations: 0.5048 MB / 378.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.918e-05/0.31, allocations: 109.1 kB / 378.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.697e-05/0.3101, allocations: 7.297 kB / 378.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004169/0.3105, allocations: 30.59 kB / 378.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.3106, allocations: 12.8 kB / 378.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.3106, allocations: 10.61 kB / 378.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.3109, allocations: 223.8 kB / 378.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3109, allocations: 0 / 378.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005215/0.3114, allocations: 98.09 kB / 379 MB, free: 15.43 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.0001075/0.3115, allocations: 105 kB / 379.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.3134, allocations: 0.7296 MB / 379.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3134, allocations: 3.828 kB / 379.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002395/0.3137, allocations: 95.67 kB / 380 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.3142, allocations: 76.47 kB / 380 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.3155, allocations: 0.7312 MB / 380.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.3157, allocations: 0.7801 MB / 381.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001498/0.3159, allocations: 37.28 kB / 381.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3159, allocations: 0 / 381.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Templates: time 0.009214/0.3251, allocations: 6.657 MB / 388.3 MB, free: 11.78 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 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)