Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 195.5 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009477/0.0009476, allocations: 94.72 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002168/0.0002168, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1878, allocations: 51.28 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08941/0.2772, allocations: 82.46 MB / 491.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.2775, allocations: 79.95 kB / 491.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02139/0.2989, allocations: 7.343 MB / 498.5 MB, free: 1.711 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2989, allocations: 3.938 kB / 498.5 MB, free: 1.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.299, allocations: 11.94 kB / 498.6 MB, free: 1.695 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.001231/0.3002, allocations: 0.6626 MB / 499.2 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3002, allocations: 12.03 kB / 499.2 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.162e-05/0.3003, allocations: 40.47 kB / 499.3 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.301, allocations: 383.4 kB / 499.6 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.3011, allocations: 84.52 kB / 499.7 MB, free: 436 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.3011, allocations: 28.38 kB / 499.8 MB, free: 408 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.3016, allocations: 292.9 kB / 0.4883 GB, free: 80 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.3016, allocations: 3.906 kB / 0.4883 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.3016, allocations: 12 kB / 0.4883 GB, free: 64 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.3017, allocations: 11.94 kB / 0.4884 GB, free: 52 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.302, allocations: 173.2 kB / 0.4885 GB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002699/0.3047, allocations: 1.492 MB / 0.49 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.305, allocations: 109.2 kB / 0.4901 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.3051, allocations: 57.75 kB / 0.4901 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.3051, allocations: 4 kB / 0.4901 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.3052, allocations: 38.56 kB / 0.4902 GB, free: 14.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.995e-06/0.3052, allocations: 0 / 0.4902 GB, free: 14.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.002838/0.308, allocations: 1.107 MB / 0.4913 GB, free: 12.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/0.3081, allocations: 110.8 kB / 0.4914 GB, free: 12.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.3085, allocations: 320.4 kB / 0.4917 GB, free: 12.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.3085, allocations: 29.7 kB / 0.4917 GB, free: 12.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.3086, allocations: 212 kB / 0.4919 GB, free: 12.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.073e-05/0.3087, allocations: 47.36 kB / 0.4919 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.3087, allocations: 8 kB / 0.4919 GB, free: 12.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3089, allocations: 338.8 kB / 0.4923 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.3092, allocations: 163.8 kB / 0.4924 GB, free: 11.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.3096, allocations: 251 kB / 0.4927 GB, free: 11.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006483/0.3103, allocations: 368.8 kB / 0.493 GB, free: 10.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3103, allocations: 4 kB / 0.493 GB, free: 10.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009792/0.3201, allocations: 1.365 MB / 0.4944 GB, free: 9.555 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.3201, allocations: 11.94 kB / 0.4944 GB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.679e-06/0.3202, allocations: 0 / 0.4944 GB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01145/0.3316, allocations: 1.258 MB / 0.4956 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004005/0.332, allocations: 71.88 kB / 0.4957 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.3436, allocations: 5.135 MB / 0.5007 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.3442, allocations: 47.91 kB / 0.5007 GB, free: 2.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.3442, allocations: 15.97 kB / 0.5007 GB, free: 2.734 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.0001933/0.3444, allocations: 150.3 kB / 0.5009 GB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.464e-05/0.3445, allocations: 31.56 kB / 0.5009 GB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.3445, allocations: 30.61 kB / 0.5009 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.3446, allocations: 4 kB / 0.5009 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.3446, allocations: 0 / 0.5009 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3446, allocations: 0 / 0.5009 GB, free: 2.512 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001022/0.3456, allocations: 0.7632 MB / 0.5017 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3456, allocations: 4 kB / 0.5017 GB, free: 1.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/0.3459, allocations: 55.88 kB / 0.5017 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.3459, allocations: 4 kB / 0.5018 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.346, allocations: 7.984 kB / 0.5018 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.346, allocations: 96 / 0.5018 GB, free: 1.621 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.346, allocations: 7.938 kB / 0.5018 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.3468, allocations: 0.545 MB / 0.5023 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.566e-05/0.3469, allocations: 100.8 kB / 0.5024 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/0.3469, allocations: 8 kB / 0.5024 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.3473, allocations: 31.97 kB / 0.5024 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.009e-05/0.3474, allocations: 16 kB / 0.5024 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.3474, allocations: 16.03 kB / 0.5025 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002128/0.3476, allocations: 215.1 kB / 0.5027 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3476, allocations: 0 / 0.5027 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005615/0.3482, allocations: 119.9 kB / 0.5028 GB, free: 0.5391 MB / 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.0001505/0.3484, allocations: 106.9 kB / 0.5029 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1454/0.4938, allocations: 0.7449 MB / 0.5036 GB, free: 96.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/0.4939, allocations: 2.656 kB / 0.5036 GB, free: 96.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.4941, allocations: 105.8 kB / 0.5037 GB, free: 96.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007277/0.4949, allocations: 64.05 kB / 0.5038 GB, free: 96.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.4961, allocations: 0.705 MB / 0.5045 GB, free: 95.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.4963, allocations: 0.7776 MB / 0.5052 GB, free: 95.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.4965, allocations: 38.84 kB / 0.5053 GB, free: 95.27 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4965, allocations: 0 / 0.5053 GB, free: 95.27 MB / 378.7 MB Notification: Performance of Templates: time 0.008632/0.5051, allocations: 6.788 MB / 0.5119 GB, free: 94.86 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)