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.00155/0.00155, allocations: 113 kB / 18.45 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.001936/0.001936, allocations: 212.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2348, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003726/0.2386, allocations: 2.894 MB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.24, allocations: 0.8884 MB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.2401, allocations: 8 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.2403, allocations: 51.44 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.2406, allocations: 115.1 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2409, allocations: 223.7 kB / 414.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004755/0.2414, allocations: 0.5334 MB / 414.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.2416, allocations: 115.1 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.2418, allocations: 199.3 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.2421, allocations: 227.1 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.721e-05/0.2422, allocations: 44 kB / 415.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.099e-05/0.2423, allocations: 48 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.2424, allocations: 95.72 kB / 415.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001624/0.2425, allocations: 211 kB / 415.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004272/0.243, allocations: 499.5 kB / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.243, allocations: 0 / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.243, allocations: 0 / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.676e-06/0.243, allocations: 4 kB / 416.1 MB, free: 11.45 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.001584/0.2446, allocations: 0.7404 MB / 416.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.2446, allocations: 8.031 kB / 416.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.636e-05/0.2447, allocations: 40.47 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.2452, allocations: 339.4 kB / 417.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.2453, allocations: 88.39 kB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.124e-05/0.2454, allocations: 28.38 kB / 417.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004312/0.2458, allocations: 283.9 kB / 417.6 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.2459, allocations: 3.938 kB / 417.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.2459, allocations: 15.94 kB / 417.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2459, allocations: 4 kB / 417.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.2462, allocations: 169.2 kB / 417.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.2489, allocations: 1.464 MB / 419.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.2491, allocations: 105.2 kB / 419.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.2492, allocations: 49.81 kB / 419.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.2492, allocations: 0 / 419.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.2493, allocations: 38.56 kB / 419.4 MB, free: 7.848 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.2493, allocations: 4 kB / 419.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003086/0.2524, allocations: 1.06 MB / 420.5 MB, free: 6.684 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.2525, allocations: 110.8 kB / 420.6 MB, free: 6.551 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.2528, allocations: 324.4 kB / 420.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.816e-05/0.2528, allocations: 33.7 kB / 420.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.253, allocations: 208 kB / 421.1 MB, free: 5.988 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.497e-05/0.253, allocations: 51.3 kB / 421.2 MB, free: 5.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.2532, allocations: 77.55 kB / 421.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2533, allocations: 334.8 kB / 421.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.2536, allocations: 155.9 kB / 421.7 MB, free: 5.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.254, allocations: 247.9 kB / 422 MB, free: 5.086 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000617/0.2547, allocations: 358.1 kB / 422.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2547, allocations: 0 / 422.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009485/0.2642, allocations: 1.314 MB / 423.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.2642, allocations: 4 kB / 423.7 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.2642, allocations: 4 kB / 423.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01086/0.2751, allocations: 1.157 MB / 424.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.2756, allocations: 67.88 kB / 424.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/0.2863, allocations: 5.326 MB / 430.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006012/0.287, allocations: 47.92 kB / 430.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.287, allocations: 19.95 kB / 430.3 MB, free: 12.45 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.0002012/0.2872, allocations: 149.7 kB / 430.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.072e-05/0.2873, allocations: 27.62 kB / 430.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.2874, allocations: 30.61 kB / 430.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.2874, allocations: 0 / 430.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2874, allocations: 4 kB / 430.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.2874, allocations: 11.92 kB / 430.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.2885, allocations: 0.7396 MB / 431.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.2885, allocations: 3.984 kB / 431.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003601/0.2888, allocations: 47.89 kB / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2889, allocations: 0 / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/0.2889, allocations: 11.92 kB / 431.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.2889, allocations: 8.094 kB / 431.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2889, allocations: 3.938 kB / 431.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007968/0.2897, allocations: 0.5173 MB / 431.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.864e-05/0.2898, allocations: 104.9 kB / 431.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.2899, allocations: 11.94 kB / 431.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.2903, allocations: 19.98 kB / 432 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.2903, allocations: 15.97 kB / 432 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.2904, allocations: 7.984 kB / 432 MB, free: 10.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.2906, allocations: 227 kB / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2906, allocations: 0 / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005033/0.2911, allocations: 104 kB / 432.3 MB, free: 10.33 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.0001362/0.2913, allocations: 99.25 kB / 432.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.2932, allocations: 0.7472 MB / 433.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2933, allocations: 0 / 433.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002388/0.2935, allocations: 95.88 kB / 433.2 MB, free: 9.352 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.2941, allocations: 87.92 kB / 433.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001215/0.2954, allocations: 0.6061 MB / 433.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.2957, allocations: 0.7832 MB / 434.7 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.2958, allocations: 35.39 kB / 434.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2958, allocations: 0 / 434.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of Templates: time 0.008509/0.3044, allocations: 6.695 MB / 441.4 MB, free: 1.105 MB / 350.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)