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.001755/0.001755, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002084/0.002084, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.634/1.634, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.001949/0.001949, allocations: 68.88 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.104, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004635/0.1087, allocations: 2.888 MB / 361.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.1104, allocations: 0.8923 MB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.1106, allocations: 8 kB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.1108, allocations: 51.44 kB / 362.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.1112, allocations: 123.1 kB / 362.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004075/0.1116, allocations: 219.7 kB / 362.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006292/0.1122, allocations: 0.5374 MB / 363.1 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.1125, allocations: 111.1 kB / 363.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002461/0.1127, allocations: 191.3 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003174/0.1131, allocations: 235.1 kB / 363.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.929e-05/0.1132, allocations: 44 kB / 363.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.1133, allocations: 48 kB / 363.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1134, allocations: 95.72 kB / 363.8 MB, free: 8.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002469/0.1137, allocations: 207 kB / 364.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006607/0.1143, allocations: 494.7 kB / 364.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.1143, allocations: 0 / 364.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.1144, allocations: 0 / 364.5 MB, free: 7.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.1144, allocations: 0 / 364.5 MB, free: 7.809 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.001959/0.1163, allocations: 0.752 MB / 365.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.1164, allocations: 8.031 kB / 365.3 MB, free: 7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/0.1165, allocations: 36.56 kB / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/0.1171, allocations: 327.4 kB / 365.7 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.1172, allocations: 76.53 kB / 365.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.092e-05/0.1173, allocations: 32.36 kB / 365.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005264/0.1178, allocations: 291.9 kB / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.1179, allocations: 0 / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.1179, allocations: 12 kB / 366.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-06/0.1179, allocations: 4 kB / 366.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003897/0.1183, allocations: 174.8 kB / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.1213, allocations: 1.468 MB / 367.7 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002276/0.1215, allocations: 93.25 kB / 367.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.1217, allocations: 61.75 kB / 367.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.1217, allocations: 0 / 367.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.1218, allocations: 38.56 kB / 367.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1218, allocations: 0 / 367.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003398/0.1252, allocations: 1.063 MB / 368.9 MB, free: 3.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.733e-05/0.1253, allocations: 114.7 kB / 369.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.1257, allocations: 324.4 kB / 369.4 MB, free: 2.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.382e-05/0.1258, allocations: 33.7 kB / 369.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.1259, allocations: 200 kB / 369.6 MB, free: 2.348 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.126, allocations: 59.22 kB / 369.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.1262, allocations: 73.59 kB / 369.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1264, allocations: 338.8 kB / 370.1 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003815/0.1267, allocations: 163.8 kB / 370.2 MB, free: 1.711 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004419/0.1272, allocations: 243.3 kB / 370.5 MB, free: 1.438 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007116/0.1279, allocations: 358 kB / 370.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1279, allocations: 0 / 370.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.1552/0.2831, allocations: 1.3 MB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.2832, allocations: 6.844 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.2832, allocations: 10.03 kB / 372.1 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01076/0.294, allocations: 1.155 MB / 373.3 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/0.2944, allocations: 70.44 kB / 373.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01016/0.3046, allocations: 5.351 MB / 378.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005606/0.3052, allocations: 32.42 kB / 378.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.27e-05/0.3053, allocations: 20.55 kB / 378.8 MB, free: 15.96 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.0001584/0.3054, allocations: 149.1 kB / 378.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-05/0.3055, allocations: 31.62 kB / 378.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.3056, allocations: 24.64 kB / 379 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-06/0.3056, allocations: 3.188 kB / 379 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.3056, allocations: 0 / 379 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.3056, allocations: 0.75 kB / 379 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00104/0.3066, allocations: 0.7545 MB / 379.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.3066, allocations: 0 / 379.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.307, allocations: 58.42 kB / 379.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.307, allocations: 1.375 kB / 379.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.3071, allocations: 4.859 kB / 379.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3071, allocations: 1.766 kB / 379.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.3071, allocations: 1.406 kB / 379.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007467/0.3078, allocations: 0.5111 MB / 380.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.3079, allocations: 105.8 kB / 380.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.84e-05/0.308, allocations: 5.125 kB / 380.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004036/0.3084, allocations: 29.08 kB / 380.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.3084, allocations: 20.28 kB / 380.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.3085, allocations: 7.094 kB / 380.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.3087, allocations: 223.3 kB / 380.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3087, allocations: 0 / 380.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.3092, allocations: 97.62 kB / 380.8 MB, free: 14.72 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.0001023/0.3094, allocations: 107.8 kB / 380.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.3113, allocations: 0.7482 MB / 381.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3114, allocations: 0 / 381.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.3116, allocations: 93.02 kB / 381.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005863/0.3122, allocations: 71.2 kB / 381.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.3134, allocations: 0.6459 MB / 382.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.3136, allocations: 0.7727 MB / 383.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.3137, allocations: 38.27 kB / 383.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3137, allocations: 0 / 383.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Templates: time 0.008832/0.3226, allocations: 6.658 MB / 389.9 MB, free: 10.84 MB / 302.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 -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.DemonstrateLightning.pipe 2>&1)