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.001432/0.001432, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001615, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.597/1.597, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 68.03 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1443, allocations: 50.53 MB / 357.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.004546/0.1489, allocations: 2.883 MB / 360.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001607/0.1505, allocations: 0.8962 MB / 361.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001846/0.1507, allocations: 4 kB / 361.3 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002921/0.1511, allocations: 59.38 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004343/0.1515, allocations: 111.2 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005254/0.152, allocations: 227.6 kB / 361.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007333/0.1528, allocations: 0.5413 MB / 362.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002872/0.1531, allocations: 107.1 kB / 362.3 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.1534, allocations: 191.4 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000351/0.1537, allocations: 231.1 kB / 362.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.379e-05/0.1538, allocations: 47.94 kB / 362.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.052e-05/0.1539, allocations: 48 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1541, allocations: 107.6 kB / 362.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.1543, allocations: 199.1 kB / 363.1 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005948/0.1549, allocations: 490.7 kB / 363.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.906e-06/0.1549, allocations: 4 kB / 363.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.603e-06/0.1549, allocations: 3.984 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.1549, allocations: 0 / 363.6 MB, free: 7.984 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.001893/0.1568, allocations: 0.7481 MB / 364.3 MB, free: 7.188 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.1569, allocations: 8.031 kB / 364.3 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.157, allocations: 36.56 kB / 364.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005389/0.1576, allocations: 327.4 kB / 364.7 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1577, allocations: 84.45 kB / 364.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.1577, allocations: 28.38 kB / 364.8 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004336/0.1582, allocations: 283.9 kB / 365.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1582, allocations: 3.938 kB / 365.1 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.1582, allocations: 12 kB / 365.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.1582, allocations: 4 kB / 365.1 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003383/0.1586, allocations: 162.9 kB / 365.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.1614, allocations: 1.468 MB / 366.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.1616, allocations: 105.2 kB / 366.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001274/0.1618, allocations: 57.81 kB / 366.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.1618, allocations: 0 / 366.9 MB, free: 4.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.1618, allocations: 30.56 kB / 366.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.032e-06/0.1618, allocations: 4 kB / 366.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003102/0.1649, allocations: 1.068 MB / 368 MB, free: 3.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.165, allocations: 110.7 kB / 368.1 MB, free: 3.102 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003734/0.1654, allocations: 324.4 kB / 368.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.1655, allocations: 37.7 kB / 368.4 MB, free: 2.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.1656, allocations: 204 kB / 368.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.75e-05/0.1657, allocations: 55.28 kB / 368.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.1658, allocations: 69.66 kB / 368.8 MB, free: 2.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.166, allocations: 342.8 kB / 369.1 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003366/0.1663, allocations: 147.9 kB / 369.2 MB, free: 1.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.1667, allocations: 243.1 kB / 369.5 MB, free: 1.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006305/0.1674, allocations: 365.3 kB / 369.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1674, allocations: 0 / 369.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.2226/0.3899, allocations: 1.303 MB / 371.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.368e-05/0.39, allocations: 6.562 kB / 371.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.39, allocations: 7.516 kB / 371.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/0.4014, allocations: 1.153 MB / 372.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005006/0.402, allocations: 70.02 kB / 372.4 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.4131, allocations: 5.352 MB / 377.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000676/0.4138, allocations: 35.34 kB / 377.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.653e-05/0.4139, allocations: 18.05 kB / 377.8 MB, free: 16.01 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.0001982/0.4141, allocations: 151.9 kB / 377.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.773e-05/0.4142, allocations: 26.19 kB / 378 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.873e-05/0.4142, allocations: 30.94 kB / 378 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.4143, allocations: 1.531 kB / 378 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4143, allocations: 3.938 kB / 378 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4143, allocations: 1.828 kB / 378 MB, free: 15.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.4154, allocations: 0.7556 MB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4154, allocations: 3.875 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003699/0.4158, allocations: 52.33 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.4158, allocations: 1.375 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.4158, allocations: 5.562 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.4158, allocations: 2.219 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4158, allocations: 3.891 kB / 378.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008551/0.4167, allocations: 0.5167 MB / 379.3 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.657e-05/0.4168, allocations: 107.4 kB / 379.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.4168, allocations: 2.141 kB / 379.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.4173, allocations: 30.73 kB / 379.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.4174, allocations: 12.92 kB / 379.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.4174, allocations: 6.578 kB / 379.5 MB, free: 14.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002724/0.4177, allocations: 223.6 kB / 379.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4177, allocations: 0 / 379.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000661/0.4184, allocations: 103.4 kB / 379.8 MB, free: 14.77 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.0001647/0.4185, allocations: 103.4 kB / 379.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002261/0.4208, allocations: 0.7453 MB / 380.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4208, allocations: 5.844 kB / 380.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002633/0.4211, allocations: 97.12 kB / 380.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.4217, allocations: 78.36 kB / 380.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.4232, allocations: 0.6007 MB / 381.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000255/0.4234, allocations: 0.7837 MB / 382.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000188/0.4236, allocations: 26.39 kB / 382.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.4237, allocations: 28.7 kB / 382.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4237, allocations: 0 / 382.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of Templates: time 0.01982/0.4436, allocations: 8.739 MB / 391 MB, free: 10.07 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)