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.0009701/0.0009701, allocations: 99.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001047, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002621, allocations: 8 kB / 306.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 51.49 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.002916/0.1312, allocations: 2.35 MB / 360.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.1326, allocations: 0.8889 MB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.1328, allocations: 4 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.719e-05/0.1329, allocations: 35.7 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.1332, allocations: 115.6 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.1335, allocations: 159.6 kB / 361.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.1339, allocations: 319.4 kB / 361.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1341, allocations: 89.64 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.1343, allocations: 159.4 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.1346, allocations: 195.2 kB / 362.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.1346, allocations: 23.98 kB / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.028e-05/0.1347, allocations: 20 kB / 362.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.379e-05/0.1348, allocations: 71.72 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.1349, allocations: 81.52 kB / 362.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.1352, allocations: 363.3 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1352, allocations: 0 / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.1352, allocations: 0 / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1352, allocations: 0 / 362.9 MB, free: 9.285 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.001604/0.1368, allocations: 0.6974 MB / 363.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.1369, allocations: 8.031 kB / 363.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.809e-05/0.137, allocations: 35.62 kB / 363.6 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.1375, allocations: 322.2 kB / 364 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.1376, allocations: 83.95 kB / 364 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.375e-05/0.1377, allocations: 35.95 kB / 364.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004965/0.1382, allocations: 279.8 kB / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.1382, allocations: 0 / 364.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.1383, allocations: 12 kB / 364.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1383, allocations: 4 kB / 364.4 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003454/0.1386, allocations: 169.2 kB / 364.5 MB, free: 7.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002739/0.1414, allocations: 1.488 MB / 366 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001938/0.1416, allocations: 109.2 kB / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.1416, allocations: 0 / 366.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1417, allocations: 42.62 kB / 366.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.1417, allocations: 0 / 366.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003047/0.1447, allocations: 1.125 MB / 367.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.1448, allocations: 106.8 kB / 367.4 MB, free: 4.426 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.1452, allocations: 332.3 kB / 367.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.1452, allocations: 25.7 kB / 367.7 MB, free: 4.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1454, allocations: 204.1 kB / 367.9 MB, free: 3.852 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.063e-05/0.1454, allocations: 43.3 kB / 368 MB, free: 3.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.1454, allocations: 12 kB / 368 MB, free: 3.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1456, allocations: 334.8 kB / 368.3 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003302/0.1459, allocations: 163.9 kB / 368.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.1463, allocations: 255 kB / 368.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.1467, allocations: 180 kB / 368.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1467, allocations: 0 / 368.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00884/0.1555, allocations: 1.345 MB / 370.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.1556, allocations: 7.938 kB / 370.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.069e-05/0.1556, allocations: 4 kB / 370.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/0.1664, allocations: 1.18 MB / 371.5 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000516/0.1669, allocations: 67.88 kB / 371.5 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2376/0.4045, allocations: 5.081 MB / 376.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000618/0.4051, allocations: 37.36 kB / 376.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.4052, allocations: 22.5 kB / 376.7 MB, free: 16.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 1,4 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001987/0.4054, allocations: 149.2 kB / 376.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.883e-05/0.4055, allocations: 28.81 kB / 376.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.778e-05/0.4056, allocations: 28.64 kB / 376.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4056, allocations: 4.875 kB / 376.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4056, allocations: 1.688 kB / 376.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.4056, allocations: 2.031 kB / 376.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.4067, allocations: 0.7665 MB / 377.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.4068, allocations: 0.8438 kB / 377.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003632/0.4071, allocations: 61.55 kB / 377.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.4071, allocations: 5.719 kB / 377.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.4072, allocations: 5.297 kB / 377.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.4072, allocations: 1.094 kB / 377.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4072, allocations: 1.094 kB / 377.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007795/0.408, allocations: 0.5515 MB / 378.3 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.154e-05/0.408, allocations: 107.9 kB / 378.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.4081, allocations: 1.375 kB / 378.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.4085, allocations: 34.69 kB / 378.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.116e-05/0.4086, allocations: 18.69 kB / 378.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.4086, allocations: 7.5 kB / 378.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4088, allocations: 219.8 kB / 378.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4088, allocations: 3.938 kB / 378.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006013/0.4094, allocations: 98.75 kB / 378.7 MB, free: 14.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001273/0.4095, allocations: 100.4 kB / 378.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.4115, allocations: 0.7462 MB / 379.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.4115, allocations: 0 / 379.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002512/0.4118, allocations: 104 kB / 379.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.4123, allocations: 62.7 kB / 379.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4135, allocations: 0.6929 MB / 380.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.4138, allocations: 0.7836 MB / 381.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001972/0.414, allocations: 36.59 kB / 381.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.4141, allocations: 28.14 kB / 381.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4142, allocations: 0 / 381.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of Templates: time 0.0168/0.431, allocations: 8.159 MB / 389.4 MB, free: 10.84 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)