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.0009325/0.0009326, allocations: 101.8 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002446, allocations: 12 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1224, allocations: 51.52 MB / 358.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemonstrateLightning): time 0.003284/0.1258, allocations: 2.455 MB / 361.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.1272, allocations: 0.846 MB / 361.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.1274, allocations: 11.94 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.1276, allocations: 43.62 kB / 362 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002621/0.1278, allocations: 83.38 kB / 362.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.1281, allocations: 159.7 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004516/0.1286, allocations: 478.3 kB / 362.7 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.1288, allocations: 85.62 kB / 362.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.129, allocations: 159.4 kB / 362.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002433/0.1292, allocations: 183.2 kB / 363.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.937e-05/0.1293, allocations: 24 kB / 363.1 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.1294, allocations: 20 kB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.738e-05/0.1294, allocations: 71.72 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.81e-05/0.1295, allocations: 89.5 kB / 363.3 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.1299, allocations: 363.3 kB / 363.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1299, allocations: 0 / 363.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1299, allocations: 0 / 363.7 MB, free: 8.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1299, allocations: 0 / 363.7 MB, free: 8.359 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.001439/0.1314, allocations: 0.6896 MB / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1314, allocations: 11.97 kB / 364.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.1315, allocations: 35.62 kB / 364.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.1319, allocations: 326.3 kB / 364.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.132, allocations: 87.91 kB / 364.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.202e-05/0.1321, allocations: 28 kB / 364.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.1325, allocations: 287.8 kB / 365.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1326, allocations: 7.938 kB / 365.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.1326, allocations: 8 kB / 365.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1326, allocations: 8 kB / 365.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003275/0.1329, allocations: 165.3 kB / 365.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002547/0.1355, allocations: 1.492 MB / 366.8 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001927/0.1357, allocations: 101.2 kB / 366.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.1358, allocations: 57.81 kB / 366.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.1358, allocations: 4 kB / 366.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.417e-05/0.1359, allocations: 34.56 kB / 367 MB, free: 4.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1359, allocations: 0 / 367 MB, free: 4.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.003002/0.1389, allocations: 1.122 MB / 368.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.139, allocations: 114.7 kB / 368.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.1394, allocations: 324.4 kB / 368.5 MB, free: 3.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.1394, allocations: 29.7 kB / 368.6 MB, free: 3.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/0.1396, allocations: 208.1 kB / 368.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.1397, allocations: 43.3 kB / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.563e-05/0.1397, allocations: 4 kB / 368.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1399, allocations: 346.8 kB / 369.1 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.1402, allocations: 163.9 kB / 369.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.1406, allocations: 251.1 kB / 369.6 MB, free: 2.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.141, allocations: 187.8 kB / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.141, allocations: 0 / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008581/0.1496, allocations: 1.338 MB / 371.1 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.1497, allocations: 7.953 kB / 371.1 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1497, allocations: 8.062 kB / 371.1 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2185/0.3682, allocations: 1.165 MB / 372.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004797/0.3687, allocations: 76 kB / 372.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.3794, allocations: 4.933 MB / 377.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006019/0.3801, allocations: 40.83 kB / 377.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.3801, allocations: 17.23 kB / 377.3 MB, free: 15.7 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 (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.0001953/0.3803, allocations: 158.2 kB / 377.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.3804, allocations: 24.41 kB / 377.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.521e-05/0.3805, allocations: 25.25 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.3805, allocations: 5.203 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3805, allocations: 4.938 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3805, allocations: 1.453 kB / 377.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.3816, allocations: 0.7657 MB / 378.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3816, allocations: 0.7031 kB / 378.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.382, allocations: 57.33 kB / 378.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.382, allocations: 4.188 kB / 378.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.382, allocations: 6.016 kB / 378.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.382, allocations: 1.375 kB / 378.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.382, allocations: 0 / 378.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007508/0.3828, allocations: 0.5405 MB / 378.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.3828, allocations: 107.2 kB / 379 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.3829, allocations: 10.67 kB / 379 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003752/0.3833, allocations: 29.75 kB / 379.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/0.3834, allocations: 16.75 kB / 379.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.3834, allocations: 11.41 kB / 379.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.3836, allocations: 226.1 kB / 379.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3836, allocations: 0 / 379.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.3843, allocations: 98.03 kB / 379.4 MB, free: 14.46 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 (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.0001365/0.3844, allocations: 100.9 kB / 379.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.3863, allocations: 0.7401 MB / 380.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3864, allocations: 1.469 kB / 380.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.3866, allocations: 105.5 kB / 380.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.3872, allocations: 67.48 kB / 380.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3885, allocations: 0.6893 MB / 381.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3887, allocations: 0.7755 MB / 381.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.3889, allocations: 35.31 kB / 381.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.389, allocations: 36.45 kB / 381.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.389, allocations: 0 / 381.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01576/0.4048, allocations: 8.127 MB / 390.1 MB, free: 10.1 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)