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.001525/0.001525, 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.001824/0.001824, 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.541/1.541, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.59 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.119, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004372/0.1234, allocations: 2.887 MB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1252, allocations: 0.8885 MB / 362.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001782/0.1254, allocations: 7.938 kB / 362.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.1257, allocations: 51.44 kB / 362.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.1261, allocations: 123.1 kB / 362.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003857/0.1264, allocations: 223.7 kB / 363.1 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005727/0.127, allocations: 0.5334 MB / 363.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.1273, allocations: 119.1 kB / 363.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.1275, allocations: 203.2 kB / 363.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.1278, allocations: 227.1 kB / 364.1 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.314e-05/0.1279, allocations: 48 kB / 364.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.653e-05/0.128, allocations: 48 kB / 364.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.197e-05/0.1281, allocations: 95.67 kB / 364.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.1283, allocations: 211 kB / 364.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000433/0.1287, allocations: 494.4 kB / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1287, allocations: 0 / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1287, allocations: 0 / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/0.1287, allocations: 0 / 365 MB, free: 7.172 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.00161/0.1304, allocations: 0.756 MB / 365.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1304, allocations: 8.031 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.1305, allocations: 36.56 kB / 365.8 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005828/0.1311, allocations: 331.4 kB / 366.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001547/0.1313, allocations: 80.52 kB / 366.2 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.331e-05/0.1314, allocations: 32.38 kB / 366.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.1319, allocations: 287.8 kB / 366.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.1319, allocations: 0 / 366.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.1319, allocations: 12 kB / 366.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.1319, allocations: 4 kB / 366.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.1324, allocations: 174.8 kB / 366.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/0.1354, allocations: 1.461 MB / 368.2 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.1356, allocations: 109.2 kB / 368.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.1357, allocations: 45.83 kB / 368.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.768e-05/0.1357, allocations: 0 / 368.3 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.1358, allocations: 38.56 kB / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.1358, allocations: 0 / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003325/0.1391, allocations: 1.067 MB / 369.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.124e-05/0.1392, allocations: 110.8 kB / 369.5 MB, free: 2.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.1397, allocations: 328.4 kB / 369.9 MB, free: 1.945 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.1398, allocations: 33.64 kB / 369.9 MB, free: 1.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.1399, allocations: 204 kB / 370.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.397e-05/0.14, allocations: 47.3 kB / 370.1 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.1401, allocations: 77.66 kB / 370.2 MB, free: 1.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1403, allocations: 334.8 kB / 370.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.1406, allocations: 155.9 kB / 370.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.141, allocations: 244 kB / 370.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006382/0.1417, allocations: 350.3 kB / 371.3 MB, free: 444 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1417, allocations: 8 kB / 371.3 MB, free: 436 kB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.2239/0.3657, allocations: 1.31 MB / 372.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.3657, allocations: 7.312 kB / 372.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.3658, allocations: 5.688 kB / 372.6 MB, free: 20.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01133/0.3771, allocations: 1.159 MB / 373.8 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.3777, allocations: 68.75 kB / 373.8 MB, free: 20.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.3899, allocations: 5.326 MB / 379.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006682/0.3906, allocations: 36.98 kB / 379.2 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.782e-05/0.3907, allocations: 17.45 kB / 379.2 MB, free: 16.58 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.000225/0.3909, allocations: 152.3 kB / 379.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.908e-05/0.391, allocations: 29.98 kB / 379.4 MB, free: 16.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.424e-05/0.3911, allocations: 32.47 kB / 379.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.3911, allocations: 1.828 kB / 379.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.3911, allocations: 1.125 kB / 379.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3911, allocations: 1.797 kB / 379.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.3923, allocations: 0.75 MB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3923, allocations: 1.25 kB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003908/0.3927, allocations: 53.41 kB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.3928, allocations: 1.969 kB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.3928, allocations: 10.14 kB / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.3928, allocations: 5.75 kB / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3928, allocations: 0 / 380.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008469/0.3937, allocations: 0.5215 MB / 380.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3938, allocations: 103.9 kB / 380.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.3938, allocations: 7.016 kB / 380.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/0.3943, allocations: 23.52 kB / 380.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.599e-05/0.3944, allocations: 15.8 kB / 380.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.3944, allocations: 12.14 kB / 380.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003108/0.3947, allocations: 227.8 kB / 381.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3947, allocations: 0 / 381.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007694/0.3955, allocations: 97.81 kB / 381.2 MB, free: 15.32 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.0001738/0.3957, allocations: 105.2 kB / 381.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002292/0.398, allocations: 0.7488 MB / 382.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.398, allocations: 1.656 kB / 382.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.3983, allocations: 103.9 kB / 382.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.3989, allocations: 70.53 kB / 382.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.4004, allocations: 0.5952 MB / 382.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00028/0.4007, allocations: 0.7747 MB / 383.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002219/0.4009, allocations: 32.97 kB / 383.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.401, allocations: 29.19 kB / 383.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4011, allocations: 2.844 kB / 383.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of Templates: time 0.02175/0.4228, allocations: 8.747 MB / 392.4 MB, free: 10.15 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 cvode -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)