Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") translateModel(Modelica.Electrical.Analog.Examples.DemonstrateLightning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 117.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 212.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2311, allocations: 50.55 MB / 410.2 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004201/0.2353, allocations: 2.896 MB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2369, allocations: 0.8923 MB / 414 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.2371, allocations: 8 kB / 414 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.2373, allocations: 63.38 kB / 414.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003111/0.2376, allocations: 115.2 kB / 414.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.238, allocations: 227.6 kB / 414.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005876/0.2386, allocations: 0.5373 MB / 415 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.2388, allocations: 79.09 kB / 415 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.239, allocations: 195.4 kB / 415.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003028/0.2393, allocations: 223.1 kB / 415.4 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.2394, allocations: 48 kB / 415.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.381e-05/0.2395, allocations: 48 kB / 415.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.877e-05/0.2396, allocations: 107.6 kB / 415.6 MB, free: 12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.2398, allocations: 203 kB / 415.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005652/0.2403, allocations: 0.5019 MB / 416.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2403, allocations: 0 / 416.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2403, allocations: 0 / 416.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.2404, allocations: 0 / 416.3 MB, free: 11.29 MB / 334.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.001704/0.2421, allocations: 0.7441 MB / 417.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.2421, allocations: 12.03 kB / 417.1 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.677e-05/0.2422, allocations: 44.7 kB / 417.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005749/0.2428, allocations: 331.6 kB / 417.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.2429, allocations: 80.52 kB / 417.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.243, allocations: 28.38 kB / 417.6 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.2435, allocations: 287.9 kB / 417.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.889e-05/0.2435, allocations: 3.953 kB / 417.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.2435, allocations: 15.94 kB / 417.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.2435, allocations: 4 kB / 417.9 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.2439, allocations: 165.3 kB / 418 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.2468, allocations: 1.473 MB / 419.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.247, allocations: 93.25 kB / 419.6 MB, free: 7.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.2472, allocations: 53.81 kB / 419.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.891e-05/0.2472, allocations: 4 kB / 419.7 MB, free: 7.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.2472, allocations: 34.5 kB / 419.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.2472, allocations: 0 / 419.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.003288/0.2505, allocations: 1.084 MB / 420.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.2506, allocations: 106.8 kB / 420.9 MB, free: 6.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003979/0.251, allocations: 320.5 kB / 421.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.812e-05/0.251, allocations: 33.7 kB / 421.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.2512, allocations: 204.5 kB / 421.4 MB, free: 5.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.461e-05/0.2513, allocations: 55.52 kB / 421.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.2514, allocations: 81.64 kB / 421.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.2516, allocations: 338.8 kB / 421.9 MB, free: 5.352 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003781/0.252, allocations: 147.9 kB / 422 MB, free: 5.207 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.2524, allocations: 255.6 kB / 422.3 MB, free: 4.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006994/0.2531, allocations: 346.1 kB / 422.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2531, allocations: 4 kB / 422.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.009816/0.2629, allocations: 1.31 MB / 423.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.263, allocations: 8 kB / 423.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.263, allocations: 8.062 kB / 423.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/0.274, allocations: 1.145 MB / 425.1 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004448/0.2744, allocations: 67.88 kB / 425.2 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.2862, allocations: 5.347 MB / 430.5 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005886/0.2868, allocations: 31.92 kB / 430.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.2869, allocations: 23.97 kB / 430.6 MB, free: 12.29 MB / 350.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.0002239/0.2871, allocations: 145.9 kB / 430.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.2872, allocations: 35.81 kB / 430.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.35e-05/0.2873, allocations: 22.7 kB / 430.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2873, allocations: 11.94 kB / 430.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2873, allocations: 0 / 430.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2873, allocations: 3.938 kB / 430.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.2886, allocations: 0.7552 MB / 431.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2886, allocations: 3.938 kB / 431.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003728/0.2889, allocations: 47.94 kB / 431.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2889, allocations: 0 / 431.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.289, allocations: 11.92 kB / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.289, allocations: 0 / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.289, allocations: 160 / 431.6 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009357/0.2899, allocations: 0.5327 MB / 432.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.73e-05/0.29, allocations: 105 kB / 432.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.007e-05/0.29, allocations: 7.922 kB / 432.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.2905, allocations: 32.05 kB / 432.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.731e-05/0.2905, allocations: 11.97 kB / 432.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.2905, allocations: 11.98 kB / 432.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002581/0.2908, allocations: 219.1 kB / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2908, allocations: 0 / 432.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005977/0.2914, allocations: 104 kB / 432.6 MB, free: 10.15 MB / 350.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.0001369/0.2915, allocations: 95.25 kB / 432.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.2936, allocations: 0.7354 MB / 433.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2936, allocations: 0 / 433.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002523/0.2939, allocations: 91.88 kB / 433.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000596/0.2945, allocations: 69.22 kB / 433.6 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.2958, allocations: 0.6158 MB / 434.2 MB, free: 8.492 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.2963, allocations: 0.7794 MB / 435 MB, free: 7.684 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.2964, allocations: 26.28 kB / 435 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.2965, allocations: 31.41 kB / 435 MB, free: 7.629 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2965, allocations: 0 / 435 MB, free: 7.629 MB / 350.1 MB Notification: Performance of Templates: time 0.01553/0.3121, allocations: 8.817 MB / 443.9 MB, free: 14.84 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)