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.000828/0.000828, allocations: 97.44 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009302/0.0009303, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.61/1.61, allocations: 227.7 MB / 246.8 MB, free: 11.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003017/0.0003017, allocations: 8 kB / 307.7 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1434, allocations: 51.52 MB / 359.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003625/0.1471, allocations: 2.562 MB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.1488, allocations: 0.8691 MB / 362.7 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.149, allocations: 7.938 kB / 362.7 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.1492, allocations: 39.69 kB / 362.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.1495, allocations: 95.36 kB / 362.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003529/0.1498, allocations: 207.7 kB / 363 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005491/0.1504, allocations: 0.5022 MB / 363.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.1507, allocations: 103.6 kB / 363.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1509, allocations: 159.3 kB / 363.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002788/0.1512, allocations: 199.1 kB / 364 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.1512, allocations: 20 kB / 364 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.42e-05/0.1513, allocations: 24 kB / 364 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.555e-05/0.1514, allocations: 67.72 kB / 364.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.1515, allocations: 200.7 kB / 364.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004755/0.152, allocations: 458.6 kB / 364.7 MB, free: 7.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.152, allocations: 3.938 kB / 364.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1521, allocations: 4 kB / 364.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.1521, allocations: 0 / 364.7 MB, free: 7.805 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.001696/0.1538, allocations: 0.6859 MB / 365.4 MB, free: 7.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.1538, allocations: 15.97 kB / 365.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.986e-05/0.1539, allocations: 36.56 kB / 365.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005203/0.1545, allocations: 323.4 kB / 365.8 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.1546, allocations: 84.52 kB / 365.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.924e-05/0.1547, allocations: 24.38 kB / 365.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005453/0.1552, allocations: 295.9 kB / 366.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.1553, allocations: 3.984 kB / 366.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.1553, allocations: 12 kB / 366.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.1553, allocations: 7.984 kB / 366.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/0.1557, allocations: 177.2 kB / 366.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/0.1588, allocations: 1.472 MB / 367.9 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002193/0.159, allocations: 113.2 kB / 368 MB, free: 4.348 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.1591, allocations: 49.83 kB / 368 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.1592, allocations: 4 kB / 368 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.1592, allocations: 38.55 kB / 368.1 MB, free: 4.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.1592, allocations: 4 kB / 368.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003556/0.1628, allocations: 1.125 MB / 369.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.807e-05/0.1629, allocations: 106.8 kB / 369.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004973/0.1634, allocations: 328.4 kB / 369.6 MB, free: 2.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.1634, allocations: 29.7 kB / 369.6 MB, free: 2.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.1636, allocations: 204.1 kB / 369.8 MB, free: 2.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.41e-05/0.1637, allocations: 51.28 kB / 369.9 MB, free: 2.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.1638, allocations: 33.7 kB / 369.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002379/0.164, allocations: 342.8 kB / 370.3 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003621/0.1644, allocations: 155.9 kB / 370.4 MB, free: 1.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005312/0.1649, allocations: 255.1 kB / 370.7 MB, free: 1.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/0.1657, allocations: 381.1 kB / 371 MB, free: 1.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1657, allocations: 0 / 371 MB, free: 1.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.2954/0.4611, allocations: 1.333 MB / 372.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.26e-05/0.4613, allocations: 10.34 kB / 372.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.4613, allocations: 3.656 kB / 372.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01305/0.4743, allocations: 1.176 MB / 373.5 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006144/0.475, allocations: 72.12 kB / 373.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01281/0.4878, allocations: 4.939 MB / 378.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007152/0.4886, allocations: 39.48 kB / 378.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.4887, allocations: 23.12 kB / 378.6 MB, free: 15.85 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.0002522/0.4889, allocations: 153 kB / 378.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.489, allocations: 28 kB / 378.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.979e-05/0.4891, allocations: 32.78 kB / 378.8 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4891, allocations: 5.938 kB / 378.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4891, allocations: 1.219 kB / 378.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.4891, allocations: 1.172 kB / 378.8 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.4904, allocations: 0.7679 MB / 379.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4905, allocations: 0 / 379.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003785/0.4908, allocations: 53.06 kB / 379.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.4909, allocations: 4.406 kB / 379.7 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.4909, allocations: 9.797 kB / 379.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.4909, allocations: 0.9688 kB / 379.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4909, allocations: 2.125 kB / 379.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009545/0.4919, allocations: 0.5323 MB / 380.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/0.492, allocations: 109.1 kB / 380.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.492, allocations: 5.938 kB / 380.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004175/0.4924, allocations: 32.69 kB / 380.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.4925, allocations: 17.42 kB / 380.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/0.4926, allocations: 10.81 kB / 380.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003213/0.4929, allocations: 227.8 kB / 380.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4929, allocations: 0 / 380.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007268/0.4937, allocations: 97.94 kB / 380.7 MB, free: 14.6 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.0002106/0.4939, allocations: 97.72 kB / 380.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002412/0.4963, allocations: 0.7522 MB / 381.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.4963, allocations: 1.125 kB / 381.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.4966, allocations: 107.1 kB / 381.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006794/0.4973, allocations: 73.97 kB / 381.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.4989, allocations: 0.7292 MB / 382.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000342/0.4992, allocations: 0.7761 MB / 383.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.4994, allocations: 35.92 kB / 383.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.4996, allocations: 27.58 kB / 383.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4996, allocations: 0 / 383.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Templates: time 0.02139/0.521, allocations: 8.309 MB / 391.6 MB, free: 9.848 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)