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.001528/0.001528, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001976/0.001977, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.56/1.56, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.89 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4456/0.447, allocations: 50.54 MB / 409.3 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.005421/0.4525, allocations: 2.89 MB / 412.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.4547, allocations: 0.8885 MB / 413 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003709/0.4551, allocations: 11.94 kB / 413.1 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.4554, allocations: 51.45 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005696/0.456, allocations: 123.1 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.4566, allocations: 227.7 kB / 413.4 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008762/0.4575, allocations: 0.5295 MB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.4578, allocations: 111.1 kB / 414.1 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003759/0.4582, allocations: 203.3 kB / 414.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004187/0.4586, allocations: 223.1 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.4587, allocations: 48 kB / 414.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.4588, allocations: 44 kB / 414.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.459, allocations: 99.67 kB / 414.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.4592, allocations: 211 kB / 414.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006945/0.4599, allocations: 0.4917 MB / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.4599, allocations: 0 / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.46, allocations: 0 / 415.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.46, allocations: 0 / 415.4 MB, free: 11.4 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.002266/0.4623, allocations: 0.7365 MB / 416.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.4623, allocations: 12.03 kB / 416.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.4625, allocations: 40.47 kB / 416.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008096/0.4633, allocations: 343.3 kB / 416.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.4634, allocations: 80.52 kB / 416.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/0.4635, allocations: 28.38 kB / 416.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005263/0.464, allocations: 283.9 kB / 416.9 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.4641, allocations: 4 kB / 416.9 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.4641, allocations: 15.94 kB / 416.9 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.4641, allocations: 4 kB / 416.9 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/0.4645, allocations: 169.2 kB / 417.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003564/0.4681, allocations: 1.464 MB / 418.5 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.4683, allocations: 109.2 kB / 418.7 MB, free: 7.906 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.4685, allocations: 45.83 kB / 418.7 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.4685, allocations: 7.984 kB / 418.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.4685, allocations: 34.55 kB / 418.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.994e-06/0.4686, allocations: 0 / 418.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003602/0.4722, allocations: 1.06 MB / 419.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/0.4723, allocations: 106.8 kB / 419.9 MB, free: 6.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000486/0.4728, allocations: 324.4 kB / 420.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.4728, allocations: 29.7 kB / 420.2 MB, free: 6.164 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.4731, allocations: 216 kB / 420.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.4731, allocations: 51.23 kB / 420.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.4733, allocations: 77.56 kB / 420.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.4735, allocations: 334.8 kB / 420.9 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003885/0.4739, allocations: 155.9 kB / 421.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004533/0.4744, allocations: 247.8 kB / 421.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007834/0.4752, allocations: 350.1 kB / 421.6 MB, free: 4.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.4752, allocations: 0 / 421.6 MB, free: 4.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009889/0.4851, allocations: 1.314 MB / 423 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.4851, allocations: 8 kB / 423 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.4852, allocations: 4.062 kB / 423 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01094/0.4961, allocations: 1.161 MB / 424.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/0.4967, allocations: 67.88 kB / 424.2 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.509, allocations: 5.33 MB / 429.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006661/0.5097, allocations: 43.91 kB / 429.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.149e-05/0.5098, allocations: 15.98 kB / 429.6 MB, free: 12.42 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.0002695/0.51, allocations: 153.9 kB / 429.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.5102, allocations: 27.62 kB / 429.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.406e-05/0.5102, allocations: 26.61 kB / 429.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.5103, allocations: 4 kB / 429.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5103, allocations: 4 kB / 429.8 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5103, allocations: 3.938 kB / 429.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.5117, allocations: 0.7513 MB / 430.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.5117, allocations: 0 / 430.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.512, allocations: 47.94 kB / 430.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.5121, allocations: 0 / 430.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.5121, allocations: 8.016 kB / 430.6 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.5121, allocations: 11.94 kB / 430.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.5121, allocations: 0 / 430.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009133/0.513, allocations: 0.5177 MB / 431.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.432e-05/0.5131, allocations: 105 kB / 431.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.153e-05/0.5132, allocations: 11.94 kB / 431.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.5136, allocations: 27.95 kB / 431.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.5137, allocations: 15.97 kB / 431.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.5137, allocations: 7.984 kB / 431.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002689/0.514, allocations: 223.1 kB / 431.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.514, allocations: 0 / 431.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.5147, allocations: 100 kB / 431.6 MB, free: 10.29 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.0002142/0.515, allocations: 103.2 kB / 431.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002257/0.5172, allocations: 0.7469 MB / 432.5 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5172, allocations: 4 kB / 432.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000259/0.5175, allocations: 91.88 kB / 432.6 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.5182, allocations: 85.67 kB / 432.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.5199, allocations: 0.59 MB / 433.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004232/0.5203, allocations: 0.7832 MB / 434 MB, free: 7.812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002063/0.5205, allocations: 22.53 kB / 434 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.5206, allocations: 35.41 kB / 434.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5207, allocations: 4 kB / 434.1 MB, free: 7.754 MB / 350.1 MB Notification: Performance of Templates: time 0.01673/0.5374, allocations: 8.794 MB / 442.9 MB, free: 14.98 MB / 366.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)