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.001644/0.001644, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 64.38 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1072, allocations: 50.54 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004318/0.1116, allocations: 2.936 MB / 359.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.113, allocations: 0.8846 MB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1132, allocations: 4 kB / 360.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1134, allocations: 35.69 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.1137, allocations: 103.3 kB / 360.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.114, allocations: 203.8 kB / 361 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004367/0.1144, allocations: 0.4983 MB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.1146, allocations: 99.64 kB / 361.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.1148, allocations: 171.3 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002345/0.1151, allocations: 211.1 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/0.1151, allocations: 24 kB / 361.9 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.26e-05/0.1152, allocations: 24 kB / 362 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.357e-05/0.1153, allocations: 75.66 kB / 362 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.1154, allocations: 187 kB / 362.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003809/0.1158, allocations: 466.7 kB / 362.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1158, allocations: 0 / 362.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.1159, allocations: 0 / 362.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1159, allocations: 0 / 362.7 MB, free: 8.594 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.001732/0.1176, allocations: 0.7545 MB / 363.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.1177, allocations: 8.031 kB / 363.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1178, allocations: 36.56 kB / 363.5 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/0.1183, allocations: 327.4 kB / 363.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.1184, allocations: 80.52 kB / 363.9 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.323e-05/0.1185, allocations: 28.38 kB / 363.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005124/0.119, allocations: 287.9 kB / 364.2 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.119, allocations: 3.984 kB / 364.2 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.1191, allocations: 19.92 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1191, allocations: 4 kB / 364.2 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003456/0.1194, allocations: 169.9 kB / 364.4 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003147/0.1226, allocations: 1.464 MB / 365.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.1228, allocations: 101.2 kB / 365.9 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1229, allocations: 53.83 kB / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.123, allocations: 0 / 366 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.123, allocations: 38.55 kB / 366 MB, free: 5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.123, allocations: 4 kB / 366 MB, free: 4.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003449/0.1265, allocations: 1.056 MB / 367.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.1266, allocations: 110.7 kB / 367.2 MB, free: 3.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004578/0.1271, allocations: 332.4 kB / 367.5 MB, free: 3.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.1271, allocations: 33.7 kB / 367.6 MB, free: 3.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.1273, allocations: 204 kB / 367.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.566e-05/0.1274, allocations: 51.28 kB / 367.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.1276, allocations: 69.66 kB / 367.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1277, allocations: 338.8 kB / 368.2 MB, free: 2.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003713/0.1281, allocations: 151.9 kB / 368.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.1285, allocations: 251.1 kB / 368.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007192/0.1292, allocations: 357.9 kB / 369 MB, free: 1.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.1293, allocations: 0 / 369 MB, free: 1.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.01088/0.1401, allocations: 1.314 MB / 370.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.1402, allocations: 12.06 kB / 370.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.1402, allocations: 0 / 370.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1862/0.3265, allocations: 1.15 MB / 371.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000547/0.3271, allocations: 66.27 kB / 371.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.3384, allocations: 4.925 MB / 376.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006783/0.3392, allocations: 36.33 kB / 376.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.3392, allocations: 20.38 kB / 376.5 MB, free: 16.61 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.0002195/0.3395, allocations: 153.9 kB / 376.6 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3396, allocations: 32.27 kB / 376.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.059e-05/0.3396, allocations: 25.34 kB / 376.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.3396, allocations: 1.375 kB / 376.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.3397, allocations: 9.188 kB / 376.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3397, allocations: 0.7969 kB / 376.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00117/0.3408, allocations: 0.7407 MB / 377.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3409, allocations: 6.062 kB / 377.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004506/0.3413, allocations: 60.7 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/0.3413, allocations: 1.375 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.3414, allocations: 5.5 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3414, allocations: 1.375 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3414, allocations: 1.375 kB / 377.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007997/0.3422, allocations: 0.5103 MB / 378 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.658e-05/0.3423, allocations: 113.7 kB / 378.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.3423, allocations: 5.953 kB / 378.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/0.3428, allocations: 23.58 kB / 378.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.842e-05/0.3429, allocations: 19.12 kB / 378.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/0.3429, allocations: 7.219 kB / 378.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.3431, allocations: 223.2 kB / 378.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3432, allocations: 0 / 378.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006877/0.3438, allocations: 100.6 kB / 378.5 MB, free: 15.38 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.0001367/0.344, allocations: 101.9 kB / 378.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.3462, allocations: 0.7239 MB / 379.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.3462, allocations: 1.578 kB / 379.3 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.3465, allocations: 98.86 kB / 379.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006414/0.3471, allocations: 75.47 kB / 379.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3486, allocations: 0.7075 MB / 380.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.3489, allocations: 0.7755 MB / 381 MB, free: 13.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002315/0.3491, allocations: 29.25 kB / 381 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.3493, allocations: 35.02 kB / 381 MB, free: 13.69 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3493, allocations: 0 / 381 MB, free: 13.69 MB / 302.1 MB Notification: Performance of Templates: time 0.01465/0.364, allocations: 8.401 MB / 389.4 MB, free: 10.93 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)