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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00184/0.00184, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.659/1.659, allocations: 226.5 MB / 245.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009048/0.0009049, allocations: 101.1 kB / 297.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002236/0.0002237, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.243, allocations: 51.28 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1148/0.3579, allocations: 82.47 MB / 491.8 MB, free: 9.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.3581, allocations: 67.97 kB / 491.9 MB, free: 8.949 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02146/0.3796, allocations: 7.347 MB / 499.3 MB, free: 1.578 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3797, allocations: 3.938 kB / 499.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.3797, allocations: 8 kB / 499.3 MB, free: 1.566 MB / 362.7 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.001302/0.381, allocations: 0.6703 MB / 499.9 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.381, allocations: 8.031 kB / 499.9 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.3811, allocations: 40.47 kB / 500 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006799/0.3818, allocations: 379.4 kB / 0.4886 GB, free: 400 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.382, allocations: 84.45 kB / 0.4887 GB, free: 304 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.702e-05/0.382, allocations: 28.38 kB / 0.4887 GB, free: 276 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005745/0.3826, allocations: 296.9 kB / 0.489 GB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.3827, allocations: 3.906 kB / 0.489 GB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.3827, allocations: 12 kB / 0.489 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3827, allocations: 7.938 kB / 0.489 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.3831, allocations: 173.2 kB / 0.4892 GB, free: 15.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.386, allocations: 1.488 MB / 0.4907 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.3863, allocations: 117.2 kB / 0.4908 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.3865, allocations: 53.83 kB / 0.4908 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.3865, allocations: 0 / 0.4908 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3865, allocations: 42.56 kB / 0.4909 GB, free: 13.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 3.026e-06/0.3865, allocations: 0 / 0.4909 GB, free: 13.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002968/0.3895, allocations: 1.118 MB / 0.492 GB, free: 12.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/0.3896, allocations: 106.8 kB / 0.4921 GB, free: 12.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003848/0.39, allocations: 328.4 kB / 0.4924 GB, free: 12.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.3901, allocations: 29.7 kB / 0.4924 GB, free: 12.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.3903, allocations: 204 kB / 0.4926 GB, free: 12.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.512e-05/0.3903, allocations: 51.34 kB / 0.4926 GB, free: 11.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.3903, allocations: 8 kB / 0.4927 GB, free: 11.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3905, allocations: 334.8 kB / 0.493 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.3909, allocations: 159.8 kB / 0.4931 GB, free: 11.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.3913, allocations: 255.1 kB / 0.4934 GB, free: 11.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009453/0.3923, allocations: 368.7 kB / 0.4937 GB, free: 10.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3923, allocations: 0 / 0.4937 GB, free: 10.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009885/0.4022, allocations: 1.376 MB / 0.4951 GB, free: 9.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.4023, allocations: 7.984 kB / 0.4951 GB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.4023, allocations: 4 kB / 0.4951 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01254/0.4148, allocations: 1.243 MB / 0.4963 GB, free: 8.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.4153, allocations: 67.88 kB / 0.4964 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.4287, allocations: 5.157 MB / 0.5014 GB, free: 2.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008593/0.4296, allocations: 39.92 kB / 0.5014 GB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.4297, allocations: 19.97 kB / 0.5014 GB, free: 2.594 MB / 378.7 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.0003602/0.4301, allocations: 146.3 kB / 0.5016 GB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/0.4303, allocations: 35.56 kB / 0.5016 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.507e-05/0.4304, allocations: 26.61 kB / 0.5016 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4304, allocations: 0 / 0.5016 GB, free: 2.379 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/0.4304, allocations: 4 kB / 0.5016 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4304, allocations: 0 / 0.5016 GB, free: 2.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/0.4323, allocations: 0.763 MB / 0.5024 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4323, allocations: 0 / 0.5024 GB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004343/0.4327, allocations: 63.97 kB / 0.5025 GB, free: 1.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.4327, allocations: 3.938 kB / 0.5025 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.523e-05/0.4328, allocations: 7.984 kB / 0.5025 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4328, allocations: 0 / 0.5025 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4328, allocations: 0 / 0.5025 GB, free: 1.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.4341, allocations: 0.5452 MB / 0.503 GB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.4343, allocations: 100.8 kB / 0.5031 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/0.4343, allocations: 4 kB / 0.5031 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.4348, allocations: 31.97 kB / 0.5031 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.4349, allocations: 19.91 kB / 0.5031 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.853e-05/0.435, allocations: 8.047 kB / 0.5032 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003544/0.4353, allocations: 227.1 kB / 0.5034 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.014e-06/0.4353, allocations: 0 / 0.5034 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008441/0.4362, allocations: 115.8 kB / 0.5035 GB, free: 412 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (integrator1.y,integrator2.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.0002257/0.4364, allocations: 107.2 kB / 0.5036 GB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.2148/0.6512, allocations: 0.7388 MB / 0.5043 GB, free: 96.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/0.6513, allocations: 2.188 kB / 0.5043 GB, free: 96.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000339/0.6516, allocations: 106.9 kB / 0.5044 GB, free: 96.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007728/0.6524, allocations: 66.28 kB / 0.5045 GB, free: 96.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.6538, allocations: 0.6767 MB / 0.5051 GB, free: 95.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.6541, allocations: 0.7757 MB / 0.5059 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000238/0.6543, allocations: 34.47 kB / 0.5059 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.6544, allocations: 30.69 kB / 0.506 GB, free: 95.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6544, allocations: 0 / 0.506 GB, free: 95.22 MB / 378.7 MB Notification: Performance of Templates: time 0.01462/0.669, allocations: 8.735 MB / 0.5145 GB, free: 93.84 MB / 378.7 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)