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.001724/0.001724, allocations: 114.5 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001994/0.001994, allocations: 210 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.674/2.674, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002413/0.002413, allocations: 59.91 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4244/0.4269, allocations: 50.53 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.00692/0.4338, allocations: 2.9 MB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.4366, allocations: 0.8846 MB / 413.7 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002581/0.4369, allocations: 11.94 kB / 413.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002961/0.4372, allocations: 55.44 kB / 413.8 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005712/0.4378, allocations: 111.1 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007357/0.4386, allocations: 223.7 kB / 414.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009527/0.4396, allocations: 0.5412 MB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003475/0.44, allocations: 107.1 kB / 414.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.4404, allocations: 199.3 kB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004874/0.4409, allocations: 223.1 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.441, allocations: 47.94 kB / 415.2 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.4411, allocations: 48 kB / 415.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001448/0.4413, allocations: 99.72 kB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003145/0.4416, allocations: 207 kB / 415.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008408/0.4425, allocations: 499.5 kB / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.4425, allocations: 0 / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4425, allocations: 0 / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.4426, allocations: 4 kB / 416.1 MB, free: 11.44 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.002919/0.4455, allocations: 0.7443 MB / 416.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.749e-05/0.4456, allocations: 12.03 kB / 416.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.4457, allocations: 40.47 kB / 416.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009903/0.4467, allocations: 331.4 kB / 417.2 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001947/0.447, allocations: 84.52 kB / 417.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.38e-05/0.4471, allocations: 24.38 kB / 417.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008093/0.4479, allocations: 291.9 kB / 417.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.521e-05/0.4479, allocations: 0 / 417.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.448, allocations: 11.94 kB / 417.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.448, allocations: 4 kB / 417.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006073/0.4486, allocations: 173.2 kB / 417.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004769/0.4534, allocations: 1.464 MB / 419.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.4538, allocations: 105.2 kB / 419.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.454, allocations: 49.81 kB / 419.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.454, allocations: 4 kB / 419.4 MB, free: 7.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.237e-05/0.4541, allocations: 38.56 kB / 419.4 MB, free: 7.844 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 3.296e-06/0.4541, allocations: 4 kB / 419.4 MB, free: 7.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.005129/0.4592, allocations: 1.063 MB / 420.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.4594, allocations: 114.8 kB / 420.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006/0.46, allocations: 328.3 kB / 420.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.836e-05/0.4601, allocations: 33.7 kB / 420.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002418/0.4604, allocations: 204 kB / 421.1 MB, free: 5.977 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.308e-05/0.4604, allocations: 51.3 kB / 421.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002656/0.4607, allocations: 77.55 kB / 421.3 MB, free: 5.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002071/0.4609, allocations: 334.8 kB / 421.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006575/0.4616, allocations: 155.9 kB / 421.7 MB, free: 5.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000816/0.4625, allocations: 247.8 kB / 422 MB, free: 5.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.4638, allocations: 361.5 kB / 422.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.4638, allocations: 0 / 422.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01609/0.4799, allocations: 1.31 MB / 423.7 MB, free: 3.363 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.48, allocations: 8 kB / 423.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.48, allocations: 0 / 423.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01996/0.5, allocations: 1.153 MB / 424.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/0.5008, allocations: 71.86 kB / 424.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01996/0.5207, allocations: 5.333 MB / 430.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5218, allocations: 43.91 kB / 430.3 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.632e-05/0.522, allocations: 11.98 kB / 430.3 MB, free: 12.46 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.0003347/0.5223, allocations: 149.7 kB / 430.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001595/0.5225, allocations: 27.72 kB / 430.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.775e-05/0.5226, allocations: 34.59 kB / 430.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5226, allocations: 0 / 430.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.5226, allocations: 4 kB / 430.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.5227, allocations: 11.92 kB / 430.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/0.5247, allocations: 0.7435 MB / 431.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.5248, allocations: 0 / 431.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007041/0.5255, allocations: 47.95 kB / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.5255, allocations: 0 / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/0.5256, allocations: 7.922 kB / 431.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.298e-06/0.5256, allocations: 8 kB / 431.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.5256, allocations: 7.922 kB / 431.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001677/0.5273, allocations: 0.5139 MB / 431.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001862/0.5275, allocations: 104.9 kB / 431.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.916e-05/0.5276, allocations: 12 kB / 431.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/0.5284, allocations: 23.98 kB / 432 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.5285, allocations: 11.97 kB / 432 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/0.5286, allocations: 7.984 kB / 432 MB, free: 10.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000416/0.529, allocations: 227.1 kB / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.529, allocations: 0 / 432.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009925/0.53, allocations: 100 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.0002264/0.5303, allocations: 103.2 kB / 432.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003972/0.5343, allocations: 0.7473 MB / 433.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.5343, allocations: 0 / 433.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004997/0.5348, allocations: 95.88 kB / 433.2 MB, free: 9.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.536, allocations: 83.55 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.002532/0.5386, allocations: 0.622 MB / 433.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.5391, allocations: 0.7832 MB / 434.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.5395, allocations: 31.39 kB / 434.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.5395, allocations: 0 / 434.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of Templates: time 0.01719/0.5567, allocations: 6.738 MB / 441.5 MB, free: 1.047 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)